:root {
    --midnight-black: #0a0a0a;
    --charcoal-grey: #1a1a1a;
    --panel-bg: #141414;
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A028;
    --gold-highlight: #F7E7CE;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #666666;
    --border-color: #333333;
    --success-green: #00C851;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    background-color: var(--midnight-black);
    background-image: url('images/bg-texture.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-highlight);
}

/* Layout Structure - Dashboard Style */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.logo-area {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--gold-primary);
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-menu {
    padding: 20px 0;
    flex-grow: 1;
}

.nav-item {
    display: block;
    padding: 15px 25px;
    color: var(--text-secondary);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
}

/* Top Bar */
.top-bar {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.btn-register {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border: none;
    color: var(--midnight-black);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--midnight-black);
}

/* Hero Section */
.hero-section {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Content Panels */
.content-wrapper {
    padding: 40px 60px;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.panel-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--charcoal-grey);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--gold-primary);
}

.game-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: bold;
}

.game-provider {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Text Content Styling */
.article-body {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-left: 4px solid var(--gold-primary);
    padding-left: 15px;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-primary);
}

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

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--charcoal-grey);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(0,0,0,0.3);
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: normal;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--midnight-black);
    border-top: 1px solid var(--border-color);
    padding: 60px 60px 30px;
    margin-top: 60px;
}

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

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    .logo-text, .nav-text {
        display: none;
    }
    .main-content {
        margin-left: 80px;
    }
    .nav-item {
        text-align: center;
        padding: 15px 0;
    }
    .nav-icon {
        margin-right: 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    .nav-item {
        padding: 10px 15px;
        white-space: nowrap;
    }
    .logo-text, .nav-text {
        display: inline;
    }
    .main-content {
        margin-left: 0;
    }
    .hero-section {
        padding: 0 20px;
        height: 400px;
    }
    .content-wrapper {
        padding: 20px;
    }
    .top-bar {
        padding: 0 20px;
    }
}
