/* ============================================
   DEATH RISING: REBIRTH - Main Stylesheet
   ============================================ */

:root {
    --bg-dark: #12121f;
    --bg-darker: #080810;
    --bg-card: #0f1629;
    --bg-accent: #0a2545;
    --text-primary: #e4e4e4;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent-red: #e94560;
    --accent-red-dark: #b8354d;
    --accent-gold: #f1c40f;
    --accent-green: #2ecc71;
    --accent-blue: #3498db;
    --accent-purple: #9b59b6;
    --accent-cyan: #00d4ff;
    --border-color: #2a2a4a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --glow-red: 0 0 20px rgba(233, 69, 96, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent-red);
    text-shadow: var(--glow-red);
}

.nav-logo span {
    color: var(--text-secondary);
    font-weight: normal;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-red);
    text-shadow: none;
}

/* Dropdown Arrow */
.nav-arrow {
    font-size: 0.7em;
    transition: transform 0.2s;
}

.nav-links > li:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    list-style: none;
}

.nav-links > li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
    padding: 0;
}

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    border-bottom: none;
    transition: all 0.2s;
}

.nav-dropdown a:hover {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent-red);
    border-bottom: none;
}

.nav-dropdown a.active {
    color: var(--accent-red);
    background: rgba(233, 69, 96, 0.05);
    border-bottom: none;
}

.nav-cta {
    background: var(--accent-red);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    border: none !important;
}

.nav-cta:hover {
    background: var(--accent-red-dark);
    text-shadow: none !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5em;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background: 
        radial-gradient(ellipse at center, rgba(233, 69, 96, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    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"><text y="50" font-size="80" fill="rgba(255,255,255,0.02)">☠</text></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4em;
    color: var(--accent-red);
    text-shadow: var(--glow-red);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero h1 span {
    display: block;
    font-size: 0.4em;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    letter-spacing: 8px;
    margin-top: 10px;
}

.hero-tagline {
    font-size: 1.4em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    box-shadow: var(--glow-red);
}

.btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.6);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-darker);
    transform: translateY(-2px);
}

.hero-info {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-gold);
}

.hero-stat .label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ============================================
   SECTIONS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-red);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--accent-gold);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ============================================
   CLASS SHOWCASE
   ============================================ */

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.class-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.class-card:hover {
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.class-card .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.class-card h4 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.class-card .tier {
    color: var(--accent-gold);
    font-size: 0.85em;
    margin-bottom: 10px;
}

.class-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Class type colors */
.class-card.mage { border-top: 3px solid var(--accent-blue); }
.class-card.warrior { border-top: 3px solid var(--accent-red); }
.class-card.rogue { border-top: 3px solid var(--accent-purple); }
.class-card.cleric { border-top: 3px solid var(--accent-gold); }
.class-card.ranger { border-top: 3px solid var(--accent-green); }
.class-card.vampire { border-top: 3px solid #8b0000; }
.class-card.bard { border-top: 3px solid var(--accent-cyan); }
.class-card.druid { border-top: 3px solid #228b22; }

/* ============================================
   CONNECTION INFO
   ============================================ */

.connect-box {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--accent-red);
    max-width: 600px;
    margin: 0 auto;
}

.connect-box h3 {
    color: var(--accent-gold);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.connect-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Consolas', 'Courier New', monospace;
}

.connect-info .address {
    font-size: 1.5em;
    color: var(--accent-cyan);
}

.connect-info .port {
    color: var(--accent-gold);
}

.client-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 8px 0;
}

.footer-section a {
    color: var(--text-secondary);
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================
   TABLES
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: var(--bg-accent);
    color: var(--accent-gold);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-red { color: var(--accent-red); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-blue); }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }

.command {
    background: rgba(0, 0, 0, 0.4);
    color: var(--accent-gold);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: bold;
}

.highlight {
    color: var(--text-primary);
    font-weight: bold;
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */

.page-header {
    background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 2px solid var(--accent-red);
}

.page-header h1 {
    font-size: 2.5em;
    color: var(--accent-red);
    text-shadow: var(--glow-red);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2em;
}

/* ============================================
   CONTENT CARDS
   ============================================ */

.content-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.content-card h2 {
    color: var(--accent-gold);
    font-size: 1.6em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.content-card h3 {
    color: var(--accent-cyan);
    margin: 20px 0 10px;
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.content-card ul, .content-card ol {
    margin-left: 25px;
    color: var(--text-secondary);
}

.content-card li {
    margin: 8px 0;
}

/* ============================================
   ALERT BOXES
   ============================================ */

.alert {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--accent-blue);
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--accent-green);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid var(--accent-gold);
}

.alert-danger {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid var(--accent-red);
}

.alert h4 {
    margin-bottom: 10px;
}

.alert-info h4 { color: var(--accent-blue); }
.alert-success h4 { color: var(--accent-green); }
.alert-warning h4 { color: var(--accent-gold); }
.alert-danger h4 { color: var(--accent-red); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links > li {
        width: 100%;
    }
    
    .nav-links > li > a {
        justify-content: space-between;
        padding: 12px 10px;
    }
    
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 5px;
        margin-top: 5px;
        padding: 5px 0;
        box-shadow: none;
        display: none;
    }
    
    .nav-links > li.dropdown-open .nav-dropdown {
        display: block;
    }
    
    .nav-links > li.dropdown-open .nav-arrow {
        transform: rotate(180deg);
    }
    
    .nav-dropdown a {
        padding: 10px 25px;
        font-size: 0.95em;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero-tagline {
        font-size: 1.1em;
    }
    
    .hero-info {
        gap: 20px;
    }
    
    .hero-stat .number {
        font-size: 2em;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
