@charset "UTF-8";

/* =========================================
   1. Global Variables & Reset (Industrial Theme)
   ========================================= */
:root {
    /* Industrial Palette - Dark, Heavy, Metallic */
    --color-bg: #121212;
    --color-metal-dark: #1a1a1a;
    --color-metal-light: #2c2c2c;
    --color-rust: #cd7f32;
    --color-rust-dark: #8b4513;
    --color-steel: #778899;
    --color-gold: #daa520;
    --color-text: #b0b0b0;
    --color-text-bright: #e0e0e0;
    
    /* Type Colors */
    --color-accent-1: #cd7f32; /* Rust */
    --color-accent-2: #708090; /* Slate */
    --color-accent-3: #556b2f; /* Olive Drab */
    --color-accent-4: #8b0000; /* Dark Red */
    --color-accent-5: #daa520; /* Goldenrod */
    
    /* UI Elements */
    --radius-main: 4px; /* Sharp corners for industrial look */
    --radius-card: 2px;
    --shadow-heavy: 4px 4px 10px rgba(0,0,0,0.7), inset 1px 1px 2px rgba(255,255,255,0.1);
    --shadow-glow: 0 0 15px rgba(205, 127, 50, 0.4);
    --border-metal: 2px solid #444;
    --border-weld: 2px dashed #555;
    
    --font-main: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    --font-display: 'Impact', 'Arial Black', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 140px;
    
    /* Industrial Texture: Brushed Metal / Grid */
    background-image: 
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
        repeating-linear-gradient(45deg, #1a1a1a 0, #1a1a1a 1px, #222 1px, #222 5px);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--color-rust);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-gold);
    text-shadow: 0 0 5px var(--color-rust);
}

ul {
    list-style: none;
}

/* =========================================
   2. Container
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================
   3. Navbar (Industrial Beam)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-metal-dark);
    border-bottom: 4px solid var(--color-rust-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    padding: 1rem 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23222222' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-text-bright);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
    border: 2px solid var(--color-rust);
    padding: 5px 15px;
    background: #222;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    position: relative;
}

/* Screws/Rivets on Logo */
.logo h1::before, .logo h1::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #555;
    border-radius: 50%;
    box-shadow: inset 1px 1px 1px #000;
    top: 50%;
    transform: translateY(-50%);
}
.logo h1::before { left: 4px; }
.logo h1::after { right: 4px; }

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: var(--color-text-bright);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid #444;
    background: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1);
}

.nav-links a:hover {
    background: var(--color-rust-dark);
    color: #fff;
    border-color: var(--color-rust);
    box-shadow: 0 0 10px var(--color-rust);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    border: 1px solid var(--color-rust);
    padding: 5px;
    background: #222;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-rust);
    transition: all 0.3s ease;
}

/* =========================================
   4. Hero Section (Industrial)
   ========================================= */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 2px dashed #444;
    margin-bottom: 3rem;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 70%);
}

.hero h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-text-bright);
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    border-bottom: 4px solid var(--color-rust);
    display: inline-block;
    padding-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 700px;
    margin: 20px auto 0;
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-left: 4px solid var(--color-rust);
}

/* =========================================
   5. Categories (Metal Plates)
   ========================================= */
.article-categories {
    margin-bottom: 4rem;
}

/* Base Category Style */
.category, .industrial-category {
    background: var(--color-metal-dark);
    border: 1px solid #333;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

/* Rivets on corners */
.category::before, .category::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px #000;
    top: 10px;
    z-index: 5;
}
.category::before { left: 10px; }
.category::after { right: 10px; }

.category-header {
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, #333, #222);
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-rust);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 1px 1px 2px #000;
}

/* Games Grid */
.games-grid, .industrial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: #1a1a1a;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, #222 20px);
}

/* Game Card */
.game-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #222;
    border: 1px solid #444;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-rust);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.game-card:hover::before {
    /* Spark effect */
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 1px dashed var(--color-gold);
    animation: border-flash 1s infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes border-flash {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Card Image */
.card-img-wrapper {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 2px solid #000;
    filter: sepia(20%) contrast(1.1);
    transition: filter 0.3s;
    background: #111;
}

.game-card:hover .card-img-wrapper {
    filter: sepia(0%) contrast(1.2);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */
.game-card-content {
    padding: 1rem;
    text-align: center;
    background: #252525;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card h4 {
    font-size: 0.95rem;
    color: var(--color-text-bright);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* =========================================
   6. Footer (Heavy Metal Base)
   ========================================= */
.footer {
    background: #0f0f0f;
    color: #777;
    padding: 3rem 0;
    border-top: 4px solid var(--color-rust-dark);
    text-align: center;
    margin-top: 4rem;
}

.footer-links a {
    color: #888;
    margin: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-rust);
}

/* =========================================
   7. Advertisement Preservation
   ========================================= */
#adv1, #adv2, #adv3 {
    margin: 2rem auto;
    max-width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px dashed #444;
    padding: 10px;
}

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none; /* Hide for now or implement JS toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #222;
        flex-direction: column;
        padding: 1rem;
        border-top: 2px solid var(--color-rust);
    }
    
    .nav-links.active {
        display: flex;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .games-grid, .industrial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .card-img-wrapper {
        height: 120px;
    }
}

/* =========================================
   9. Detail Page
   ========================================= */
.game-detail {
    background: var(--color-metal-light);
    padding: 2rem;
    border: 1px solid #444;
    box-shadow: var(--shadow-heavy);
    margin: 2rem 0;
    color: var(--color-text);
}

.game-detail h2 {
    font-family: var(--font-display);
    color: var(--color-rust);
    text-transform: uppercase;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.game-detail h3 {
    color: var(--color-text-bright);
    margin-top: 20px;
    border-left: 3px solid var(--color-rust);
    padding-left: 10px;
}

.game-detail p, .game-detail ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-detail-image {
    border: 4px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
