/* ============================================================
   Private Beauty Club 40+ — Club Styles
   Uses the same CSS variables as the main site (style.css)
   ============================================================ */

/* ── Gate Page ──────────────────────────────────────────── */
.gate-body {
    overflow: hidden;
}

.gate-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8vw;
    overflow: hidden;
}

.gate-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gate-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 14, 12, 0.82) 0%,
        rgba(20, 14, 12, 0.60) 50%,
        rgba(20, 14, 12, 0.20) 100%
    );
}

.gate-content {
    position: relative;
    z-index: 2;
    color: #FCF9F5;
    max-width: 580px;
}

.gate-subtitle {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 20px;
}

.gate-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.0;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.gate-highlight {
    font-style: italic;
    color: #EBDAD2;
}

.gate-desc {
    font-size: 1.05rem;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

.gate-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
}

.gate-note {
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 10px;
}

.gate-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    font-family: var(--font-body);
}

.gate-dot {
    margin: 0 12px;
    opacity: 0.4;
}

/* Buttons within club */
.btn-club-primary {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    cursor: none;
    transition: all 0.3s ease;
    background-color: #EBDAD2;
    color: #3a2e2b;
    border: 1px solid #EBDAD2;
}

.btn-club-primary:hover {
    background-color: transparent;
    color: #FCF9F5;
    border-color: #EBDAD2;
}

.btn-club-outline {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    cursor: none;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #FCF9F5;
    border: 1px solid rgba(252,249,245,0.4);
}

.btn-club-outline:hover {
    background-color: rgba(252,249,245,0.08);
    border-color: rgba(252,249,245,0.7);
}

/* ── Club Login Popup ───────────────────────────────────── */
.club-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 18, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.club-popup {
    background: var(--bg-light);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.club-popup-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 5;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.club-popup-close:hover { opacity: 1; }

.club-popup-inner {
    display: flex;
    height: 100%;
    min-height: 520px;
}

.club-popup-video {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.club-popup-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-popup-video-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #FCF9F5;
    font-family: var(--font-heading);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.club-popup-video-label span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
}

.club-popup-video-label strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
}

.club-popup-form-side {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.club-popup-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.club-popup-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.club-form-group {
    margin-bottom: 20px;
}

.club-form-group label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.6;
    font-family: var(--font-body);
}

.club-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(125,107,101,0.3);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    border-radius: 2px;
    transition: border-color 0.3s;
    outline: none;
}

.club-input:focus {
    border-color: var(--bg-dark);
}

.club-form-error {
    background: #fdecea;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.club-popup-hint {
    font-size: 0.83rem;
    opacity: 0.6;
    margin-top: 16px;
    line-height: 1.5;
}

.club-popup-hint a {
    color: var(--text-dark);
    font-weight: 400;
}

.club-popup-hint a:hover {
    opacity: 0.7;
}

/* ── Club Dashboard (Members Area) ─────────────────────── */
.club-page {
    min-height: 100vh;
    background: var(--bg-light);
}

/* Club Navbar */
.club-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252,249,245,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(125,107,101,0.12);
    padding: 18px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.club-navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dark);
}

.club-navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.8rem;
}

.club-navbar-email {
    opacity: 0.5;
    font-family: var(--font-body);
    font-size: 0.78rem;
}

.club-navbar-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.club-navbar-link:hover { opacity: 1; }

.club-admin-link {
    background: var(--bg-dark);
    color: var(--text-light) !important;
    opacity: 1 !important;
    padding: 8px 18px;
    border-radius: 2px;
}

/* Club Header Section */
.club-header-section {
    padding: 80px 0 60px;
    background: var(--bg-secondary);
}

.club-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.club-header-text {
    flex: 1;
}

.club-header-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 16px;
}

.club-header-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.club-header-desc {
    font-size: 1rem;
    opacity: 0.75;
    line-height: 1.8;
    max-width: 460px;
}

.club-header-photo {
    width: 560px !important;
    flex-shrink: 0;
}

.club-header-photo img, 
.club-header-photo iframe {
    width: 100% !important;
    height: 315px !important;
    object-fit: cover;
    object-position: top;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: none;
}

/* Category Tabs */
.club-categories-bar {
    background: var(--bg-light);
    border-bottom: 1px solid rgba(125,107,101,0.12);
    position: sticky;
    top: 62px;
    z-index: 90;
}

.club-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.club-categories-inner::-webkit-scrollbar { display: none; }

.club-cat-tab {
    padding: 20px 28px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.45;
    cursor: none;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.25s;
    flex-shrink: 0;
}

.club-cat-tab:hover { opacity: 0.8; }

.club-cat-tab.active {
    opacity: 1;
    border-bottom-color: var(--bg-dark);
}

/* Posts Grid */
.club-posts-section {
    padding: 60px 0 100px;
}

.club-posts-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.club-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 36px;
    margin-top: 10px;
}

.club-post-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(125,107,101,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: none;
}

.club-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(125,107,101,0.14);
}

.club-post-thumb {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.club-post-thumb iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: none;
}

.club-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.3;
}

.club-post-card-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.club-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.club-post-cat {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-dark);
    opacity: 0.65;
    font-family: var(--font-body);
}

.club-post-date {
    font-size: 0.72rem;
    opacity: 0.4;
    font-family: var(--font-body);
}

.club-post-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-dark);
    flex: 1;
}

.club-empty {
    text-align: center;
    padding: 80px 20px;
    opacity: 0.45;
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* ── Single Post View ───────────────────────────────────── */
.club-post-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 30px 100px;
}

.club-post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dark);
    opacity: 0.5;
    margin-bottom: 40px;
    transition: opacity 0.2s;
}

.club-post-back:hover { opacity: 1; }

.club-post-header {
    margin-bottom: 36px;
}

.club-post-header-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.club-post-header-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
}

.club-post-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #1a1414;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.club-post-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.club-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    opacity: 0.85;
}

.club-post-content h2, .club-post-content h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    margin: 30px 0 14px;
}

.club-post-content p { margin-bottom: 18px; }
.club-post-content ul, .club-post-content ol { padding-left: 24px; margin-bottom: 18px; }
.club-post-content li { margin-bottom: 8px; }

/* ── Navbar Club Button ──────────────────────────────────── */
.nav-club-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px !important;
    margin-left: 20px !important;
    border: 1px solid rgba(235,218,210,0.6) !important;
    border-radius: 20px !important;
    background: transparent;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    position: relative;
    transition: all 0.3s ease !important;
    animation: club-pulse 3s ease-in-out infinite;
}

@media (max-width: 900px) {
    .nav-club-btn {
        font-size: 1rem !important;
        padding: 14px 28px !important;
        margin-left: 0 !important;
        margin-top: 25px !important;
        border-width: 1.5px !important;
        background: rgba(235, 218, 210, 0.08) !important;
        letter-spacing: 3px !important;
    }
}

.nav-club-btn:hover {
    background: var(--bg-dark) !important;
    color: var(--text-light) !important;
    border-color: var(--bg-dark) !important;
    animation: none;
}

@keyframes club-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(235,218,210,0);
        border-color: rgba(235,218,210,0.4);
    }
    50% {
        box-shadow: 0 0 14px 4px rgba(235,218,210,0.35);
        border-color: rgba(235,218,210,0.9);
    }
}

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-page {
    min-height: 100vh;
    background: var(--bg-light);
    font-family: var(--font-body);
}

.admin-header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.admin-header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-header-nav a {
    color: rgba(252,249,245,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.admin-header-nav a:hover,
.admin-header-nav a.active { color: #EBDAD2; }

.admin-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 30px;
}

.admin-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(125,107,101,0.07);
}

.admin-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--bg-secondary);
    color: var(--text-dark);
    opacity: 0.7;
    border-bottom: 1px solid rgba(125,107,101,0.12);
}

.admin-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(125,107,101,0.07);
    vertical-align: middle;
}

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

.admin-table tr:hover td { background: rgba(247,235,232,0.35); }

.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-badge.published { background: #e8f5e9; color: #2e7d32; }
.admin-badge.draft { background: #f5f5f5; color: #777; }

.admin-btn {
    display: inline-block;
    padding: 7px 16px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid;
    transition: all 0.25s;
    cursor: none;
    background: none;
    font-family: var(--font-body);
    margin-right: 6px;
}

.admin-btn-edit { border-color: var(--bg-dark); color: var(--bg-dark); }
.admin-btn-edit:hover { background: var(--bg-dark); color: var(--text-light); }

.admin-btn-delete { border-color: #c0392b; color: #c0392b; }
.admin-btn-delete:hover { background: #c0392b; color: #fff; }

.admin-btn-primary { background: var(--bg-dark); color: var(--text-light); border-color: var(--bg-dark); }
.admin-btn-primary:hover { background: transparent; color: var(--text-dark); }

/* Admin Form */
.admin-form {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(125,107,101,0.07);
    max-width: 820px;
}

.admin-form-group {
    margin-bottom: 26px;
}

.admin-form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.65;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(125,107,101,0.3);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--bg-dark);
}

.admin-form-group textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.7;
}

.admin-form-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.admin-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.admin-stat-card {
    background: #fff;
    border-radius: 4px;
    padding: 26px 34px;
    box-shadow: 0 4px 20px rgba(125,107,101,0.07);
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.admin-stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--bg-dark);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.55;
    margin-top: 8px;
}

.admin-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: 2px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.admin-error {
    background: #fdecea;
    color: #c0392b;
    padding: 14px 18px;
    border-radius: 2px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.admin-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

/* ── Checkout ─────────────────────────────────────────────── */
.club-checkout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--bg-light);
}

.club-checkout-box {
    background: #fff;
    max-width: 520px;
    width: 100%;
    padding: 60px 50px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(125,107,101,0.12);
    text-align: center;
}

.club-checkout-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 12px;
}

.club-checkout-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 16px;
}

.club-checkout-price {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    color: var(--bg-dark);
    margin: 24px 0 10px;
}

.club-checkout-perks {
    list-style: none;
    text-align: left;
    margin: 28px 0 36px;
}

.club-checkout-perks li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(125,107,101,0.1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.club-checkout-perks li::before {
    content: '✦';
    color: var(--accent);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .gate-hero { padding: 0 6vw; }
    .gate-overlay {
        background: linear-gradient(to bottom,
            rgba(20,14,12,0.80) 0%,
            rgba(20,14,12,0.60) 100%);
    }

    .club-popup-video { display: none; }
    .club-popup-inner { flex-direction: column; }
    .club-popup-form-side { padding: 40px 28px; }
    .club-popup { max-height: 95vh; overflow-y: auto; }

    .club-navbar { padding: 14px 20px; }
    .club-header-inner { flex-direction: column; gap: 30px; padding: 0 20px; }
    .club-header-photo { width: 100%; }
    .club-header-photo img,
    .club-header-photo iframe { height: 210px; }

    .club-categories-inner { padding: 0 20px; }
    .club-posts-inner { padding: 0 20px; }
    .club-posts-grid { grid-template-columns: 1fr; }

    .admin-body { padding: 30px 16px; }
    .admin-form { padding: 24px 18px; }

    .club-checkout-box { padding: 40px 24px; }
}

@media (max-width: 600px) {
    .gate-title { font-size: 3rem; }
    .gate-actions { flex-direction: column; }
    .gate-actions .btn-club-primary,
    .gate-actions .btn-club-outline {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
    }
    .gate-categories { font-size: 0.65rem; }

    .club-header-title { font-size: 2.4rem; }
    .club-post-header-title { font-size: 1.8rem; }
}
