/*
 * Profile and portfolio presentation layer.
 * The selectors are scoped to the public profile area so existing
 * marketplace actions, forms and Livewire components keep their contracts.
 */

.header-profile {
    overflow: hidden;
    background-position: center;
}

.header-profile::before {
    z-index: 0;
    background: linear-gradient(100deg, rgba(8, 15, 29, .94) 0%, rgba(8, 15, 29, .78) 44%, rgba(8, 15, 29, .45) 100%);
}

.header-profile > .container {
    position: relative;
    z-index: 1;
}

.header-profile .header-inner {
    padding-top: clamp(28px, 5vw, 58px);
    padding-bottom: clamp(22px, 4vw, 38px);
}

.profile-hero-panel {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .84), rgba(15, 23, 42, .58));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-box-shadow: 0 18px 45px rgba(2, 8, 23, .24);
    box-shadow: 0 18px 45px rgba(2, 8, 23, .24);
}

.profile-hero-panel .text-dark,
.profile-hero-panel .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}

.profile-hero-name {
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 750;
    letter-spacing: -.02em;
}

.profile-hero-meta {
    color: rgba(255, 255, 255, .72);
}

.profile-hero-avatar {
    width: 104px;
    height: 104px;
    padding: 4px;
    margin-inline-end: 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    -webkit-box-shadow: 0 10px 24px rgba(2, 8, 23, .24);
    box-shadow: 0 10px 24px rgba(2, 8, 23, .24);
}

.profile-hero-avatar img {
    border-radius: 14px;
    -o-object-fit: cover;
    object-fit: cover;
}

.profile-hero-actions .btn {
    border-radius: 10px;
    font-weight: 650;
}

.profile-hero-actions .btn-outline-primary,
.profile-hero-actions .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .48);
}

.profile-hero-actions .btn-outline-primary:hover,
.profile-hero-actions .btn-outline-secondary:hover {
    color: var(--text_color);
    background: #fff;
    border-color: #fff;
}

.profile-hero-metrics {
    min-width: 155px;
}

.profile-hero-stat-group {
    padding: 0 4px;
}

.profile-hero-stat .user-stat-title {
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-hero-stat .user-stat-number {
    color: #fff;
    font-size: 1.8rem !important;
    font-weight: 750;
}

.profile-hero-stat:not(:last-child)::before {
    background-color: rgba(255, 255, 255, .28);
}

.profile-hero-rating .ratings .rating-active {
    color: #ffc857;
}

.profile-hero-rating .text-muted {
    color: rgba(255, 255, 255, .7) !important;
}

.header-profile .tabs-custom.v2 {
    margin-top: 18px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, .96);
    -webkit-box-shadow: 0 12px 30px rgba(2, 8, 23, .16);
    box-shadow: 0 12px 30px rgba(2, 8, 23, .16);
}

.header-profile .tabs-custom.v2 .nav-tabs {
    gap: 4px;
}

.header-profile .tabs-custom.v2 .nav-link {
    padding: 14px 16px;
    border: 0;
    border-radius: 12px 12px 0 0;
    color: #60708a;
    font-weight: 650;
    white-space: nowrap;
}

.header-profile .tabs-custom.v2 .nav-link:hover,
.header-profile .tabs-custom.v2 .nav-link.active {
    color: var(--primary_color);
    background: rgba(9, 161, 140, .08);
}

.section-profile {
    background: linear-gradient(180deg, #f7f9fc 0%, #fff 52%);
}

.section-profile .card-v {
    border-radius: 18px;
    border-color: rgba(15, 23, 42, .09) !important;
    -webkit-box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.profile-cover-card {
    overflow: hidden;
    padding: 0 !important;
    background: #e9eef5;
}

.profile-cover-image {
    display: block;
    width: 100%;
    height: clamp(230px, 32vw, 450px);
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

.profile-about-card {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 18px;
    background: #fff;
    -webkit-box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.profile-section-heading {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.profile-section-kicker {
    color: var(--primary_color);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.profile-section-heading h2,
.profile-portfolio-toolbar h2 {
    color: var(--text_color);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -.025em;
}

.profile-about-content {
    color: var(--text_color);
    line-height: 1.8;
}

.profile-about-content > :last-child {
    margin-bottom: 0;
}

.profile-section-card h3 {
    font-weight: 700;
}

.profile-portfolio-toolbar {
    padding: clamp(18px, 2.8vw, 26px);
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 18px;
    background: #fff;
    -webkit-box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.profile-portfolio-toolbar .form-search {
    min-width: min(260px, 52vw);
}

.profile-portfolio-toolbar .form-search .form-control {
    border-radius: 10px;
}

.profile-portfolio-list .profile-portfolio-item {
    overflow: hidden;
    border-color: rgba(15, 23, 42, .1) !important;
    border-radius: 18px;
    -webkit-box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.profile-portfolio-list .profile-portfolio-item:hover {
    border-color: rgba(9, 161, 140, .35) !important;
    -webkit-box-shadow: 0 16px 32px rgba(15, 23, 42, .1);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .1);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.profile-portfolio-item .item-img {
    height: 190px;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

.profile-portfolio-item .item-body {
    padding: 20px 22px;
}

.profile-portfolio-item .item-title {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.45;
}

.profile-portfolio-item .item-text {
    min-height: 42px;
    line-height: 1.5;
}

.profile-portfolio-item .item-purchase {
    padding-top: 15px;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.profile-portfolio-item .btn {
    min-width: 42px;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .profile-hero-panel {
        border-radius: 18px;
    }

    .header-profile .tabs-custom.v2 .nav-link {
        padding-inline: 12px;
    }
}

@media (max-width: 767.98px) {
    .header-profile .header-inner {
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .profile-hero-panel {
        padding: 18px 16px;
    }

    .profile-hero-avatar {
        width: 88px;
        height: 88px;
    }

    .profile-hero-metrics {
        width: 100%;
        min-width: 0;
        align-items: center !important;
    }

    .profile-hero-stat-group {
        width: 100%;
        justify-content: space-around !important;
    }

    .profile-hero-rating {
        align-items: center !important;
    }

    .profile-portfolio-toolbar .form-search {
        min-width: min(220px, 74vw);
    }

    .profile-portfolio-item .item-img {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .profile-hero-name {
        font-size: 1.35rem;
    }

    .profile-hero-actions .btn {
        padding-inline: 14px;
    }

    .profile-portfolio-toolbar .row {
        align-items: stretch !important;
    }

    .profile-portfolio-toolbar .form-search {
        min-width: 0;
        width: 100%;
    }

    .profile-portfolio-toolbar .profile-portfolio-search-col {
        width: 100%;
    }
}
