/*
Theme Name: Zero Day Football
Description: Custom theme for Zero Day Football subscription site with glass morphism design
Version: 1.0
Author: Zero Day Football
*/

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* === THEME VARIABLES === */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --accent-primary: #ff6b35;
    --accent-secondary: #00ff88;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --zd-admin-offset: 0px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --accent-primary: #ff6b35;
    --accent-secondary: #2d7d32;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.95);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

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

/* === BASE STYLES === */
html, body {
    transition: background-color .3s ease;
}

html[data-zd-theme="dark"], body[data-zd-theme="dark"] {
    background-color: #000000 !important;
    color-scheme: dark;
}

html[data-zd-theme="light"], body[data-zd-theme="light"] {
    background-color: #ffffff !important;
    color-scheme: light;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar {
    --zd-admin-offset: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --zd-admin-offset: 46px;
    }
}

/* === BACKGROUND EFFECTS === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
    background-size: 400% 400%;
    background-image:
        radial-gradient(circle at 20% 80%, var(--accent-secondary) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--accent-primary) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--accent-secondary) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, var(--accent-primary) 0%, transparent 50%);
    animation: zd-gradient-float 18s ease-in-out infinite;
}

@keyframes zd-gradient-float {
    0%, 100% { background-position: 0% 50%, 100% 50%, 50% 0%, 50% 100%; }
    25% { background-position: 25% 25%, 75% 75%, 25% 75%, 75% 25%; }
    50% { background-position: 50% 0%, 50% 100%, 100% 50%, 0% 50%; }
    75% { background-position: 75% 75%, 25% 25%, 75% 25%, 25% 75%; }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.02;
    z-index: 2;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(24px, 6vw, 42px); }
h2 { font-size: clamp(20px, 5vw, 32px); }
h3 { font-size: clamp(18px, 4vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* === LAYOUT === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.content-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 5;
    background: transparent;
}

/* === GLASS COMPONENTS === */
.glass-container {
    position: relative;
    isolation: isolate;
}

.glass-filter {
    position: absolute;
    inset: 0;
    z-index: 0;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all .3s ease;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all .3s ease;
}

.glass-specular {
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow:
        inset 1px 1px 0 var(--glass-highlight),
        inset 0 0 20px rgba(255,255,255,0.1),
        inset 0 0 40px rgba(255,255,255,0.05);
}

.glass-content {
    position: relative;
    z-index: 3;
}

@supports not (backdrop-filter: blur(16px)) {
    .glass-filter {
        background: var(--glass-bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* === UTILITY CLASSES === */
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-inter { font-family: 'Inter', sans-serif; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* === SCROLL LOCK === */
html.zd-scroll-locked, body.zd-scroll-locked {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

/* === WORDPRESS SPECIFIC === */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }
}