/* Global Variables & Reset */
:root {
    /* Geek Palette */
    --primary-blue: #009FDF;
    --primary-yellow: #FFE600;
    /* Mercado Livre Yellow */
    --geek-purple: #2A0E45;
    /* Deep Space Purple */
    --neon-cyan: #00F3FF;
    --neon-pink: #FF0099;

    --text-dark: #1a1a2e;
    --text-light: #666;
    --bg-light: #f4f7f6;
    --white: #FFFFFF;
    --black: #000000;

    --border-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 24px rgba(42, 14, 69, 0.15);
    /* Purple tint shadow */

    /* Typography */
    --font-primary: 'Poppins', 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    /* Subtle dot pattern */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--geek-purple);
    letter-spacing: -0.5px;
    margin-bottom: 0.8em;
}

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

ul {
    list-style: none;
}

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

/* Header - Geek Galaxy Style */
body>header {
    background: var(--geek-purple);
    background: linear-gradient(135deg, #1a0b2e 0%, #2A0E45 100%);
    box-shadow: 0 4px 20px rgba(42, 14, 69, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 4px solid var(--primary-yellow);
}

header.scrolled {
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 160px;
}

/* Logo */
.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 40px;
}

.logo .text-blue {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.logo .text-black {
    color: var(--primary-yellow);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-yellow);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Search Bar */
/* Search Bar - SciFi Style */
.search-bar input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 10px 20px 10px 45px;
    border-radius: 30px;
    width: 240px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    width: 280px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Section - Gamer Vibe */
.hero {
    padding: 120px 0;
    background-image: linear-gradient(rgba(26, 11, 46, 0.7), rgba(26, 11, 46, 0.8)), url('images/hero-bg-pixel.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* CTA Buttons - 3D & "Press Start" */
.btn-primary,
.btn-affiliate-small,
.btn-cta {
    background: var(--primary-yellow);
    color: var(--geek-purple);
    font-weight: 900;
    padding: 16px 40px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 6px 0 #b3a100, 0 10px 20px rgba(0, 0, 0, 0.2);
    /* 3D Border Bottom */
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    top: 0;
}

.btn-primary:active {
    top: 6px;
    box-shadow: 0 0 0 #b3a100, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #ffe600;
    filter: brightness(1.1);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--primary-yellow);
    margin: 15px auto 0;
    border-radius: 4px;
}

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

/* Article Cards - Collector Style */
.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 159, 223, 0.15);
}

.article-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.article-body {
    padding: 30px;
}

.article-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.read-more {
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Footer - Deep Space */
footer {
    background-color: var(--geek-purple);
    color: var(--white);
    border-top: 4px solid var(--primary-yellow);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col h4 {
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-seal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--neon-cyan);
    color: var(--white);
}

/* Adjust headings inside articles for contrast if needed, mostly kept dark on white cards */

.expert-icon {
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.affiliate-disclaimer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Glossary Page Specifics */
.glossary-card {
    text-align: center;
    border-top: 4px solid var(--primary-blue);
}

.glossary-icon {
    font-size: 2.5rem;
    margin: 0 auto 15px;
    background: #f4f8fb;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}

.btn-affiliate-small {
    padding: 10px 25px;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* Sidebar & Alert Boxes */
.sidebar-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.alert-box {
    padding: 20px;
    border-radius: 8px;
    background: #fff3cd;
    border-left: 5px solid var(--primary-yellow);
    margin: 20px 0;
}

.alert-error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 700;
}

/* Trust Seals & Benefits */
.trust-seals {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    opacity: 0.8;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 20px;
    background: #fdfdfd;
}

.benefits-bar {
    background: #f0f8ff;
    padding: 15px 0;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 30px;
}

.benefits-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Checklist Visuals */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.check-icon {
    font-size: 1.1rem;
}

.check-icon.success {
    color: #2ecc71;
}

.check-icon.error {
    color: #e74c3c;
}

/* Pagination / Load More */
.hidden-card {
    display: none;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

/* Responsive Layout Classes */
.page-layout {
    display: flex;
    gap: 40px;
    padding-top: 50px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Header adjustments */
    .header-inner {
        flex-direction: column;
        height: auto;
        padding-bottom: 15px;
    }

    .logo {
        margin-left: 0;
        margin-bottom: 15px;
        justify-content: center;
    }

    .logo img {
        max-height: 60px !important;
        width: auto !important;
    }

    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Layout adjustments */
    .page-layout {
        flex-direction: column;
        padding-top: 30px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .sidebar-box ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sidebar-box ul li {
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 5px;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography Overrides */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        margin-bottom: 40px;
        text-align: center;
    }

    footer {
        text-align: center;
    }
}