/*
Theme Name: Sporten Theme
Theme URI: https://sporten.com
Author: Sporten Dev Team
Author URI: https://sporten.com
Description: Lightweight, performance-focused theme for sports news portals. Built to replace Newspaper Theme with focus on Core Web Vitals and lazy-loaded ads.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sporten
Tags: news, sports, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Sporten Theme - Custom WordPress Theme for Sports News Portals
Designed for performance: <100KB total assets, lazy-loaded ads, zero jQuery.
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Colors - Brand */
    --color-primary: #8BC34A;
    --color-primary-dark: #689F38;
    --color-primary-light: #AED581;
    --color-secondary: #1a1a1a;
    --color-accent: #FFC107;
    --color-accent-dark: #FFA000;
    
    /* Colors - Semantic */
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-error: #F44336;
    --color-info: #2196F3;
    
    /* Colors - Neutral (Dark Theme) */
    --color-bg: #121212;
    --color-bg-card: #1e1e1e;
    --color-bg-elevated: #2a2a2a;
    --color-bg-hover: #333333;
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --color-text-subtle: #808080;
    --color-border: #333333;
    --color-border-light: #444444;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;           /* 4px */
    --space-2: 0.5rem;            /* 8px */
    --space-3: 0.75rem;           /* 12px */
    --space-4: 1rem;              /* 16px */
    --space-5: 1.25rem;           /* 20px */
    --space-6: 1.5rem;            /* 24px */
    --space-8: 2rem;              /* 32px */
    --space-10: 2.5rem;           /* 40px */
    --space-12: 3rem;             /* 48px */
    --space-16: 4rem;             /* 64px */
    
    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --grid-gap: 0.75rem;
    --grid-gap-lg: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-Index Scale */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-header: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* Light Theme Override (jeśli potrzebne) */
@media (prefers-color-scheme: light) {
    :root.auto-theme {
        --color-bg: #f5f5f5;
        --color-bg-card: #ffffff;
        --color-bg-elevated: #ffffff;
        --color-text: #1a1a1a;
        --color-text-muted: #666666;
        --color-border: #e0e0e0;
    }
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

/* Images */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Forms */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* Paragraphs */
p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}
/* ads */
.taboola-section > .ad-slot{
    display: flex;
    flex-direction: column;
}