/* Modern Military Theme */
:root {
    --primary-color: #0f172a; /* Slate 900 */
    --secondary-color: #334155; /* Slate 700 */
    --accent-color: #d97706; /* Amber 600 */
    --text-color: #333333;
    --light-bg: #f8fafc; /* Slate 50 */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-serif: 'Georgia', serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Header */
body > header {
    background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.92)), url('https://upload.wikimedia.org/wikipedia/commons/7/79/Photo_collage_for_the_page_%22European_theatre_of_World_War_II%22.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-color);
}

.logo-icon img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #cbd5e1; /* Slate 300 */
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)), url('https://upload.wikimedia.org/wikipedia/commons/e/eb/Bundesarchiv_Bild_183-R05148%2C_Westfront%2C_deutscher_Soldat.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #e2e8f0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #b45309; /* Amber 700 */
    color: white;
}

/* Hero Backgrounds */
.hero-home {
    background-image: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)), url('https://upload.wikimedia.org/wikipedia/commons/e/eb/Bundesarchiv_Bild_183-R05148%2C_Westfront%2C_deutscher_Soldat.jpg');
}

.hero-ww2 {
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('https://upload.wikimedia.org/wikipedia/commons/2/28/Bundesarchiv_Bild_101I-298-1759-25%2C_Nordfrankreich%2C_Panzer_IV.jpg');
}

.hero-pre-ww2 {
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('https://upload.wikimedia.org/wikipedia/commons/f/f6/British_Mark_I_male_tank_Somme_25_September_1916.jpg');
}

.hero-cold-war {
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('https://upload.wikimedia.org/wikipedia/commons/8/80/Berlin_Wall_1961-11-20.jpg');
}

.hero-modern {
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('https://upload.wikimedia.org/wikipedia/commons/4/47/B-2_Spirit_original.jpg');
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* Articles */
.section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    background-color: #cbd5e1;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.category-tag {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 20px;
}

.ad-placeholder {
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px dashed #cbd5e1;
}

.ad-sidebar {
    height: 250px;
    width: 100%;
}

.ad-leaderboard {
    height: 90px;
    width: 100%;
    margin-bottom: 30px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
}

.count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #64748b;
}

/* Newsletter Widget */
.widget-newsletter {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.widget-newsletter .widget-title {
    border-color: white;
}

.newsletter-text {
    color: #cbd5e1;
}

.newsletter-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter-btn {
    border: none;
    cursor: pointer;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.tech-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.tech-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.tech-table tr:hover {
    background-color: #f1f5f9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Article Page Specifics */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-content {
    font-size: 1.1rem;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.article-content h3 {
    font-size: 1.35rem;
    margin: 30px 0 15px;
    font-family: var(--font-serif);
    color: var(--secondary-color);
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 25px;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.image-caption {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 30px;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 30px 0;
    background: #f8fafc;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Utility Classes */
.mt-0 { margin-top: 0; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.my-30 { margin: 30px 0; }
.py-60 { padding: 60px 0; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.radius-8 { border-radius: 8px; }
.text-accent { color: var(--accent-color); }
.text-slate { color: #64748b; }
.font-sm { font-size: 0.9rem; }
.text-primary { color: var(--primary-color); }

/* FAQ Box */
.faq-box {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 40px;
}

.faq-box h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 25px;
}

.faq-box h3:first-of-type {
    margin-top: 10px;
}

.faq-box p {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.7;
    color: #475569;
}

/* Specs Table (matches tech-table) */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.specs-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.specs-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.specs-table tr:hover {
    background-color: #f1f5f9;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
}

/* Ad Specifics */
.ad-in-content {
    height: 250px;
    margin: 40px 0;
}

.ad-tall {
    height: 600px;
}

/* Article Specifics */
.lead {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 30px;
    font-family: var(--font-serif);
}

.article-image-full {
    width: 100%;
    border-radius: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* Page Content (About, Contact, Privacy) */
.page-content h2 {
    font-size: 1.6rem;
    margin: 35px 0 15px;
    font-family: var(--font-serif);
    color: var(--primary-color);
}

.page-content h2:first-of-type {
    margin-top: 0;
}

.page-content h3 {
    font-size: 1.2rem;
    margin: 25px 0 10px;
    color: var(--secondary-color);
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #475569;
}

.about-list {
    list-style: none;
    margin: 10px 0 20px;
    padding: 0;
}

.about-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.about-list li::before {
    content: '\2022';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Form */
.contact-form {
    margin: 25px 0 35px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: #b45309;
    transform: translateY(-3px);
}

/* Cookie Consent Overlay (full-page blocker) */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-banner {
    background: #0f172a;
    color: #e2e8f0;
    padding: 36px 32px;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: cookieSlideIn 0.4s ease;
}

@keyframes cookieSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-banner-inner {
    max-width: 100%;
}

.cookie-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.cookie-banner h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

.cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #94a3b8;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #cbd5e1;
    padding: 4px 0;
}

.cookie-age-label {
    padding-bottom: 10px !important;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-btn-accept {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1;
}

.cookie-btn-accept:hover:not(:disabled) {
    background-color: #b45309;
    transform: translateY(-1px);
}

.cookie-btn-accept:disabled {
    background-color: #475569;
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-btn-decline {
    background: none;
    border: 1px solid #ef4444;
    color: #f87171;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-btn-decline:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.cookie-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
    font-weight: 600;
}

.cookie-note {
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin-top: 4px;
    margin-bottom: 0 !important;
    font-style: italic;
}

/* Newsletter Messages */
.newsletter-msg {
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
}

.newsletter-msg.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sponsor Links */
.footer-sponsors {
    border-top: 1px solid #334155;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.footer-sponsors p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sponsor-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.sponsor-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    article {
        padding: 0 4px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .article-content h3 {
        font-size: 1.15rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    blockquote {
        font-size: 1.05rem;
        padding: 15px;
    }

    .specs-table td,
    .specs-table th,
    .tech-table td,
    .tech-table th {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .nav-wrapper nav {
        display: none; /* Hide for now, simple implementation */
    }

    .nav-wrapper nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
