/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (UNIFIED BRANDING)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #121212;
    --color-bg-card: rgba(24, 24, 24, 0.75);
    --color-border-card: rgba(223, 175, 103, 0.15);
    --color-text-primary: #f5f5f0;
    --color-text-secondary: #d1d1ca;
    
    /* Accents & Glows */
    --accent-gold: #dfaf67;
    --accent-gold-hover: #ebd0a3;
    --accent-gold-glow: rgba(223, 175, 103, 0.2);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #dfaf67, #b8863b);
    --gradient-text: linear-gradient(135deg, #ffffff, #f5f5f0, #dfaf67);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Cinzel', Georgia, serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow-gold: 0 0 25px var(--accent-gold-glow);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    /* Subtle horizontal manuscript lines */
    background-image: linear-gradient(rgba(223, 175, 103, 0.015) 1px, transparent 1px);
    background-size: 100% 28px;
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    letter-spacing: 0.02em;
    font-weight: 700;
}

/* ==========================================================================
   BACKGROUND GLOW EFFECT
   ========================================================================== */
.bg-glow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
}

.bg-glow-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -150px;
    background-color: var(--accent-gold);
    opacity: 0.07;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    top: 30%;
    right: -200px;
    background-color: var(--accent-gold);
    opacity: 0.05;
}

.bg-glow-3 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    left: -100px;
    background-color: var(--accent-gold);
    opacity: 0.06;
}

/* ==========================================================================
   BREADCRUMB / NAVIGATION
   ========================================================================== */
.breadcrumb-container {
    width: 100%;
    background: rgba(8, 9, 13, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.back-link:hover {
    color: var(--accent-gold);
    transform: translateX(-3px);
}

.back-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-container {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-gold), rgba(255, 255, 255, 0.2));
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(223, 175, 103, 0.15);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: scale(1.04) rotate(1deg);
    box-shadow: 0 12px 30px rgba(223, 175, 103, 0.25);
}

.brand-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: contain;
    background-color: #161821;
}

.brand-name {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.brand-tagline {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
    max-width: 550px;
}

/* ==========================================================================
   RESOURCES SECTION
   ========================================================================== */
.resources-section {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    max-width: 600px;
    margin: -1.8rem auto 0;
    font-weight: 300;
    line-height: 1.6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

/* Glassmorphism Cards */
.resource-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-card);
    border-radius: 24px;
    padding: 2.2rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow-gold), var(--shadow-main);
}

/* Card Badges */
.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    background: rgba(223, 175, 103, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(223, 175, 103, 0.25);
    font-family: var(--font-primary);
}

.card-badge.badge-video {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Card Icons */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(223, 175, 103, 0.12);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.resource-card:hover .card-icon {
    transform: scale(1.1) rotate(-4deg);
    background: var(--gradient-gold);
    color: #121212;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* Card Text */
.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
    flex-grow: 1;
}

/* Card Button */
.card-button {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
    color: var(--color-text-secondary);
}

.resource-card:hover .card-button {
    background: var(--gradient-gold);
    border-color: transparent;
    color: #121212;
    box-shadow: 0 8px 20px rgba(223, 175, 103, 0.2);
}

.resource-card:hover .card-button .arrow-icon {
    color: #121212;
}

.card-button:hover {
    transform: scale(1.02);
}

.card-button:hover .arrow-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   PREMIUM CALL TO ACTION
   ========================================================================== */
.premium-section {
    width: 100%;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    padding: 3.5rem 3rem;
    background: radial-gradient(circle at 10% 20%, rgba(223, 175, 103, 0.1) 0%, rgba(223, 175, 103, 0.03) 50%, rgba(20, 22, 31, 0.85) 100%);
    border: 1px solid var(--color-border-card);
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

.premium-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--accent-gold);
    filter: blur(100px);
    opacity: 0.08;
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.premium-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.premium-tag {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid rgba(223, 175, 103, 0.35);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    text-transform: uppercase;
}

.premium-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.premium-description {
    font-family: var(--font-primary);
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.premium-button {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: var(--gradient-gold);
    border-radius: 16px;
    color: #121212;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(223, 175, 103, 0.15);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.premium-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(223, 175, 103, 0.3);
}

.premium-button:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 0.2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: #121212;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-gold);
}

.tiktok-svg {
    width: 18px;
    height: 18px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.footer-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: -0.8rem;
    font-style: italic;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 2rem 1rem 3rem 1rem;
        gap: 2.8rem;
    }
    
    .brand-name {
        font-size: 2.3rem;
    }
    
    .brand-tagline {
        font-size: 1.05rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premium-section {
        padding: 2.8rem 1.8rem;
        border-radius: 24px;
    }
    
    .premium-title {
        font-size: 1.7rem;
    }
    
    .premium-button {
        width: 100%;
        text-align: center;
        padding: 1.1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .resource-card {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
}
