/* Raven Universe - Animated Sci-Fi Interface [v8.0] */
:root {
    --bg: #050508;
    --primary: #ff003c; /* Neon Red */
    --primary-glow: rgba(255, 0, 60, 0.4);
    --cyan: #00d2ff; /* Electric Blue */
    --cyan-glow: rgba(0, 210, 255, 0.3);
    --fusion: linear-gradient(90deg, #ff003c 0%, #00d2ff 100%);
    --panel-bg: rgba(10, 10, 15, 0.85);
    --border: rgba(255, 0, 60, 0.2);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --header-h: 80px;
    --sidebar-w: 260px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@700;800;900&display=swap');

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

body {
    background: var(--bg);
    color: var(--text);
    overflow-y: auto; /* Fix for scroll issue */
    overflow-x: hidden;
}

/* --- ANIMATED UNIVERSE BACKGROUND --- */
.universe-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, #1a0505 0%, #020205 100%),
                radial-gradient(circle at 80% 70%, #050a1a 0%, #020205 100%);
    background-blend-mode: screen;
    z-index: -1;
    overflow: hidden;
}

/* Star Layer 1 */
.stars {
    position: absolute;
    inset: 0;
    background: transparent;
    background-image: radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
                      radial-gradient(1.5px 1.5px at 100px 150px, #fff, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 250px 50px, var(--primary), rgba(0,0,0,0));
    background-size: 300px 300px;
    animation: moveStars 100s linear infinite;
}

/* Star Layer 2 (Twinkling) */
.twinkling {
    position: absolute;
    inset: 0;
    background: transparent;
    background-image: radial-gradient(1.5px 1.5px at 50px 100px, #fff, rgba(0,0,0,0)),
                      radial-gradient(1.5px 1.5px at 150px 200px, var(--cyan), rgba(0,0,0,0));
    background-size: 400px 400px;
    animation: moveStars 60s linear infinite, twinkle 3s ease-in-out infinite alternate;
}

/* Nebula Pulse */
.nebula {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 0, 60, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(0, 210, 255, 0.08) 0%, transparent 50%);
    filter: blur(80px);
    animation: nebulaPulse 10s ease-in-out infinite alternate;
}

@keyframes moveStars { from { background-position: 0 0; } to { background-position: 1000px 500px; } }
@keyframes twinkle { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes nebulaPulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.3); opacity: 0.8; } }

/* --- APP SHELL --- */
.app-shell { 
    display: block; /* Vertical stacking for header and main */
    min-height: 100vh;
    position: relative;
}

.header {
    height: var(--header-h);
    width: 100%;
    position: sticky;
    top: 0;
    padding: 0 40px;
    background: linear-gradient(180deg, rgba(5, 5, 8, 1) 0%, rgba(20, 20, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    clip-path: polygon(
        0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 30px) 100%, 
        calc(50% + 150px) 100%, calc(50% + 120px) calc(100% - 10px), 
        calc(50% - 120px) calc(100% - 10px), calc(50% - 150px) 100%, 
        30px 100%, 0 calc(100% - 15px)
    );
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* Header Carbon Texture */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
}


.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    padding-bottom: 160px; /* Space for HUD */
    overflow-y: auto;
}

/* --- GHOST PROTOCOL HUD (v8.0 FULL-WIDTH) --- */
.sidebar {
    width: 100%;
    height: 90px;
    background: transparent;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Mechanical Tactical Frame - Full Width */
.sidebar nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.98) 0%, rgba(5, 5, 8, 1) 100%);
    padding: 0 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    clip-path: polygon(0 20px, 30px 0, calc(100% - 30px) 0, 100% 20px, 100% 100%, 0 100%);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.9);
}

/* Carbon Fiber Texture */
.sidebar nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
}

/* Side Glow Pillars */
.sidebar nav::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--cyan);
    pointer-events: none;
    filter: drop-shadow(0 0 15px var(--primary));
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px 25px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.03);
}

.nav-link:last-child { border-right: none; }

.nav-link i {
    width: 26px;
    height: 26px;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover i {
    transform: scale(1.2) translateY(-5px);
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 0, 60, 0.1) 0%, transparent 100%);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--fusion);
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--cyan);
}

.nav-link.active i {
    filter: drop-shadow(0 0 15px var(--cyan));
}

/* Special Discord 3D Peripheral Node */
.nav-discord {
    position: absolute;
    right: 50px;
    bottom: 105px; /* Floating clearly above the HUD */
    background: rgba(88, 101, 242, 0.2);
    border: 2px solid rgba(88, 101, 242, 0.4);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 4000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(88, 101, 242, 0.3);
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform: perspective(1000px) rotateY(-15deg);
}

.nav-discord span {
    font-size: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-discord i {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.nav-discord:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.1) translateY(-10px);
    background: rgba(88, 101, 242, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 35px rgba(88, 101, 242, 0.6);
}




.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    padding-bottom: 160px; /* Space for HUD */
    overflow-y: auto;
}

/* --- HERO ROW (SLIDER + STREAM) --- */
.hero-row {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 25px;
    margin-bottom: 40px;
    height: 400px;
}

/* Animated Slider Box */
.slider-box {
    background-color: rgba(13, 13, 20, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 50px;
}

.slider-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
    z-index: 1;
}

/* Stream Box */
.stream-box {
    background: #000;
    border: 2px solid var(--primary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.2);
}

.box-title {
    display: inline-block;
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

/* Nav Links */
.nav-link {
    display: flex;
    flex-direction: column; /* Icon above text for HUD look */
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 18px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-link i {
    width: 20px;
    height: 20px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--cyan);
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.05);
}

.btn-sci {
    padding: 10px 22px;
    background: rgba(255, 0, 60, 0.08);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid rgba(255, 0, 60, 0.2);
    border-radius: 4px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sci:hover { 
    background: var(--primary); 
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
    border-color: var(--primary);
}

/* Dashboard Grid System v3.0 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
    align-items: stretch;
}

.left-stack { height: 100%; }
.right-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Minimal Universe Card */
.universe-card {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 0, 60, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
}

.section-head {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* Centered Match Design v2.0 - High End */
.match-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 0, 60, 0.15);
    margin-bottom: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.match-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(255, 0, 60, 0.1);
    transform: translateY(-5px);
}

.match-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
    opacity: 0.4;
}

.match-teams { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 15px; 
    width: 100%;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* Team Card (Large - Directory) */
.team-card {
    width: 100%;
    height: 100px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 0, 60, 0.2);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.team-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
    transform: translateY(-3px);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.team-card:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Logo Box (Small - Match / Rank) */
.team-logo-box {
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
}

.team-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 8px;
    text-align: center;
    z-index: 5;
}

.team-overlay span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.team-name { font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; color: #fff; }

.play-mid-v2 {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary);
    cursor: pointer;
    transition: 0.3s;
    border: 3px solid rgba(255,255,255,0.1);
}

.play-mid-v2 i { width: 14px; height: 14px; color: #fff; margin-left: 2px; }

.match-info-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: 'JetBrains Mono';
    font-size: 0.55rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Tournament Grid v1.0 */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.tourney-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tourney-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tourney-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--panel-bg) 0%, transparent 100%);
}

.tourney-prize {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    z-index: 10;
    box-shadow: 0 0 15px var(--primary);
}

.tourney-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tourney-title {
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tourney-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

@media (max-width: 1500px) { .tournament-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .tournament-grid { grid-template-columns: 1fr; } }

/* League Ranking v1.0 */
.rank-list {
    display: flex;
    flex-direction: column;
}

.rank-item {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s;
}

.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: rgba(255, 0, 60, 0.03); padding-left: 20px; }

.rank-num {
    font-family: 'JetBrains Mono';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary);
}

.rank-team {
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-pts {
    font-family: 'JetBrains Mono';
    font-weight: 800;
    font-size: 0.75rem;
    text-align: right;
    color: var(--cyan);
}

.rank-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, rgba(255, 0, 60, 0.15) 0%, rgba(0, 210, 255, 0.05) 50%, transparent 100%);
    border-left: 4px solid var(--primary);
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.ann-text {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.5s ease-in-out;
}

.ann-tag {
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

/* Blinking Dot */
.dot-status {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4757;
    animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes dotBlink {
    0% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(0.8); }
}

.sidebar-time {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono';
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Floating Discord Link - Tactical Module v2.0 */
.discord-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--panel-bg);
    backdrop-filter: blur(30px);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 3px;
    z-index: 2000;
    border: 1px solid var(--border);
    border-right: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.discord-float:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(-10px);
    box-shadow: 0 0 30px var(--primary);
}

/* --- SOCIAL NEXUS SYSTEM --- */
.social-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.post-card {
    background: rgba(13, 13, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: 0.3s;
}

.post-card:hover {
    border-color: rgba(255, 0, 60, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.post-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 2px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 800;
}

.user-info span {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.post-content {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.post-media {
    width: 100%;
    max-height: 500px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.post-media img, .post-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-actions {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono';
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    color: #fff;
}

.action-btn.active-like { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.action-btn.active-share { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }

.action-btn i {
    width: 18px;
    height: 18px;
}

.post-create {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.create-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.create-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.create-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.create-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: 'Outfit';
    resize: none;
    outline: none;
    min-height: 60px;
}
