/*
Theme Name: CG Wall Sports
Theme URI: https://www.cgwall.com/
Author: CG Wall Team
Author URI: https://www.cgwall.com/
Description: A premium, fast-loading, and SEO-optimized WordPress theme designed specifically for CG Wall Sports. Focuses on E-E-A-T guidelines, Top Stories ranking, and unbiased world sports journalism.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cgwallsports
Tags: sports, news, two-columns, right-sidebar, responsive-layout, custom-colors, custom-menu, featured-images, translation-ready, dark-mode
*/

/* ==========================================================================
   1. CSS RESET & GLOBAL VARIABLES
   ========================================================================== */
:root {
    /* CG Wall Sports Brand Variables */
    --brand-primary: #001f3f; /* Deep Navy Blue */
    --brand-accent: #d90429;  /* Action Red (News Vibe) */
    --header-dark: #0a0e17;   /* Deep Space Black for Premium Header */
    --text-dark: #111827;
    --text-light: #f3f4f6;
    --bg-body: #f4f7f6;
    --white: #ffffff;
    --border-light: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-body: #0b1120;
    --text-dark: #f8fafc;
    --white: #1e293b;
    --border-light: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   2. CORE TYPOGRAPHY & LAYOUT RESETS
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    margin-bottom: 15px;
    font-weight: 800;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: var(--white);
}

/* Media Resets */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Container */
.container-xl {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. ACCESSIBILITY (SEO Best Practices)
   ========================================================================== */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}