/*
 * GS Salon - Hero
 * Cover / Hero / Avatar / Title / Location Badges
 */

/* =========================
   Hero Section
   ========================= */

.gs-salon-hero-section {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: var(--gs-radius-md);
    border: 1px solid rgba(184, 150, 92, 0.18);
    box-shadow:
        0 10px 24px rgba(69, 50, 29, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    isolation: isolate;
}

/* fallback وقتی کاور نیست */
.no-cover .gs-salon-hero-section {
    background: var(--gs-bg-shell);
}

.no-cover .gs-salon-hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gs-accent) 0.5px, transparent 0.5px);
    background-size: calc(10 * 0.5px) calc(10 * 0.5px);
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.10), rgba(255, 252, 247, 0.94)),
        linear-gradient(180deg, rgba(23, 19, 16, 0.08) 0%, rgba(23, 19, 16, 0.02) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 760px;
    padding: 34px 24px 42px;
}

.gs-salon-avatar {
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 2;
}

.gs-avatar-img,
.gs-salon-avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    border-radius: 999px !important;
    border: 5px solid rgba(255, 252, 247, 0.95);
    box-shadow:
        0 12px 26px rgba(69, 50, 29, 0.14),
        0 0 0 1px rgba(184, 150, 92, 0.20);
    background: #fff;
}

.gs-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ccb07b 0%, #a9824b 100%);
    color: #fffdf8;
    font-size: 3rem;
    font-weight: 800;
    border: 5px solid rgba(255, 252, 247, 0.95);
    box-shadow:
        0 12px 26px rgba(69, 50, 29, 0.14),
        0 0 0 1px rgba(184, 150, 92, 0.20);
}

.gs-hero-text {
    position: relative;
    z-index: 2;
    width: 100%;
}

.gs-salon-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gs-salon-title {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.25;
    font-weight: 900;
    color: var(--gs-primary);
    letter-spacing: -0.02em;
}

.gs-salon-subtitle {
    margin: 0;
    max-width: 680px;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gs-text-muted);
}

.gs-location-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.gs-location-badges .salon-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.gs-location-badges .salon-tax-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(184, 150, 92, 0.10);
    color: var(--gs-accent-strong);
    border: 1px solid rgba(184, 150, 92, 0.18);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--gs-transition);
}

.gs-location-badges .salon-tax-item:hover {
    background: rgba(184, 150, 92, 0.16);
    border-color: rgba(184, 150, 92, 0.26);
    transform: translateY(-1px);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 992px) {
    .gs-salon-hero-section {
        min-height: auto;
        padding: 0;
    }

    .hero-inner {
        transform: none;
        padding: 34px 20px;
    }

    .gs-salon-title-row,
    .gs-location-badges,
    .gs-location-badges .salon-taxonomy-list {
        justify-content: center;
    }

    .gs-salon-subtitle {
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .gs-salon-avatar {
        width: 124px;
        height: 124px;
    }

    .gs-avatar-fallback {
        font-size: 2.3rem;
    }

    .gs-salon-title {
        font-size: 1.6rem;
    }

    .hero-inner {
        padding: 28px 16px;
    }
}

@media (max-width: 520px) {
    .gs-location-badges .salon-tax-item {
        font-size: 0.86rem;
        padding: 8px 13px;
    }
}
