/* ===================================
   FOLKVANGR REALM PORTAL - MAIN STYLES
   =================================== */

/* === ROOT VARIABLES === */
:root {
    /* Neutral Theme (Public/No Characters) */
    --neutral-primary: #2c2c2c;
    --neutral-secondary: #3a3a3a;
    --neutral-accent: #4a4a4a;
    --neutral-text: #e0e0e0;
    
    /* Horde Theme (Red) */
    --horde-primary: #8b0000;
    --horde-secondary: #a01010;
    --horde-accent: #c41e1e;
    --horde-dark: #5a0000;
    --horde-glow: rgba(200, 30, 30, 0.6);
    
    /* Alliance Theme (Blue) */
    --alliance-primary: #003d82;
    --alliance-secondary: #0051a8;
    --alliance-accent: #0066cc;
    --alliance-dark: #002a5c;
    --alliance-glow: rgba(0, 102, 204, 0.6);
    
    /* Golden Accents (Universal) */
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941e;
    --gold-glow: rgba(212, 175, 55, 0.7);
    
    /* Common Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
}

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === THEME CLASSES === */
/* Neutral Theme */
body.theme-neutral {
    --theme-primary: var(--neutral-primary);
    --theme-secondary: var(--neutral-secondary);
    --theme-accent: var(--neutral-accent);
    --theme-glow: rgba(74, 74, 74, 0.4);
}

/* Horde Theme */
body.theme-horde {
    --theme-primary: var(--horde-primary);
    --theme-secondary: var(--horde-secondary);
    --theme-accent: var(--horde-accent);
    --theme-glow: var(--horde-glow);
}

/* Alliance Theme */
body.theme-alliance {
    --theme-primary: var(--alliance-primary);
    --theme-secondary: var(--alliance-secondary);
    --theme-accent: var(--alliance-accent);
    --theme-glow: var(--alliance-glow);
}

/* === HEADER === */
header {
    background: linear-gradient(180deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.realm-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.realm-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.user-actions a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.user-actions a:hover {
    color: var(--gold);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 0 20px var(--gold-glow);
    border: 3px solid var(--gold-light);
}

.logo-text h1 {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === NAVIGATION === */
nav {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 15px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

nav a:hover::before {
    width: 80%;
}

nav a.active {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

nav a.active::before {
    width: 80%;
}

/* === CONTAINER === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === MAIN CONTENT === */
main {
    flex: 1;
    padding: 40px 0;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 50%, var(--theme-accent) 100%);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--gold);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.02)" width="50" height="50"/><rect fill="rgba(255,255,255,0.02)" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border: 2px solid var(--gold-light);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-primary));
    color: var(--text-primary);
    border: 2px solid var(--theme-accent);
}

.btn-secondary:hover {
    box-shadow: 0 0 25px var(--theme-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-primary) 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    border-color: var(--gold);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--gold-glow);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* === STATS SECTION === */
.stats-section {
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--theme-primary) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--gold-glow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === FOOTER === */
footer {
    background: linear-gradient(180deg, var(--theme-secondary) 0%, var(--theme-primary) 100%);
    border-top: 3px solid var(--gold);
    padding: 40px 0 20px;
    margin-top: auto;
}

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

.footer-section h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
