/*
Theme Name: Daily Webcomic (Consolidated)
Description: Unified styles for a clean, comic-focused layout with navy/orange branding.
Version: 2.0
Author: Thomas Fasano
*/

/* ============================================================
   1. GLOBAL RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #d4dff1; /* Light Blue Background [cite: 173, 182] */
    padding: 0 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

/* ============================================================
   2. HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: #475e8f; /* Brand Navy  */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.header-image img {
    display: block;
    width: 100%;
    height: auto;
}

.main-navigation {
    background: #475e8f;
    border-bottom: 15px solid #ff6b35; /* Thick Orange Strip [cite: 205, 214] */
    margin-bottom: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
}

.main-navigation a {
    font-family: 'Comic Neue', cursive, sans-serif; /* Brand Font [cite: 224] */
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    padding: 15px 25px;
    text-decoration: none;
    display: block;
}

/* Hide bullets and highlights */
.main-navigation li::before {
    content: none !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background-color: #475e8f; /* Removed hover highlight as requested [cite: 242] */
}

/* ============================================================
   3. COMIC AREA & NAVIGATION
   ============================================================ */
.main-content {
    flex: 1;
    background: white;
    padding: 30px;
    margin-top: 0;
}

.comic-content {
    text-align: center;
    background: #ffffff;
    margin: 0 auto;
}

/* Desktop Comic Width [cite: 144] */
@media (min-width: 769px) {
    .comic-content img {
        max-width: 740px;
        width: 740px;
        height: auto;
    }
}

/* Navigation Buttons */
.comic-nav .nav-buttons {
    display: inline-flex;
    gap: 15px;
}

/* Thick Chevron Arrows [cite: 18, 19] */
.comic-nav .nav-btn:not(.random)::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-top: 7px solid #ff6b35;
    border-right: 7px solid #ff6b35;
}

/* Random Button: Static Box Style [cite: 159, 231] */
.comic-nav .nav-btn.random {
    background: #ff6b35;
    font-family: 'Comic Neue', sans-serif;
    font-size: 3rem;
    padding: 10px 15px;
    color: white;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.comic-nav .nav-btn.random:hover {
    transform: none;
    background: #ff6b35;
}

/* ============================================================
   4. SIDEBAR & WIDGETS
   ============================================================ */
.sidebar {
    width: 300px;
}

.widget-title {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: #ff6b35; /* Default Orange [cite: 166, 171] */
    padding: 10px 15px 12px;
    text-align: center;
}

/* Clean up list bullets in widgets [cite: 60, 62] */
.widget ul {
    list-style: none;
}

.widget li {
    position: relative;
    padding: 5px 0 5px 20px;
}

.widget li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* ============================================================
   5. FOOTER
   ============================================================ */
.site-footer {
    background: #475e8f;
    color: white;
    padding: 30px 0;
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
}

/* ============================================================
   6. MOBILE RESCUE (Edge-to-Edge & Alignment)
   ============================================================ */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }

    .container, .main-content, .comic-area {
        width: 100%;
        padding: 10px;
        margin: 0;
        left: 0;
        transform: none; /* Kill the 50% left hacks [cite: 215, 217] */
    }

    .comic-content img {
        width: 100%;
        max-width: 100%;
    }

    .main-navigation a {
        font-size: 1.1rem;
        padding: 5px 20px;
    }

    .nav-btn.random {
        font-size: 1.2rem; /* Mobile scaling for the random button [cite: 234] */
    }
}