:root {
    --color-bg-dark: #050505;
    --color-bg-medium: #101010;
    --color-accent-green: #00ff40; /* Neon Xbox-style green */
    --color-accent-green-soft: #3ddc6a;
    --color-text-light: #f5f5f5;
    --color-text-dim: #9b9b9b;
    --color-tile-hover: #181818;
    --font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-family);
    min-height: 100vh;
    background-image: url('xbox_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 255, 64, 0.15), transparent 55%),
                radial-gradient(circle at bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    pointer-events: none;
    z-index: 0;
}

/* Typography and Layout */
.dashboard-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 14px 24px;
    position: relative;
    z-index: 1;
}

.system-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.98));
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid var(--color-accent-green);
    box-shadow: 0 0 12px rgba(0, 255, 64, 0.25);
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.system-bar h1 {
    font-size: clamp(1.2em, 4vw, 1.7em);
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.logo-x {
    color: var(--color-accent-green);
    font-weight: 800;
}

.logo-jtag {
    color: var(--color-text-light);
    font-weight: 700;
}

.logo-360 {
    color: var(--color-accent-green-soft);
    font-weight: 600;
}

.clock {
    font-size: 0.85em;
    color: var(--color-text-dim);
}

/* Nav */
.main-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.9em;
}

.main-nav a {
    color: var(--color-text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.main-nav a:hover {
    color: var(--color-text-light);
    border-color: rgba(0, 255, 64, 0.6);
    background-color: rgba(0, 255, 64, 0.08);
    box-shadow: 0 0 10px rgba(0, 255, 64, 0.35);
}

/* Content Area */
.content-area {
    background: linear-gradient(to bottom, rgba(4, 4, 4, 0.96), rgba(8, 8, 8, 0.98));
    border-radius: 0 0 8px 8px;
    border: 1px solid #202020;
    border-top: none;
    padding: 18px 14px 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
}

.section {
    margin-bottom: 26px;
    padding: 16px 14px 14px;
    background: radial-gradient(circle at top left, rgba(0, 255, 64, 0.08), transparent 60%),
                #050505;
    border-radius: 8px;
    border: 1px solid #1d1d1d;
}

.section:last-of-type {
    margin-bottom: 8px;
}

.section h2 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--color-accent-green-soft);
    border-bottom: 1px solid rgba(0, 255, 64, 0.3);
    padding-bottom: 6px;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.download-list {
    display: grid;
    gap: 12px;
}

/* Tile Layout */
.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.file-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.download-tile {
    background: radial-gradient(circle at top, #181818, #080808);
    border: 1px solid #202020;
    border-radius: 6px;
    padding: 10px 10px 9px;
    text-decoration: none;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease,
        border-color 0.15s ease;
    min-height: 96px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 64, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.download-tile:hover {
    background-color: var(--color-tile-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 255, 64, 0.3);
    border-color: rgba(0, 255, 64, 0.7);
}

.download-tile:hover::before {
    opacity: 1;
}

.download-tile .title {
    font-weight: 600;
    font-size: 0.98em;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-tile .description {
    font-size: 0.82em;
    color: var(--color-text-dim);
    flex-grow: 1;
    margin-bottom: 6px;
}

.download-tile .info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--color-accent-green-soft);
}

.download-tile .info span:last-child {
    font-weight: 600;
}

.download-tile.featured-tile {
    min-height: 120px;
    border-width: 1px;
    border-color: rgba(0, 255, 64, 0.5);
    box-shadow: 0 0 14px rgba(0, 255, 64, 0.25);
}

.download-tile.featured-tile .title {
    font-size: 1.08em;
    color: var(--color-accent-green);
}

/* Icon */
.tile-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 64, 0.7));
}

/* Footer */
.site-footer {
    margin-top: 10px;
    font-size: 0.75em;
    color: var(--color-text-dim);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.footer-separator {
    color: #555;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .system-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 5px 8px;
    }

    .content-area {
        padding: 14px 10px 12px;
    }

    .section {
        padding: 12px 10px 10px;
    }
}