/**
 * Single Perfume Profile – Premium Editorial Styling
 * Complete CSS matching the refined luxury template (no FAQ).
 *
 * Color/font custom properties fall back to sensible luxury defaults
 * (var(--gold, #c9a227)) so this section still looks correct even if
 * it's previewed outside the full theme stylesheet cascade.
 */

/* ========== Hero Section ========== */
.perfume-profile .article-hero {
    position: relative;
    min-height: 65vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.perfume-profile .article-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
}

/* Fallback treatment for perfumes without a hero image: a rich gradient
   plus a faint oversized monogram, instead of a flat black slab. */
.perfume-profile .article-hero.no-image {
    background: radial-gradient(ellipse at top, #2f2a23 0%, #17130f 70%, #100d0a 100%);
}
.perfume-profile .article-hero.no-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(212,175,55,0.05) 0px,
        rgba(212,175,55,0.05) 1px,
        transparent 1px,
        transparent 34px
    );
    z-index: 1;
}
.perfume-profile .article-hero__monogram {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-family: var(--font-serif, Georgia, serif);
    font-style: italic;
    font-size: min(40vw, 22rem);
    line-height: 1;
    color: rgba(212,175,55,0.12);
    pointer-events: none;
    user-select: none;
}

.perfume-profile .article-hero__inner {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem 4rem;
    max-width: 850px;
    margin: 0 auto;
    color: #fff;
    width: 100%;
}
.perfume-profile .article-hero .eyebrow {
    font-family: var(--font-display, sans-serif);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-light, #e8d48a);
    margin-bottom: 1.2rem;
    display: block;
}
.perfume-profile .article-hero h1 {
    font-family: var(--font-serif, Georgia, serif);
    font-style: italic;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.perfume-profile .article-hero h1 .text-muted {
    color: rgba(255,255,255,0.75);
    font-size: 0.55em;
    font-weight: 300;
}
.perfume-profile__brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold-light, #e8d48a);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.perfume-profile__hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.perfume-profile__hero-rating-star {
    color: var(--gold-light, #e8d48a);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.perfume-profile__hero-rating .verdict-box__score {
    font-size: 2.2rem;
    font-family: var(--font-serif, Georgia, serif);
    color: var(--gold-light, #e8d48a);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.perfume-profile__hero-rating .text-muted {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
}

/* ========== Action Buttons (Hero) ========== */
.perfume-profile .article-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.perfume-profile .action-btn,
.perfume-profile .btn--compare {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.perfume-profile .action-btn:hover,
.perfume-profile .action-btn:focus-visible,
.perfume-profile .btn--compare:hover,
.perfume-profile .btn--compare:focus-visible {
    background: var(--gold, #c9a227);
    color: var(--ivory, #faf7f2);
    border-color: var(--gold, #c9a227);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.perfume-profile .action-btn svg,
.perfume-profile .btn--compare svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ========== Layout & Sidebar ========== */
.perfume-profile .article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.perfume-profile .article-layout__sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-sticky {
    background: var(--ivory, #faf7f2);
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--line, #e8e3da);
}

/* ========== Sidebar Widgets ========== */
.at-a-glance-widget .section-subheading {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.3rem;
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important;
    padding-bottom: 0.4rem;
}
.at-a-glance-widget .section-subheading::after {
    width: 35px !important;
}
.price-widget {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line, #e8e3da);
}
.price-widget__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted, #8a8377);
    margin-bottom: 0.5rem;
}
.price-widget__value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark, #1f1c18);
    margin-bottom: 1rem;
}
.price-widget__cta {
    width: 100%;
    text-align: center;
    margin-top: 1.2rem;
}
.btn--gold {
    background: var(--gold, #c9a227);
    color: var(--ivory, #faf7f2);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 100%;
}
.btn--gold:hover,
.btn--gold:focus-visible {
    background: var(--dark, #1f1c18);
    color: var(--ivory, #faf7f2);
    transform: translateY(-1px);
}

/* ========== Main Content Sections ========== */
.perfume-section {
    margin-bottom: 3rem;
}
.perfume-section__empty {
    color: var(--muted, #8a8377);
    font-style: italic;
    font-size: 0.95rem;
}
.perfume-profile .article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3e3a34;
}
.perfume-profile .article-content p,
.perfume-profile .article-content ul,
.perfume-profile .article-content ol {
    margin-bottom: 1.5rem;
}

/* ======== BESPOKE HEADINGS ======== */
.perfume-profile .article-content h2,
.perfume-profile .section-subheading {
    font-family: var(--font-serif, Georgia, serif) !important;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 2.8rem 0 1.2rem;
    padding-bottom: 0.5rem;
    position: relative;
    scroll-margin-top: 100px;
    color: var(--dark, #1f1c18);
}
.perfume-profile .article-content h2::after,
.perfume-profile .section-subheading::after {
    content: '—';
    display: block;
    font-size: 1.4rem;
    line-height: 0.4;
    letter-spacing: 0.5em;
    color: var(--gold, #c9a227);
    background: none;
    width: auto;
    height: auto;
    margin-top: 0.2rem;
    font-style: normal;
    font-family: var(--font-display, sans-serif);
}

/* ========== Fragrance Pyramid ========== */
.fragrance-pyramid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.fragrance-pyramid__card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--line, #e8e3da);
    text-align: center;
    transition: all 0.3s ease;
}
.fragrance-pyramid__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--gold, #c9a227);
}
.fragrance-pyramid__card h4 {
    font-family: var(--font-display, sans-serif);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold, #c9a227);
    margin: 0 0 1.2rem;
}

/* Note pills — replaces raw comma-joined text with legible tags,
   and keeps the layout stable regardless of how many notes exist. */
.note-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.note-pill {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 0.9rem;
    color: var(--dark, #1f1c18);
    background: #f6f3ed;
    border: 1px solid var(--line, #e8e3da);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    line-height: 1.4;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.fragrance-pyramid__card:hover .note-pill {
    border-color: rgba(201,162,39,0.4);
}

/* ========== DNA Bars (Scent Character) ========== */
.perfume-dna {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}
.dna-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dna-label {
    min-width: 80px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark, #1f1c18);
}
.dna-bar {
    flex: 1;
    height: 8px;
    background: #f0ede8;
    border-radius: 4px;
    overflow: hidden;
}
.dna-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold, #c9a227) 0%, var(--gold-light, #e8d48a) 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dna-value {
    font-weight: 600;
    color: var(--dark, #1f1c18);
    min-width: 50px;
    text-align: right;
}

/* ========== Tabs (Performance & Climate) ========== */
.tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line, #e8e3da);
    padding-bottom: 0.5rem;
}
.tabs__btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted, #8a8377);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.tabs__btn:hover {
    color: var(--dark, #1f1c18);
    background: #f5f2ed;
}
.tabs__btn:focus-visible {
    outline: 2px solid var(--gold, #c9a227);
    outline-offset: 2px;
}
.tabs__btn.is-active {
    background: var(--gold, #c9a227);
    color: #fff;
}
.tabs__panel {
    animation: fadeIn 0.3s ease;
}
.tabs__panel[hidden] {
    display: none;
}

/* ========== Performance Bars ========== */
.perfume-performance {
    display: grid;
    gap: 1.2rem;
    margin: 2rem 0;
}
.perfume-performance__metric {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--line, #e8e3da);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.perfume-performance__label {
    font-weight: 600;
    min-width: 100px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark, #1f1c18);
}
.perfume-performance__bar {
    flex: 1;
    height: 10px;
    background: #f0ede8;
    border-radius: 5px;
    overflow: hidden;
}
.perfume-performance__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold, #c9a227) 0%, var(--gold-light, #e8d48a) 100%);
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.perfume-performance__value {
    font-weight: 600;
    color: var(--dark, #1f1c18);
}

/* ========== Who For Grid & List ========== */
.who-for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.who-for-grid__col {
    padding: 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--line, #e8e3da);
    position: relative;
}
.who-for-grid__col--yes {
    border-left: 5px solid #2e7d32;
}
.who-for-grid__col--no {
    border-left: 5px solid #c62828;
}
.who-for-grid__col--yes::before {
    content: '✓';
    position: absolute;
    top: -15px;
    left: 20px;
    background: #2e7d32;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}
.who-for-grid__col--no::before {
    content: '✗';
    position: absolute;
    top: -15px;
    left: 20px;
    background: #c62828;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}
.who-for-grid__col h3 {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}
.who-for-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.who-for-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a453e;
    line-height: 1.6;
}
.who-for-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold, #c9a227);
    font-weight: bold;
}

/* ========== Verdict Box ========== */
.verdict-box--full {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #2a2520 0%, #1a1510 100%);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.verdict-box--full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold, #c9a227) 0%, var(--gold-light, #e8d48a) 100%);
}
.verdict-box--full::after {
    content: '“';
    position: absolute;
    top: -1.2rem;
    right: 1.5rem;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 9rem;
    line-height: 1;
    color: rgba(212,175,55,0.08);
    pointer-events: none;
}
.verdict-box--full .verdict-box__score {
    font-size: 3.5rem;
    flex-shrink: 0;
    font-family: var(--font-serif, Georgia, serif);
    color: var(--gold-light, #e8d48a);
    text-shadow: 0 2px 8px rgba(212,175,55,0.3);
}
.verdict-box__body {
    position: relative;
    z-index: 1;
    flex: 1;
}
.verdict-box--full p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}
.verdict-box__text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.verdict-box__body.is-expanded .verdict-box__text {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.verdict-box__toggle {
    margin-top: 0.8rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--gold-light, #e8d48a);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.verdict-box__toggle:hover,
.verdict-box__toggle:focus-visible {
    color: #fff;
}

/* ========== Related Perfumes (Post Grid) ========== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    gap: 1.5rem;
    margin: 2rem 0;
}
.post-grid--compact {
    gap: 1rem;
}

/* ========== Bottom Share Section ========== */
.perfume-share-bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line, #e8e3da);
    text-align: center;
}
.perfume-share-bottom__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted, #8a8377);
    margin-bottom: 1rem;
}
.perfume-share-bottom__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.perfume-share-bottom .action-btn {
    background: transparent;
    border: 1px solid var(--line, #e8e3da);
    color: var(--dark, #1f1c18);
}
.perfume-share-bottom .action-btn:hover,
.perfume-share-bottom .action-btn:focus-visible {
    background: var(--gold, #c9a227);
    color: var(--ivory, #faf7f2);
    border-color: var(--gold, #c9a227);
}

/* Hidden anchor target for #retailers — kept out of flow without
   using display:none (which can break in-page jump scrolling). */
.visually-hidden-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========== Where to Buy / Retailers table ========== */
.retailers-section {
    padding: var(--space-lg, 3rem) 0;
    border-top: 1px solid var(--line, #e8e3da);
    scroll-margin-top: var(--header-height, 76px);
}

.retailer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--ivory, #faf7f2);
    border: 1px solid var(--line, #e8e3da);
}

.retailer-table thead th {
    text-align: left;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark, #1f1c18);
    background: var(--bg, #f8f5f0);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line, #e8e3da);
}

.retailer-table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line, #e8e3da);
    color: var(--dark, #1f1c18);
    font-size: 0.95rem;
}

.retailer-table tbody tr:last-child td {
    border-bottom: none;
}

.retailer-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.06);
}

.retailer-table tbody td:last-child {
    text-align: right;
    white-space: nowrap;
}

.retailer-table tbody td a {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold, #c9a227);
    color: var(--gold, #c9a227);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition: var(--transition, 220ms ease);
}

.retailer-table tbody td a:hover,
.retailer-table tbody td a:focus-visible {
    background: var(--gold, #c9a227);
    color: var(--ivory, #faf7f2);
}

@media (max-width: 600px) {
    .retailer-table,
    .retailer-table thead,
    .retailer-table tbody,
    .retailer-table tr {
        display: block;
    }
    .retailer-table thead {
        display: none;
    }
    .retailer-table tbody tr {
        border: 1px solid var(--line, #e8e3da);
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .retailer-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 0.35rem 0;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .perfume-profile .article-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem;
    }
    .perfume-profile .article-layout__sidebar {
        position: static;
        order: 2;
    }
    .fragrance-pyramid {
        grid-template-columns: 1fr;
    }
    .who-for-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .perfume-profile .article-hero {
        min-height: 50vh;
    }
    .perfume-profile .article-hero__inner {
        padding: 2rem 1.2rem 3rem;
    }
    .perfume-profile .article-content h2,
    .perfume-profile .section-subheading {
        font-size: 1.5rem;
    }
    .perfume-profile .article-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    .verdict-box--full {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        align-items: flex-start;
    }
    .verdict-box--full::after {
        font-size: 6rem;
        top: -0.6rem;
        right: 0.8rem;
    }
    .perfume-profile .action-btn,
    .perfume-profile .btn--compare {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }
    .tabs__nav {
        flex-direction: column;
        align-items: stretch;
    }
    .tabs__btn {
        width: 100%;
        text-align: center;
    }
    .perfume-performance__metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .dna-item {
        flex-wrap: wrap;
    }
    .dna-label {
        min-width: 60px;
    }
    .dna-value {
        min-width: auto;
        margin-left: auto;
    }
}
