/* CheatWire - Editorial Gaming Magazine Theme
   Strict grid, heavy borders, white/black/red palette.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&family=Oswald:wght@700&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-alt: #f4f4f4;
    --text-main: #111111;
    --text-muted: #555555;
    --accent: #e60000;
    --accent-hover: #b30000;
    --border: #111111;
    --border-light: #e5e5e5;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --container: 1280px;
}

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

body {
    background-color: var(--bg-alt);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    background-color: var(--bg-main);
    border-bottom: 4px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-light); }

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span { color: var(--accent); }

.nav-main { display: flex; gap: 30px; padding: 15px 0; }
.nav-main a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--text-main);
}
.nav-main a:hover, .nav-main a.active { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--text-main);
    color: #fff;
    font-family: var(--font-heading);
    padding: 12px 25px;
    text-transform: uppercase;
    font-size: 1.1rem;
    border: 2px solid var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-red { background: var(--accent); border-color: var(--accent); }
.btn-red:hover { background: var(--text-main); border-color: var(--text-main); }

/* Layout Grid (Magazine style) */
.mag-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.section-header {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    border-bottom: 4px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Featured Article */
.featured-article { background: var(--bg-main); border: 1px solid var(--border-light); position: relative; }
.featured-article:hover .featured-img { opacity: 0.9; }
.featured-img-wrap { overflow: hidden; border-bottom: 4px solid var(--border); }
.featured-img { width: 100%; height: 500px; object-fit: cover; transition: opacity 0.3s; }
.featured-content { padding: 30px; }
.tag {
    display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-heading);
    padding: 4px 10px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 15px;
}
.featured-title { font-family: var(--font-heading); font-size: 3rem; line-height: 1.1; margin-bottom: 15px; }
.featured-title:hover { color: var(--accent); }

/* Sidebar List */
.sidebar-list { background: var(--bg-main); border: 1px solid var(--border-light); padding: 25px; }
.sidebar-item { border-bottom: 1px solid var(--border-light); padding: 15px 0; display: flex; gap: 15px; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item img { width: 100px; height: 75px; object-fit: cover; border: 1px solid var(--border-light); }
.sidebar-item-content h4 { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.2; }
.sidebar-item-content h4:hover { color: var(--accent); }

/* Standard Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.news-card { background: var(--bg-main); border: 1px solid var(--border-light); display: flex; flex-direction: column; }
.news-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 2px solid var(--border); }
.news-card-content { padding: 20px; flex-grow: 1; }
.news-card h3 { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
.news-card h3:hover { color: var(--accent); }
.news-card p { color: var(--text-muted); font-size: 0.95rem; }

/* SEO Blocks */
.seo-section { background: var(--bg-main); border-top: 4px solid var(--border); border-bottom: 4px solid var(--border); padding: 60px 0; margin-bottom: 60px; }
.seo-block { margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
.seo-block h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 20px; color: var(--accent); text-transform: uppercase; }
.seo-block h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; margin-top: 30px; }
.seo-block p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }

/* Article Page */
.article-page { background: var(--bg-main); padding: 60px 0; border: 1px solid var(--border-light); margin: 40px auto; max-width: 900px; }
.article-header { padding: 0 40px 40px; border-bottom: 4px solid var(--border); text-align: center; }
.article-header h1 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-top: 15px; text-transform: uppercase; }
.article-hero { width: 100%; height: 450px; object-fit: cover; margin-bottom: 40px; border-bottom: 2px solid var(--border); }
.article-body { padding: 0 40px; }
.article-body h2 { font-family: var(--font-heading); font-size: 2rem; margin: 40px 0 20px; text-transform: uppercase; border-left: 5px solid var(--accent); padding-left: 15px; }
.article-body p { font-size: 1.15rem; color: var(--text-main); margin-bottom: 20px; }
.article-body ul { padding-left: 20px; margin-bottom: 20px; font-size: 1.15rem; }
.article-body li { margin-bottom: 10px; }
.code-box { background: var(--bg-alt); border: 2px dashed var(--border); padding: 20px; font-family: monospace; font-size: 1.2rem; color: var(--accent); text-align: center; margin: 30px 0; font-weight: bold; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 5px; font-size: 1.1rem; }
.form-control { width: 100%; padding: 15px; border: 2px solid var(--border-light); font-family: var(--font-body); font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--accent); }

/* Footer */
footer { background: var(--bg-main); border-top: 4px solid var(--border); padding: 40px 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; margin-bottom: 20px; }
.footer-links a { margin-left: 20px; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Mobile */
@media (max-width: 900px) {
    .mag-layout { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .nav-main { display: none; } /* Simplified mobile for demo */
    .featured-title { font-size: 2rem; }
}
