@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --cream: rgba(255, 255, 255, 0.65); /* More translucent white to reveal background strongly */
    --gold: #c3a677;
    --gold-light: #dfc8a1;
    --dark: #111111;
    --text-light: #777777;
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
    background-color: transparent;
    isolation: isolate; /* Forces children with negative z-index to stay above the root HTML layer */
}

/* ── THE DEFINITIVE IOS SAFARI BACKGROUND FIX ── */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url('venetian_bg.png');
    background-size: cover;
    background-position: center;
}

/* ── SUBPAGE BACKGROUNDS ── */
body.bg-subscribe .bg-layer { background-image: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?q=80&w=2000'); }
body.bg-login .bg-layer { background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?q=80&w=2000'); }
body.bg-articles .bg-layer { background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2000'); }
body.bg-fitness .bg-layer { background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2000'); }
body.bg-experts .bg-layer { background-image: url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?q=80&w=2000'); }
body.bg-reviews .bg-layer { background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2000'); }

/* ── FORM STYLES ── */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(195,166,119,0.3);
    background: white;
}

.form-submit {
    padding: 15px;
    border-radius: 8px;
    background: var(--dark);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.form-submit:hover {
    background: var(--gold);
}

/* ── NEW SECTION STYLES ── */
.glass-section {
    width: 85vw;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px 80px;
    margin-top: 40px;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.glass-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.glass-card-body {
    padding: 25px;
}

.glass-card-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.glass-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.glass-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.glass-card-foot {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── TOP AD BANNER ── */
.ad-banner-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    margin-bottom: 20px;
}

.ad-banner-container::before {
    display: none !important; /* Hidden temporarily per user request */
    content: "";
    width: 90%;
    height: 10px;
    order: 3;
    margin-top: 25px;
    border-radius: 6px;
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 45%, rgba(255,255,255,0) 50%),
        linear-gradient(135deg, #d4af37 0%, #ffdf73 25%, #aa771c 50%, #fceabb 75%, #d4af37 100%);
    border: 1px solid #9c6f1c;
    box-shadow: 
        0 8px 12px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.9),
        inset 0 -1px 2px rgba(0,0,0,0.6);
}

.ad-banner-container::after {
    display: none !important; /* Hidden temporarily per user request */
    content: "";
    /* display: block; */
    width: 100%;
    height: 10px;
    order: 4;
    margin-top: 10px;
    border-radius: 6px;
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 45%, rgba(255,255,255,0) 50%),
        linear-gradient(135deg, #d4af37 0%, #ffdf73 25%, #aa771c 50%, #fceabb 75%, #d4af37 100%);
    border: 1px solid #9c6f1c;
    box-shadow: 
        0 8px 12px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.9),
        inset 0 -1px 2px rgba(0,0,0,0.6);
}

.ad-banner {
    display: block;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 877 / 224;
    height: auto;
    background-image: url('images/ad-hush-desktop-cropped.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Create a seamless dark silk fade to completely obscure the old baked-in text */
.ad-banner::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url('images/silk-overlay.png');
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 48%, rgba(0,0,0,1) 54%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 48%, rgba(0,0,0,1) 54%);
    pointer-events: none;
    z-index: 1;
}

/* Position the new text perfectly over the dark fade area */
.ad-banner-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-right: 2%;
    z-index: 2;
}

.ad-hush-title {
    font-family: 'Playfair Display', serif;
    font-size: 5vw;
    font-style: italic;
    color: white;
    letter-spacing: 4px;
    margin-bottom: 5px;
    line-height: 1;
}
@media (min-width: 900px) {
    .ad-hush-title { font-size: 52px; }
}

.ad-hush-promo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5vw;
    font-style: italic;
    color: #e0e0e0;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
@media (min-width: 900px) {
    .ad-hush-promo { font-size: 12px; }
}

.ad-hush-btn {
    background: white;
    color: black;
    font-family: 'Inter', sans-serif;
    font-size: 1.3vw;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
@media (min-width: 900px) {
    .ad-hush-btn { font-size: 11px; }
}
.ad-hush-btn:hover {
    transform: scale(1.05);
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    padding: 0 30px;
    border-radius: 0 0 12px 0;
}

.ad-brand-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 24px;
    color: #f0f0f0;
}

.ad-text-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-product {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-style: italic;
    letter-spacing: 2px;
}

.ad-promo {
    font-size: 9px;
    font-style: italic;
    letter-spacing: 2px;
    color: #eee;
}

.ad-btn {
    background: white;
    color: black;
    border: none;
    padding: 7px 18px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    cursor: pointer;
}

.ad-pill {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-top: 10px;
    text-transform: uppercase;
}

.floating-wrapper {
    width: 85vw;
    max-width: 1400px;
    height: auto;
    display: flex;
    position: relative;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* LEFT PANEL (Cream Block) */
.left-pane {
    flex: 0 0 55%;
    background-color: var(--cream);
    border-radius: 20px 0 0 20px;
    padding: 100px 80px 60px 80px;
    position: relative;
    z-index: 15;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 20px 80px rgba(0,0,0,0.5);
}

/* ── INSTAGRAM STYLES ── */
.ig-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ig-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ig-card:hover img {
    transform: scale(1.05);
}

.ig-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-card:hover .ig-card__overlay {
    opacity: 1;
}

/* UTILITY NAV */
.nav-util {
    position: absolute;
    top: 15px;
    right: 80px;
    display: flex;
    gap: 20px;
    z-index: 60;
}

.nav-util a {
    text-decoration: none;
    color: #666;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-util a:hover {
    color: var(--dark);
}

/* FULL WIDTH NAV */
.nav-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 40px 80px;
    z-index: 50; /* Above everything else */
}

.nav-main a {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-main a:hover {
    color: var(--dark);
}

.content-wrapper {
    max-width: 550px;
    margin: 0;
}

/* Issue Band */
.issue-band {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 24px;
    border-radius: 30px;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
    width: max-content;
}

.eyebrow .line {
    width: 30px; /* Short line */
    height: 1px;
    background-color: var(--gold);
    opacity: 0.5;
}

.eyebrow .text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
}

.season {
    font-size: 11px;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Headlines */
.headline-group {
    margin-bottom: 25px;
}

.exclusive {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 20px;
    width: max-content;
    display: inline-block;
}

.giant-headline {
    font-family: 'Playfair Display', serif;
    font-size: 95px;
    font-weight: 400;
    color: var(--dark);
    line-height: 0.95;
    margin-bottom: 15px;
    letter-spacing: 0px;
}

.subheadline {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 45px;
    line-height: 1.3;
    max-width: 90%;
    
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 20px;
    display: inline-block;
}

/* Article List */
.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.article-list li {
    display: flex;
    align-items: center;
    gap: 30px; /* Wider gap between number and text */
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 18px 0;
}

.article-list .num {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--gold);
    font-weight: 600;
}

.article-list .title {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    letter-spacing: 1px;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Aligned left as per reference */
}

.btn {
    padding: 15px 35px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, #e5d1b3, #c3a677);
    color: var(--dark);
    border: none;
    box-shadow: 0 4px 15px rgba(195, 166, 119, 0.3);
}

.btn-outline {
    background: white; /* Filled background for outline button */
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: white;
}


/* RIGHT PANEL (Transparent Stacked Glass) */
.right-pane {
    flex: 0 0 45%;
    /* Gradient matching the height of the left pane's nav area */
    background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 120px, transparent 120px, transparent 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--glass-border);
    border-top: none; 
    border-left: none; 
    border-radius: 0 20px 20px 0;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 100px 80px 60px 80px;
    box-shadow: 20px 20px 80px rgba(0,0,0,0.5);
}

/* The Magazine Cover Image Container */
.cover-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.magazine-cover {
    height: 100%;
    max-height: 600px;
    width: auto;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.4);
}

/* STACKED GLASS PSEUDO-ELEMENTS */
.right-pane::before,
.right-pane::after {
    content: '';
    position: absolute;
    width: 100%;
    /* Start below the 120px cream gradient */
    height: calc(100% - 120px); 
    border-radius: 0 0 20px 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: none;
}

.right-pane::before {
    top: 145px;
    right: -30px;
    z-index: -1;
}

.right-pane::after {
    top: 170px;
    right: -60px;
    z-index: -2;
}

/* ── MICRO-ANIMATIONS & REVEAL ── */
.glass-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn, .form-submit {
    transition: all 0.3s ease;
}
.btn:hover, .form-submit:hover {
    transform: scale(1.03);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MOBILE RESPONSIVENESS ── */
@media (max-width: 900px) {
    /* Mobile ad banner to be the same as the desktop version, proportionally correct */
    .ad-banner {
        width: 95vw;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }
    
    .ad-hush-title {
        font-size: clamp(18px, 5.5vw, 28px);
        margin-bottom: 2px;
        letter-spacing: 2px;
    }
    .ad-hush-promo {
        font-size: clamp(8px, 2.2vw, 11px);
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    .ad-hush-btn {
        font-size: clamp(8px, 2vw, 10px);
        padding: clamp(5px, 1.5vw, 8px) clamp(15px, 4vw, 24px);
        border-radius: 20px;
    }

    /* Scale down the gold rails on mobile */
    .ad-banner-container::before {
        display: none !important;
        height: 5px;
        margin-top: 15px;
        box-shadow: 
            0 4px 6px rgba(0,0,0,0.4),
            inset 0 1px 1px rgba(255,255,255,0.9),
            inset 0 -1px 1px rgba(0,0,0,0.6);
    }
    
    .ad-banner-container::after {
        display: none !important;
        height: 5px;
        margin-top: 6px;
        box-shadow: 
            0 4px 6px rgba(0,0,0,0.4),
            inset 0 1px 1px rgba(255,255,255,0.9),
            inset 0 -1px 1px rgba(0,0,0,0.6);
    }
    
    .issue-band {
        transform: translateX(-15px);
    }
    
    .floating-wrapper {
        flex-direction: column;
        padding: 20px;
        width: 95vw;
        margin-top: 10px;
    }
    .left-pane, .right-pane {
        width: 100%;
        flex: none;
        padding: 40px 20px;
        border-radius: 20px;
        border: none;
    }
    .left-pane {
        order: 4;
    }
    .right-pane {
        display: flex;
        padding: 40px 20px;
        background: transparent;
        box-shadow: none;
        border: none;
        align-items: center;
        order: 3;
    }
    .right-pane::before, .right-pane::after {
        display: none;
    }
    .magazine-cover {
        max-width: 100%;
        height: auto;
    }
    .nav-main {
        position: relative;
        padding: 20px 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        order: 2;
        width: 100%;
    }
    .nav-main a:last-child {
        grid-column: span 2;
    }
    .nav-util {
        position: relative;
        top: 0;
        right: 0;
        padding-top: 20px;
        margin-bottom: 0px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        order: 1;
        width: 100%;
    }
    .nav-main a, .nav-util a {
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: white;
        padding: 12px 15px;
        border-radius: 25px;
        font-size: 10px;
        border: none !important;
        margin-top: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .auth-container {
        flex-direction: column;
    }
    .giant-headline {
        font-size: 50px;
    }
    .section-title {
        font-size: 32px;
    }
    footer {
        padding: 40px 20px;
    }
    footer h2 {
        font-size: 24px;
    }
    
    /* ── SUBPAGE MOBILE FIX ── */
    /* Remove the solid background block from floating-wrapper on subpages */
    .floating-wrapper[style] {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    /* Ensure all content blocks correctly flow BELOW the navigation */
    .floating-wrapper[style] > *:not(.nav-util):not(.nav-main) {
        order: 3;
    }
    /* Wrap the standalone subpage headers in their own bubbles */
    .floating-wrapper[style] h1, 
    .floating-wrapper[style] > p,
    .floating-wrapper[style] > div[style] > p {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 15px 25px;
        border-radius: 20px;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.5);
    }
    /* Add space above subpage grid */
    .floating-wrapper[style] .grid-3,
    .floating-wrapper[style] .grid-2 {
        margin-top: 40px;
    }
    /* ── END SUBPAGE MOBILE FIX ── */
    
    .glass-section {
        width: 95vw !important;
        padding: 30px 20px !important;
        margin-top: 20px !important;
    }
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .action-buttons button {
        width: 100%;
    }
    .ig-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .glass-section h3 {
        font-size: 22px !important;
    }
}
