/* ============================================
   STARFELL ONLINE - AAA PREMIUM THEME v5.0
   Modern, Animated, Mobile-First
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Primary Palette */
    --gold-light: #9fe8ff;
    --gold-main: #4db8ff;
    --gold-dark: #1f5f8b;
    --celestial-blue: #0a1e2f;
    --bg-deep: #030b14;
    --border-gold: rgba(79, 163, 209, 0.35);
    --glow-main: rgba(79, 163, 209, 0.6);

    /* Accent Colors */
    --accent-cyan: #00d2ff;
    --accent-blue: #0072ff;
    --red-light: #ff4d4d;
    --red-main: #b90e0e;
    --red-dark: #680000;
    --success: #2ecc71;
    --warning: #f39c12;

    /* Neutrals */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #555d66;
    --surface-1: rgba(15, 20, 30, 0.8);
    --surface-2: rgba(20, 28, 40, 0.6);
    --surface-3: rgba(30, 40, 55, 0.4);
    --border-subtle: rgba(79, 163, 209, 0.12);
    --border-medium: rgba(79, 163, 209, 0.25);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Layout */
    --max-width: 1280px;
    --header-height: 80px;
    --sidebar-width: 340px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 100, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 210, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #0a1628 0%, #030b14 100%);
    z-index: -3;
    pointer-events: none;
}

/* Star field */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('/starfell/assets/images/stars.png');
    opacity: 0.25;
    z-index: -2;
    pointer-events: none;
    animation: starDrift 120s linear infinite;
}

@keyframes starDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
    line-height: 1.2;
}

p { color: var(--text-secondary); line-height: 1.7; }
a { text-decoration: none; color: inherit; transition: var(--duration-fast) ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Selection */
::selection {
    background: rgba(77, 184, 255, 0.3);
    color: #fff;
}

/* ============================================
   3. SHOOTING STARS (Background Particles)
   ============================================ */
.shooting-star {
    position: fixed;
    top: -10%;
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--gold-light), rgba(0, 210, 255, 0.3));
    opacity: 0;
    z-index: -1;
    transform: rotate(35deg);
    animation: celestial-meteor 12s linear infinite;
    border-radius: 50%;
}

@keyframes celestial-meteor {
    0% { transform: rotate(35deg) translateY(-200px); opacity: 0; }
    3% { opacity: 0.8; }
    12% { transform: rotate(35deg) translateY(120vh); opacity: 0; }
    100% { opacity: 0; }
}

/* Floating particles */
.particles-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-main);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 15s infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ============================================
   4. LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

.main-wrapper {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-out-expo);

    /* Glass effect */
    background: rgba(3, 11, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

header.scrolled {
    height: 64px;
    background: rgba(3, 11, 20, 0.95);
    backdrop-filter: blur(30px);
    border-bottom-color: var(--border-medium);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Push content below fixed header */
body {
    padding-top: var(--header-height);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;

    background: linear-gradient(
        180deg,
        #e6f7ff 0%,
        var(--gold-light) 30%,
        var(--gold-main) 60%,
        var(--gold-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    filter: drop-shadow(0 2px 10px rgba(77, 184, 255, 0.3));
    transition: var(--duration-normal) ease;
}

.logo:hover {
    filter: drop-shadow(0 2px 20px rgba(77, 184, 255, 0.5));
}

.logo i {
    -webkit-text-fill-color: var(--gold-main);
    margin-right: 6px;
    font-size: 24px;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(77, 184, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(77, 184, 255, 0.6)); }
}

/* Desktop Menu */
.main-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-menu li a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: color var(--duration-fast) ease;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
    box-shadow: 0 0 10px var(--gold-main);
    transition: width var(--duration-normal) var(--ease-out-expo);
}

.main-menu li a:hover {
    color: var(--text-primary);
    background: linear-gradient(to top, rgba(77, 184, 255, 0.08), transparent);
}

.main-menu li a:hover::after,
.main-menu li a.active::after {
    width: 80%;
}

/* ============================================
   6. MOBILE MENU
   ============================================ */
.mobile-menu-btn,
.mobile-overlay {
    display: none;
}

.mobile-menu-btn {
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--gold-main);
    border-radius: 2px;
    transition: var(--duration-normal) var(--ease-out-expo);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 16, 0.97);
    backdrop-filter: blur(30px);
    z-index: 10000;
    padding: 100px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    color: var(--gold-main);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    transition: var(--duration-fast) ease;
}

.close-menu:hover {
    background: rgba(77, 184, 255, 0.1);
    border-color: var(--gold-main);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-links li {
    border-bottom: 1px solid var(--border-subtle);
    transform: translateX(-30px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.mobile-overlay.open .mobile-links li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-overlay.open .mobile-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.open .mobile-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-overlay.open .mobile-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-overlay.open .mobile-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-links li a {
    color: var(--text-primary);
    font-size: 22px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    padding: 18px 0;
    transition: var(--duration-fast) ease;
}

.mobile-links li a:hover {
    color: var(--gold-main);
    padding-left: 12px;
}

/* ============================================
   7. HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Ken Burns zoom effect */
.slide.active {
    animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Cinematic vignette overlay */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(3, 11, 20, 0.4) 0%, transparent 30%, transparent 60%, rgba(3, 11, 20, 0.95) 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(3, 11, 20, 0.6) 100%);
    z-index: 1;
}

/* Particle overlay on hero */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.3) 0%, transparent 100%);
    z-index: 2;
    animation: particleShimmer 4s ease-in-out infinite alternate;
}

@keyframes particleShimmer {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-lg);
}

.slide-content h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(77, 184, 255, 0.2);
    animation: heroTextIn 1s var(--ease-out-expo) both;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 15px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 4px;
    }
}

.slide-content p {
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    margin-bottom: var(--space-xl);
    letter-spacing: 2px;
    animation: heroSubIn 1s var(--ease-out-expo) 0.2s both;
}

@keyframes heroSubIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slider navigation dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: var(--duration-normal) ease;
}

.slider-dot.active {
    background: var(--gold-main);
    border-color: var(--gold-main);
    box-shadow: 0 0 15px var(--gold-main);
}

/* ============================================
   8. PANELS (Glass-morphism)
   ============================================ */
.panel {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

/* Top glow line */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
    opacity: 0.6;
}

.panel:hover {
    border-color: var(--border-medium);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(77, 184, 255, 0.05);
    transform: translateY(-2px);
}

.panel-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    padding: 16px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(77, 184, 255, 0.08), transparent);
    border-bottom: 1px solid var(--border-subtle);
}

.panel-title i {
    margin-right: 8px;
    color: var(--gold-main);
}

.panel-content {
    padding: var(--space-lg);
}

/* ============================================
   9. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-spring);
    z-index: 1;
}

/* Shine sweep effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 184, 255, 0.5);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
}

.btn-gold:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.4);
}

.btn-red {
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(185, 14, 14, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.4);
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-main) 100%);
}

/* Outline variant */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--gold-main);
}

.btn-outline:hover {
    background: rgba(77, 184, 255, 0.1);
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(77, 184, 255, 0.15);
}

/* ============================================
   10. FORM ELEMENTS
   ============================================ */
.input-group {
    position: relative;
    margin-bottom: var(--space-md);
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--duration-fast) ease;
    z-index: 2;
}

.custom-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 13px 14px 13px 40px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    transition: all var(--duration-fast) ease;
    outline: none;
}

.custom-input::placeholder {
    color: var(--text-muted);
}

.custom-input:focus {
    border-color: var(--gold-main);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.1), 0 0 20px rgba(77, 184, 255, 0.08);
}

.custom-input:focus + i,
.input-group:focus-within i {
    color: var(--gold-main);
}

/* ============================================
   11. SERVER STATUS
   ============================================ */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
}

.progress-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-main), var(--gold-light));
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s var(--ease-out-expo);
    position: relative;
    box-shadow: 0 0 10px var(--gold-main);
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 10px;
    height: 10px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-main);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 5px var(--gold-main); }
    50% { box-shadow: 0 0 15px var(--gold-main), 0 0 30px rgba(77, 184, 255, 0.3); }
}

/* ============================================
   12. NEWS CARDS
   ============================================ */
.news-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.news-item-styled {
    display: flex;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    min-height: 100px;
    position: relative;
}

.news-item-styled::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold-main), var(--gold-dark));
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.news-item-styled:hover {
    border-color: var(--border-medium);
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: var(--surface-2);
}

.news-item-styled:hover::before {
    opacity: 1;
}

.news-date-box {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-right: 1px solid var(--border-subtle);
}

.news-type-header {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-event { background: linear-gradient(135deg, #0056b3, #004494); }
.type-system { background: linear-gradient(135deg, #d35400, #ba4a00); }
.type-general { background: linear-gradient(135deg, #444, #333); }

.news-date-body {
    background: rgba(0, 0, 0, 0.3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.news-day-num {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.news-month-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--gold-main);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 1px;
}

.news-content-styled {
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title-styled {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--duration-fast) ease;
}

.news-item-styled:hover .news-title-styled {
    color: var(--gold-main);
}

.news-excerpt-styled {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   13. CHARACTER CLASSES
   ============================================ */
.class-selector-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: var(--space-xl);
}

.class-tab-btn {
    width: 150px;
    height: 200px;
    background-size: cover;
    background-position: center top;
    background-color: var(--bg-deep);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    filter: grayscale(100%) brightness(0.6);
}

.class-tab-btn::before {
    content: '';
    position: absolute;
    inset: -80%;
    background: linear-gradient(120deg, transparent 40%, rgba(159, 232, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.class-tab-btn:hover,
.class-tab-btn.active {
    filter: grayscale(0%) brightness(1);
    border-color: var(--gold-main);
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(77, 184, 255, 0.2),
        inset 0 0 30px rgba(77, 184, 255, 0.05);
}

.class-tab-btn:hover::before {
    opacity: 1;
}

.class-tab-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(3, 11, 20, 0.95), transparent);
    color: var(--text-primary);
    text-align: center;
    padding: 20px 5px 10px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(77, 184, 255, 0.3);
}

/* Skill Display */
.skill-display-area {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 250px;
    display: none;
    position: relative;
    overflow: visible;
}

.skill-display-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.skill-display-area.active {
    display: flex;
    gap: var(--space-lg);
    animation: panelReveal 0.5s var(--ease-out-expo);
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.class-desc-box {
    flex: 1;
    border-right: 1px solid var(--border-subtle);
    padding-right: var(--space-lg);
}

.class-desc-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--gold-main);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(77, 184, 255, 0.2);
}

.class-desc-text {
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.skill-grid-box { flex: 2; }

.skill-grid-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: var(--space-md);
}

.skill-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.skill-card {
    width: 58px;
    height: 58px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
}

.skill-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) - 1px);
}

.skill-card:hover {
    border-color: var(--gold-main);
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 0 20px rgba(77, 184, 255, 0.3);
}

.skill-tooltip {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0c1a2e, #081422);
    border: 1px solid var(--gold-main);
    padding: 10px 14px;
    width: 200px;
    color: #fff;
    font-size: 12px;
    border-radius: var(--radius-sm);
    pointer-events: none;
    opacity: 0;
    transition: all var(--duration-fast) ease;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

.skill-card:hover .skill-tooltip {
    opacity: 1;
    bottom: 72px;
}

.skill-name {
    color: var(--gold-light);
    font-weight: bold;
    margin-bottom: 3px;
    display: block;
    font-size: 13px;
}

/* ============================================
   14. SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   15. PAGE LOAD ANIMATION
   ============================================ */
@keyframes pageIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-wrapper {
    animation: pageIn 0.6s ease both;
}

/* ============================================
   16. MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.modal-box {
    background: var(--surface-1);
    border: 1px solid var(--gold-main);
    padding: 40px;
    width: 420px;
    max-width: 90%;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(77, 184, 255, 0.1);
    animation: modalIn 0.4s var(--ease-out-back);
    backdrop-filter: blur(20px);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    font-size: 48px;
    color: var(--red-light);
    margin-bottom: var(--space-md);
}

.modal-text {
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.modal-close-btn {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    border: none;
    padding: 12px 32px;
    color: #fff;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--duration-fast) ease;
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.3);
}

/* ============================================
   17. SECTION TITLES
   ============================================ */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--text-primary);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-main), transparent);
    box-shadow: 0 0 10px rgba(77, 184, 255, 0.3);
}

.section-title i {
    color: var(--gold-main);
    font-size: 20px;
}

/* ============================================
   18. DOWNLOAD PAGE
   ============================================ */
.specs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.specs-box {
    background: var(--surface-2);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) ease;
}

.specs-box:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.specs-box h4 {
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    border-left: 3px solid var(--text-muted);
    padding-left: 12px;
    margin-bottom: var(--space-md);
    font-size: 15px;
}

.specs-box:last-child {
    border-color: rgba(0, 210, 255, 0.15);
}

.specs-box:last-child h4 {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.specs-box ul {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 2.4;
}

.specs-box ul strong {
    color: var(--text-primary);
    display: inline-block;
    width: 120px;
}

/* ============================================
   19. FOOTER
   ============================================ */
footer {
    background: #000;
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-2xl);
    text-align: center;
}

/* ============================================
   20. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .shooting-star { display: none; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--gold-main);
    outline-offset: 2px;
}

/* ============================================
   21. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-main);
}

/* ============================================
   22. RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
    :root {
        --max-width: 1400px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .sidebar {
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .sidebar .panel {
        margin-bottom: 0;
    }

    .hero-slider {
        height: 60vh;
    }

    .class-selector-wrapper {
        gap: 12px;
    }

    .class-tab-btn {
        width: 130px;
        height: 170px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    /* Show mobile menu */
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-overlay {
        display: flex;
        flex-direction: column;
    }

    /* Layout */
    .main-wrapper {
        grid-template-columns: 1fr;
        padding: var(--space-lg) 0;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Hero */
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }

    .slide-content h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .slide-content p {
        font-size: 15px;
    }

    /* Characters */
    .class-selector-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }

    .class-tab-btn {
        width: calc(50% - 8px);
        height: 140px;
    }

    .skill-display-area.active {
        flex-direction: column;
    }

    .class-desc-box {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-right: 0;
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }

    /* News */
    .news-date-box {
        width: 75px;
    }

    .news-day-num {
        font-size: 24px;
    }

    .news-title-styled {
        font-size: 16px;
    }

    .news-content-styled {
        padding: 12px;
    }

    /* Download specs */
    .specs-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    :root {
        --header-height: 64px;
    }

    .logo {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .logo i {
        font-size: 18px;
    }

    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: var(--space-md);
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .panel-content {
        padding: var(--space-md);
    }

    .class-tab-btn {
        width: calc(50% - 6px);
        height: 120px;
    }

    .class-desc-title {
        font-size: 22px;
    }

    .skill-card {
        width: 48px;
        height: 48px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* ============================================
   23. UTILITY CLASSES
   ============================================ */
.text-glow {
    text-shadow: 0 0 10px rgba(77, 184, 255, 0.4);
}

.border-glow {
    box-shadow: 0 0 15px rgba(77, 184, 255, 0.15);
}

.glass {
    background: var(--surface-1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

/* Loading shimmer */
.shimmer {
    background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
    margin: var(--space-xl) 0;
}

/* Count animation target */
.count-up {
    transition: all 0.5s ease;
}
