/*
Theme Name:   Magazine Pro
Theme URI:    https://example.com/magazine-pro
Description:  A powerful and flexible news theme with multiple skins, including 'The Financier' for business and 'TechPulse' for technology news.
Author:       Your Name
Author URI:   https://example.com
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         news, magazine, responsive-layout, custom-logo, custom-menu, dark-mode, post-formats, threaded-comments, translation-ready
Text Domain:  magazine-pro
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Normalize & Globals
2.0 Core Layout & Structure (Container, Grids, Spacing)
3.0 Accessibility
4.0 Typography (Base styles for headings, paragraphs)
5.0 Header & Navigation (Structural styles)
6.0 Content & Post Structure (Base card, list styles)
7.0 Sidebar & Widgets (Structural styles)
8.0 Footer (Structural styles)
9.0 Forms & Buttons (Base styles)
10.0 Utility & Animations
11.0 Media Queries (Responsiveness)

NOTE: Skin-specific styles (colors, fonts, specific tweaks) are located in:
- /css/financier-style.css
- /css/techpulse-style.css
These are loaded via functions.php based on the Customizer setting.
--------------------------------------------------------------*/

/* 1.0 Normalize & Globals */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
body {
    margin: 0;
    background-color: #f9f9f9; /* Default light background */
    color: #333;
    font-family: 'Inter', sans-serif; /* A neutral default font */
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2.0 Core Layout & Structure */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}
@media (min-width: 992px) {
    .main-content-grid {
        grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3.0 Accessibility */
.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;
}

/* 4.0 Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.2;
}
p {
    margin-top: 0;
    margin-bottom: 1.5em;
}
a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* 5.0 Header & Navigation (Structure) */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff; /* Default background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-navigation li {
    display: inline-block;
    position: relative;
}
.main-navigation a {
    display: block;
    padding: 15px 20px;
}
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
}

/* 6.0 Content & Post Structure (Base) */
.post-card {
    background-color: #fff; /* Default surface color */
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.post-card-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.post-card .entry-header {
    padding: 20px;
}
.post-card .entry-title {
    font-size: 1.25rem;
    margin: 10px 0 0;
}
.post-card .entry-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}
.post-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 7.0 Sidebar & Widgets (Structure) */
.widget-area .widget {
    background-color: #fff;
    padding: 25px;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    margin-bottom: 30px;
}
.widget-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 8.0 Footer (Structure) */
.site-footer {
    color: #ccc;
    padding-top: 50px;
    padding-bottom: 30px;
    margin-top: 40px;
}
.footer-widgets {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #555;
}
.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 11.0 Media Queries */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        padding: 10px;
    }
    .hamburger-icon {
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
        position: relative;
    }
    .hamburger-icon::before, .hamburger-icon::after {
        content: '';
        display: block;
        width: 24px;
        height: 2px;
        background: #333;
        position: absolute;
    }
    .hamburger-icon::before { top: -8px; }
    .hamburger-icon::after { top: 8px; }
    .main-navigation {
        display: none;
    }
    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-navigation li {
        display: block;
        text-align: left;
    }
}