:root {
    /* Sapphire & Platinum Palette */
    --sapphire-dark: #0a192f;
    --sapphire-medium: #112240;
    --sapphire-light: #233554;
    --platinum-bright: #e6f1ff;
    --platinum-dim: #8892b0;
    --electric-blue: #64ffda;
    --accent-silver: #ccd6f6;
    
    /* Functional Colors */
    --bg-body: #020c1b;
    --bg-panel: rgba(17, 34, 64, 0.95);
    --text-primary: #e6f1ff;
    --text-secondary: #a8b2d1;
    --text-muted: #8892b0;
    --success: #64ffda;
    --danger: #ff5f5f;
    
    /* Dimensions */
    --sidebar-width: 260px;
    --header-height: 70px;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    background-image: url('images/bg-texture-blue.jpg');
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--platinum-bright);
    margin-bottom: 1rem;
}

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

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sapphire-dark);
    border-right: 1px solid var(--sapphire-light);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

.logo-area {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--sapphire-light);
    background: linear-gradient(90deg, var(--sapphire-dark), var(--sapphire-medium));
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--electric-blue), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background: rgba(100, 255, 218, 0.1);
    color: var(--electric-blue);
    border-left-color: var(--electric-blue);
}

.nav-icon {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--sapphire-light);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid var(--sapphire-light);
}

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

.btn-login {
    padding: 8px 20px;
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-login:hover {
    background: rgba(100, 255, 218, 0.1);
}

.btn-register {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--electric-blue), #00b8d4);
    color: var(--sapphire-dark);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2,12,27,0.3), rgba(2,12,27,0.9));
}

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

.hero-title {
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
    margin-bottom: 20px;
}

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

/* Content Wrapper */
.content-wrapper {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Panels & Cards */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--sapphire-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--sapphire-light);
    padding-bottom: 10px;
}

.panel-title {
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin: 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--sapphire-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

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

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

.game-info {
    padding: 15px;
}

.game-title {
    font-weight: 700;
    color: var(--platinum-bright);
    margin-bottom: 5px;
}

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

/* Article Body */
.article-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-body h2 {
    color: var(--electric-blue);
    margin-top: 30px;
    border-left: 4px solid var(--electric-blue);
    padding-left: 15px;
}

.article-body h3 {
    color: var(--platinum-bright);
    margin-top: 25px;
}

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

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

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

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--sapphire-medium);
    border-radius: 8px;
    overflow: hidden;
}

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

.data-table th {
    background: var(--sapphire-dark);
    color: var(--electric-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.data-table tr:hover {
    background: rgba(100, 255, 218, 0.05);
}

/* Footer */
.footer {
    background: var(--sapphire-dark);
    padding: 50px 30px 20px;
    border-top: 1px solid var(--sapphire-light);
    margin-top: auto;
}

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

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

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

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

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

.footer-col a:hover {
    color: var(--electric-blue);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--sapphire-light);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
