:root {
    /* Palette LeDaron.tech - Premium Tech Aesthetic */
    --color-bg: #121212;
    /* Ultra Dark */
    --color-bg-secondary: #1e1e1e;
    /* Card Surface */
    --color-bg-tertiary: #2a2a2a;
    /* Lighter Surface */

    --color-text: #e0e0e0;
    /* White-ish */
    --color-text-muted: #a0a0a0;
    /* Grey */

    /* Neons */
    --color-primary: #00f3ff;
    /* Cyan Cyber */
    --color-accent: #00ff9d;
    /* Toxic Green */
    --color-accent-2: #bd00ff;
    /* Purple Neon */
    --color-alert: #ff2a6d;
    /* Red Pink */

    /* Typography */
    --font-heading: 'Roboto Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* Dimensions */
    --container-width: 1240px;
    --header-height: 80px;

    --radius-sm: 6px;
    --radius-md: 12px;

    /* Shadows & Glows */
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 15px rgba(0, 243, 255, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(189, 0, 255, 0.03) 0%, transparent 25%);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* --- COMPONENTS --- */

/* Tech Patterns (CSS Generated Images) */
.pattern-grid {
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
}

.pattern-circuit {
    background-color: #1a1a1a;
    background-image: radial-gradient(#333 15%, transparent 16%), radial-gradient(#333 15%, transparent 16%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

/* Buttons */
.btn-tech {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-tech:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 20px var(--color-primary);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.badge-nvidia {
    background: rgba(118, 185, 0, 0.1);
    color: #76b900;
    border: 1px solid rgba(118, 185, 0, 0.3);
}

.badge-amd {
    background: rgba(237, 28, 36, 0.1);
    color: #ed1c24;
    border: 1px solid rgba(237, 28, 36, 0.3);
}

.badge-win11 {
    background: rgba(0, 120, 212, 0.1);
    color: #3fa9f5;
    border: 1px solid rgba(0, 120, 212, 0.3);
}

.badge-steam {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid rgba(102, 192, 244, 0.3);
}

/* --- HEADER --- */
/* --- HEADER --- */
body {
    padding-top: calc(var(--header-height) + 20px);
    /* Push content down globally */
}

.site-header {
    height: var(--header-height);
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    /* More opaque */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    /* Fixed instead of sticky */
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-icon {
    font-size: 1.4rem;
}

.nav-desktop ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-desktop a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #fff;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* --- DROPDOWN MENU --- */
.nav-desktop li {
    position: relative;
}

.nav-desktop ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.nav-desktop li:hover>ul {
    display: flex;
    /* Show submenu */
}

.nav-desktop ul ul li {
    width: 100%;
}

.nav-desktop ul ul a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-desktop ul ul a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.nav-desktop ul ul a::after {
    display: none;
    /* No underline for dropdown items */
}

/* Arrow indicator for parents */


.has-children>a {
    padding-right: 15px;
}

.has-children>a::before {
    content: '▾';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.7em;
    color: var(--color-primary);
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    margin-right: 8px;
    font-family: inherit;
    border-radius: var(--radius-sm);
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.search-btn {
    padding: 8px 12px;
    min-width: auto;
}

/* --- GRID & LAYOUT --- */
main {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 24px;
}

/* Featured (Hero) */
.featured-section {
    margin-bottom: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Cards */
.card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
    border-color: var(--color-primary);
    z-index: 10;
}

.card-img {
    height: 180px;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Gradient Overlay on Images */
.card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--color-bg-secondary), transparent);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-heading);
    font-size: 3rem;
    background: #111;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    display: flex;
    justify-content: space-between;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Feed Items */
.feed-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: transform 0.2s, background 0.2s;
    /* Glassmorphism attempt */
    /* background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(5px); */
}

.feed-item:hover {
    transform: translateX(5px);
    background: var(--color-bg-tertiary);
    border-color: rgba(255, 255, 255, 0.1);
}

.feed-thumb {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: #000;
    overflow: hidden;
}

.feed-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
    background: #0d0d0d;
}

footer p {
    color: #555;
    font-size: 0.9rem;
}

footer a {
    color: #777;
}

footer a:hover {
    color: var(--color-primary);
}


/* Responsive */
@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .logo {
        order: 1;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    /* Mobile Nav */
    .nav-desktop {
        display: none;
        width: 100%;
        order: 4; /* Below search */
        max-height: 50vh; /* Allow scrolling if menu is long */
        overflow-y: auto;
        background: var(--color-bg-secondary);
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-desktop.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-desktop ul {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-desktop ul ul {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        padding-left: 15px;
        border: none;
    }

    .nav-desktop li.open>ul {
        display: flex;
    }

    /* Mobile Search */
    .search-form {
        display: none;
        width: 100%;
        order: 3; /* Above menu */
        margin-top: 15px;
        background: var(--color-bg-secondary);
        padding: 15px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 15px;
        /* Add some space at bottom if it expands header */
    }

    .search-form.active {
        display: flex;
    }

    .search-input {
        width: 100%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .feed-item {
        flex-direction: column;
    }

    .feed-thumb {
        width: 100%;
        height: 160px;
    }
}

/* --- ARTICLE PAGE --- */
.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.article-header {
    margin-bottom: 40px;
    text-align: left;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.article-meta {
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.tech-box {
    background: #111;
    border: 1px solid #333;
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.tech-box-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    padding: 8px 0;
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-item .label {
    color: #888;
}

.tech-item .value {
    color: #fff;
    font-weight: 600;
}

/* --- INTRO SECTION --- */
.hero-intro {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.hero-intro h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    border-left: none;
    padding-left: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero-intro p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.8;
}

.hero-intro p.highlight {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 32px 0;
    font-weight: 700;
}

.hero-intro strong {
    color: #fff;
    font-weight: 600;
}

/* Avatar Integration */
.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
    margin: 0 auto 24px;
    display: block;
}

@media (min-width: 768px) {
    .hero-intro {
        text-align: left;
        padding-left: 200px;
        /* Space for avatar */
    }

    .hero-intro .hero-avatar {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 120px;
        height: 120px;
    }

    .hero-intro p {
        margin-left: 0;
        /* Reset margin auto */
        max-width: none;
    }
}