:root {
    /* Palette: Premium Longevity (Dark Mode Base) */
    --bg-dark: #0a0a0a;
    --bg-panel: #141414;
    --text-main: #f5f5f5;
    --text-muted: #d1d1d1;
    /* Lightened for better contrast */
    --accent: #d97706;
    --accent-glow: rgba(217, 119, 6, 0.3);
    --border: #262626;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Full Screen Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darken video for text readability */
    z-index: 1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -10px;
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Allows growth if content is tall */
    height: auto;
    padding: 140px 0 80px;
    /* Ensure space for header and bottom clearance */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    /* animation: fadeIn 1.5s ease-out; Removed to improve LCP Score */
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: #e5e5e5;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    background: #b45309;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Club Card (Enhanced Visibility) */
.club-hero-card {
    background: rgba(10, 10, 10, 0.65);
    /* Darker background for contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 119, 6, 0.5);
    /* Semi-transparent accent border */
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    /* Slightly wider padding */
    margin-top: 2rem;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    /* Lift it off the background */
    position: relative;
    /* Context for pseudo-elements if needed */
}

.club-hero-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(10, 10, 10, 0.75);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.club-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    /* Slightly larger */
    color: #fff;
    /* Pure white for title */
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.club-title i {
    color: var(--accent);
    font-size: 1.1em;
}

.club-desc {
    font-size: 0.95rem;
    color: #e0e0e0;
    /* Brighter text for readability */
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-club-access {
    font-size: 0.95rem;
    color: #fff;
    /* White text on button */
    text-decoration: none;
    font-weight: 700;
    /* Bolder */
    border: 2px solid var(--accent);
    /* Thicker border */
    padding: 0.6rem 2rem;
    border-radius: 50px;
    transition: all 0.3s;
    background: rgba(217, 119, 6, 0.1);
    /* Subtle tint */
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-club-access:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    margin-top: 4rem;
}

.group-footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .group-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-col {
        flex: 1;
    }

    .footer-col:last-child {
        text-align: right;
    }
}

.group-tags {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}

.group-tags span {
    position: relative;
}

.group-tags span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -0.9rem;
    color: var(--accent);
    opacity: 0.7;
}

.group-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.group-link:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    width: 100%;
    max-width: 600px;
}

/* Optimization: Prevent CLS */
.products-grid,
.blog-grid {
    min-height: 50vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

/* Shop Specific Styles */
.shop-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-panel));
}

.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.product-image {
    height: 300px;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0.8;
    }
}

.product-card.skeleton .product-image {
    background: #262626;
}

.product-card.skeleton .product-title {
    height: 1.5rem;
    background: #262626;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card.skeleton .product-desc {
    height: 3rem;
    background: #262626;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card.skeleton .price {
    height: 2rem;
    width: 30%;
    background: #262626;
    border-radius: 4px;
}

.product-card.skeleton .btn {
    opacity: 0;
}

/* FAQ Styles */
.section-padding {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-panel);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.faq-question:hover {
    background: rgba(217, 119, 6, 0.1);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Blog Post Specific Styles */
.post-container {
    max-width: 800px;
    margin: 120px auto 4rem;
    /* Top margin to clear fixed header */
    padding: 0 2rem;
    position: relative;
    /* Ensure z-index works if needed */
    z-index: 10;
}

.blog-post {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-category {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.post-image-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.post-content h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.highlight-box ul {
    padding-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-box h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta-box p {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
    }

    .post-image-container {
        margin: 1.5rem 0;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Mobile Menu Styles */
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 10000;
        /* Ensure menu is on top of everything */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hero Mobile Fixes - Prevent Overlap/Blocking */
    .hero {
        padding-top: 140px;
        padding-bottom: 120px;
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
    }

    .club-hero-card {
        margin-top: 2rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 400px;
    }
}