/* ============================================
   Elite India Roleplay - Premium Design System
   v2.1 - Neon Cyberpunk Theme
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
    /* Base Colors */
    --bg-deep: #050508;
    --bg-surface: #0f0f16;
    --bg-glass: rgba(20, 20, 30, 0.7);
    --bg-glass-hover: rgba(40, 40, 60, 0.8);

    /* Accents - Punchier & Cooler */
    --accent-primary: #a800ff;
    /* Electric Purple */
    --accent-vibrant: #00f3ff;
    /* Cyan/Neon Blue */
    --accent-glow: rgba(168, 0, 255, 0.6);
    --accent-cyan-glow: rgba(0, 243, 255, 0.4);

    /* Functional */
    --success: #00ff9d;
    --error: #ff0055;
    --warning: #ffcc00;

    /* Text */
    --text-main: #ffffff;
    --text-muted: #a0a0b8;
    --text-dim: #606075;

    /* Borders & Lines */
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(168, 0, 255, 0.4);

    /* Typography */
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Chakra Petch', sans-serif;
    /* New Cool Font */

    /* Spacing & Structure */
    --container-max: 1400px;
    --header-height: 80px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Subtle Grid Background */
    background-image:
        linear-gradient(rgba(168, 0, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-vibrant);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-vibrant);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #c33bff;
    /* Lighter Purple */
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent-vibrant);
    color: var(--accent-vibrant);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.btn-discord {
    background: #5865F2;
    color: white;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* --- Quiz Option Buttons (FIXED VISIBILITY) --- */
.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-glass);
    border-left: 4px solid transparent;
    border-radius: 4px;
    /* Slight rounding, keeping slight edge */
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Lighter on hover */
    color: var(--text-main);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(168, 0, 255, 0.15);
    transform: translateX(5px);
}

.option-btn.selected {
    background: rgba(168, 0, 255, 0.15);
    border-color: var(--accent-primary);
    border-left-color: var(--accent-vibrant);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    margin-right: 15px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--accent-vibrant);
}

.option-btn:hover .option-letter,
.option-btn.selected .option-letter {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}


/* --- Cards & Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.full-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --- Server Status Section --- */
.server-status-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 0, 255, 0.05) 50%, transparent 100%);
    text-align: center;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.status-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.status-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-vibrant));
}

.status-number {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px var(--accent-glow);
}

/* --- Animations --- */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* --- Forms & Inputs (Global) --- */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(168, 0, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Custom Select Dropdown */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27292.4%27%20height%3D%27292.4%27%3E%3Cpath%20fill%3D%27%23a800ff%27%20d%3D%27M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem;
    cursor: pointer;
}

select option {
    background: #0d0d10;
    color: white;
    padding: 10px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Loader */
.loader-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-main);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}