:root {
    --primary: #c99339;
    --primary-hover: #e8b355;
    --dark-bg: #0a0a0a;
    --panel-bg: rgba(18, 18, 20, 0.85);
    --border-color: #332d20;
    --text-light: #e0e0e0;
    --text-muted: #9e9e9e;
    --pvp-color: #d32f2f;
    --pve-color: #64b5f6;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(200, 160, 60, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.form-control {
    width: 100%;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(201, 147, 57, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(20, 20, 20, 0.9);
}

.form-control::placeholder {
    color: #666;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(201, 147, 57, 0.3);
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

/* User Area & Steam Button */
.steam-btn {
    background: #171A21;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #484b51;
    transition: all 0.3s ease;
    cursor: pointer;
}

.steam-btn:hover {
    background: #66c0f4;
    color: #171A21;
    border-color: #66c0f4;
    box-shadow: 0 0 15px rgba(102, 192, 244, 0.4);
}

.steam-btn i {
    font-size: 1.3rem;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.profile .name {
    font-weight: 600;
    font-size: 1rem;
    padding-left: 8px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-light);
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

.dropdown-menu a.logout:hover {
    color: #f44336;
}

/* Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
}

.hero-content {
    background: var(--glass-bg);
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #a67c00 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 147, 57, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 147, 57, 0.6);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    color: white;
}

/* Dashboard */
.dashboard {
    width: 100%;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.welcome-box {
    text-align: center;
    margin-bottom: 4rem;
}

.welcome-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.welcome-box .highlight {
    color: var(--primary);
}

.welcome-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.content-card {
    position: relative;
    height: 480px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.content-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(201, 147, 57, 0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    transition: transform 0.8s ease;
}

.content-card:hover .card-bg {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.1) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
}

.card-content .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.content-card:hover .icon {
    transform: scale(1.1);
}

.pvp-icon {
    color: var(--pvp-color);
    text-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
}

.pve-icon {
    color: var(--pve-color);
    text-shadow: 0 0 15px rgba(100, 181, 246, 0.6);
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: white;
}

.card-content p {
    color: #dcdcdc;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    transition: gap 0.3s ease, color 0.3s ease;
    font-size: 1.1rem;
}

.content-card:hover .action-btn {
    gap: 15px;
    color: var(--primary-hover);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}
.status-APPROVED { background: rgba(76, 175, 80, 0.2); color: #4caf50; border: 1px solid #4caf50; }
.status-PENDING { background: rgba(255, 152, 0, 0.2); color: #ff9800; border: 1px solid #ff9800; }
.status-REJECTED { background: rgba(244, 67, 54, 0.2); color: #f44336; border: 1px solid #f44336; }

/* Role Badges (Global) */
.role-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}
.role-ADMIN { background: #f44336; color: white; }
.role-MOD { background: #ff9800; color: white; }
.role-USER { background: #444; color: #ccc; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.lang-switcher a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}
.lang-switcher a:hover, .lang-switcher a.active {
    color: var(--primary);
}
.lang-switcher span {
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        height: 350px;
    }
}
/* Main Navigation */
.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 30px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(201, 147, 57, 0.15);
    box-shadow: inset 0 0 10px rgba(201, 147, 57, 0.1);
}
.nav-link.active {
    color: var(--primary);
    background: rgba(201, 147, 57, 0.1);
    border: 1px solid rgba(201, 147, 57, 0.2);
}
.nav-link::after { display: none; } /* Removing the underline for a cleaner button look */

@media (max-width: 1100px) {
    .main-nav { gap: 20px; }
    .nav-link { font-size: 0.85rem; }
}

@media (max-width: 900px) {
    .main-nav { display: none; } /* Hide on small screens or implement a mobile menu */
}
