@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --primary: #CC0000;
    --primary-dark: #A10000;
    --secondary: #1A1A1B;
    /* Dark background */
    --dark: #111;
    --light: #f4f4f4;
    --gray: #666;
    --text-main: #1C1C1E;
    --text-muted: #636366;
    --bg-light: #F2F2F7;
    --bg-white: #FFFFFF;
    --border: #ddd;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Merriweather', serif;

    /* Dynamic Theme Variables */
    --bg-body: var(--bg-white);
    --text-body: var(--text-main);
}

[data-theme="dark"] {
    --bg-body: #111;
    --text-body: #fff;
    --bg-light: #222;
    --text-main: #fff;
    --text-muted: #aaa;
    --border: #333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Don't shrink logo */
}

.site-logo span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    /* Don't shrink nav */
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Header Search Form */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 4px 6px 4px 18px;
    flex: 0 1 450px;
    max-width: 450px;
    min-width: 300px;
    margin: 0 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-search:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.header-search:focus-within {
    background: #ffffff;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2), 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #333;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
}

.search-input::placeholder {
    color: #757575;
    font-weight: 400;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.search-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.search-button:active {
    transform: scale(0.95);
}

/* Desktop & Tablet - Ensure search is visible */
@media (min-width: 769px) {
    .header-inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .header-search {
        display: flex !important;
        flex: 0 1 400px;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 40px 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-section h3.footer-heading {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-about .footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.trust-text {
    color: #888;
}

.trust-brand {
    color: #4CAF50;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact-info p {
    color: #b0b0b0;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-info a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-info a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-copy {
    color: #888;
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-disclaimer {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        flex-wrap: wrap;
    }

    .header-search {
        flex: 1;
        max-width: none;
        margin: 10px 0;
        order: 3;
        width: 100%;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        justify-items: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links {
        align-items: center;
    }

    .footer-trust-badge {
        flex-direction: row;
        /* Keep it inline/compact */
        border-radius: 20px;
        padding: 5px 12px;
        margin: 0 auto;
        font-size: 0.75rem;
        /* Slightly smaller text */
        width: auto;
        display: inline-flex;
    }
}

/* Responsive Ads */
.ad-container {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.ad-container img,
.ad-container iframe,
.ad-container div {
    max-width: 100%;
    height: auto;
}