
/* =========================================
   1. Reset & Variables (Modern Foundation)
   ========================================= */
:root {
    /* Color Palette - Dark Gaming Theme */
    --c-bg-body: #0f141e;
    --c-bg-card: #1c2436;
    --c-bg-header: rgba(15, 20, 30, 0.95);
    
    --c-primary: #3b82f6;
    --c-primary-dark: #1d4ed8;
    --c-accent: #facc15; /* Gold/Yellow */
    --c-accent-hover: #eab308;
    --c-accent-text: #0f141e;
    
    --c-text-main: #f1f5f9;
    --c-text-muted: #94a3b8;
    --c-border: rgba(255, 255, 255, 0.1);
    
    --c-success: #22c55e;
    
    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fz-base: 1rem;
    --fz-h1: clamp(2rem, 5vw, 3.5rem);
    --fz-h2: clamp(1.5rem, 3vw, 2.5rem);
    --fz-h3: clamp(1.25rem, 2vw, 1.75rem);
    
    /* Spacing & Layout */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --spacing-container: 1.5rem;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Effects */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(250, 204, 21, 0.4);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg-body);
    color: var(--c-text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fz-h1); background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: var(--fz-h2); margin-top: 2rem; border-bottom: 2px solid var(--c-primary); display: inline-block; padding-bottom: 0.25rem; }
h3 { font-size: var(--fz-h3); color: var(--c-primary); margin-top: 1.5rem; }

p { margin-bottom: 1.5rem; color: var(--c-text-muted); }
a { color: var(--c-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--c-accent); }

ul, ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--c-text-muted); }
li { margin-bottom: 0.5rem; }

/* Custom checkmarks for lists */
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
}
.entry-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-success);
    font-weight: bold;
}

/* =========================================
   3. Layout & Grid
   ========================================= */
.grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-container);
    padding-right: var(--spacing-container);
}

.site-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.content-area {
    flex: 1;
    min-width: 0; /* Fix flex overflow */
}

/* Sidebar */
.widget-area {
    width: 100%;
    max-width: 300px;
}
@media (max-width: 992px) {
    .widget-area { max-width: 100%; margin-top: 2rem; }
}

/* WordPress Columns */
.wp-block-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.wp-block-column { flex: 1; min-width: 0; }

@media (max-width: 768px) {
    .wp-block-columns { flex-direction: column; }
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--c-bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--c-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-accent);
    transition: width var(--transition-fast);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .main-navigation { display: none; } /* Standard menu hidden */
    .menu-toggle { display: block; }
    .mobile-menu-control-wrapper { display: flex; align-items: center; }
}

/* =========================================
   5. Buttons & Interactive Elements
   ========================================= */
.button-container {
    margin: 2rem 0;
    text-align: center;
}

.winlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 2em;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.winlink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.winlink:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    color: #fff;
}

.winlink:hover::before {
    left: 100%;
}

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

/* Yellow Variant */
.winlink.yellow {
    background: linear-gradient(135deg, var(--c-accent) 0%, #d97706 100%);
    color: var(--c-accent-text);
    box-shadow: var(--shadow-glow-accent);
}

.winlink.yellow:hover {
    box-shadow: 0 7px 20px rgba(250, 204, 21, 0.5);
    color: #000;
}

/* =========================================
   6. Component Styling (Cards & Sections)
   ========================================= */
/* Sections targeted by ID for specific styling adjustments if needed, 
   but generally using card style for container blocks */
.wp-block-columns {
    background-color: var(--c-bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--c-border);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.wp-block-columns:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Images */
.wp-block-image img, 
figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: block;
    transition: transform var(--transition-smooth);
}

.wp-block-image img:hover {
    transform: scale(1.02);
}

/* Tables (if any generated by plugins) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--c-bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

th {
    background-color: rgba(0,0,0,0.2);
    color: var(--c-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* =========================================
   7. Sidebar Widgets
   ========================================= */
.sidebar .widget {
    background-color: var(--c-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--c-border);
}

/* =========================================
   8. Footer
   ========================================= */
.site-footer {
    background-color: #05080f;
    padding-top: 3rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--c-border);
    margin-top: auto;
}

.footer-widgets .menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.footer-widgets .menu a {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-widgets .menu a:hover {
    color: var(--c-accent);
    padding-left: 5px; /* Slight movement */
}

.site-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* =========================================
   9. Mobile Menu (Slideout)
   ========================================= */
.slideout-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: var(--c-bg-card);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    padding-top: 3rem;
}

/* When active (handled by JS usually, but styling state here) */
.slideout-navigation.is-open {
    transform: translateX(0);
}

.slideout-menu li {
    border-bottom: 1px solid var(--c-border);
}

.slideout-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.slideout-exit {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   10. Micro-animations & Utilities
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

article {
    animation: fadeIn 0.6s ease-out;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Form Elements (Generic) */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--c-border);
    color: #fff;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
