/* ==========================================================================
   LiR.nu - Core Design System & Styling
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-primary: #07090e;
    --bg-secondary: #0d1117;
    --bg-card: rgba(13, 17, 23, 0.65);
    --bg-card-hover: rgba(21, 28, 38, 0.8);
    
    /* Brand Colors (Gaming Cyberpunk theme) */
    --accent-cyan: #00f2fe;
    --accent-cyan-glow: rgba(0, 242, 254, 0.35);
    --accent-purple: #9d4edd;
    --accent-purple-glow: rgba(157, 78, 221, 0.35);
    --accent-orange: #ff7b00;
    --accent-orange-glow: rgba(255, 123, 0, 0.35);
    
    /* Text Colors */
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #94a3b8; /* 2026-07-08: höjd från #6c757d för bättre kontrast mot mörk bakgrund */
    
    /* Borders & Glassmorphism */
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-glow: rgba(0, 242, 254, 0.2);
    --glass-blur: blur(12px);
    
    /* Grid Size */
    --grid-line-color: rgba(255, 255, 255, 0.015);
    
    /* Typography */
    --font-heading: 'Orbitron', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Ambient Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.45;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    top: 600px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

/* Tech Grid Overlay */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: var(--transition-smooth);
}

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

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e676;
    animation: pulse-glow 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.text-glow {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Hero stat counters */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 40px;
    backdrop-filter: var(--glass-blur);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    text-align: center;
    padding: 0 32px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}



.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

/* Sections Global Styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Servers Section */
.servers-section {
    padding: 40px 0 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.3) 100%);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.server-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Glowing card borders based on type */
.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}

.card-ts::before { background: linear-gradient(90deg, var(--accent-cyan), #4facfe); }
.card-discord::before { background: linear-gradient(90deg, #5865F2, #7289DA); }
.card-gamevox::before { background: linear-gradient(90deg, var(--accent-orange), #ffb703); }

.server-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.card-ts:hover { border-color: rgba(0, 242, 254, 0.3); box-shadow: 0 8px 30px rgba(0, 242, 254, 0.1); }
.card-discord:hover { border-color: rgba(88, 101, 242, 0.3); box-shadow: 0 8px 30px rgba(88, 101, 242, 0.1); }
.card-gamevox:hover { border-color: rgba(255, 123, 0, 0.3); box-shadow: 0 8px 30px rgba(255, 123, 0, 0.1); }

.server-icon {
    font-size: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card-ts .server-icon { color: var(--accent-cyan); background: rgba(0, 242, 254, 0.05); }
.card-discord .server-icon { color: #5865F2; background: rgba(88, 101, 242, 0.05); }
.card-gamevox .server-icon { color: var(--accent-orange); background: rgba(255, 123, 0, 0.05); }

.server-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.server-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.server-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.server-status.online {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.server-status.pinging {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.server-status.offline {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Status Dot / Lamp indicator */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.server-status.online .status-dot {
    background-color: #4caf50;
    box-shadow: 0 0 6px #4caf50;
}

.server-status.pinging .status-dot {
    background-color: #ffc107;
    box-shadow: 0 0 6px #ffc107;
    animation: status-pulse 1.5s infinite ease-in-out;
}

.server-status.offline .status-dot {
    background-color: #f44336;
    box-shadow: 0 0 6px #f44336;
}

@keyframes status-pulse {
    0% { opacity: 0.45; }
    50% { opacity: 1; }
    100% { opacity: 0.45; }
}

/* Floating Status Badges inside Showcase Card Images */
.game-image-real .server-status-badge {
    background: rgba(7, 9, 14, 0.75) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}

.game-image-real .server-status-badge.online {
    border-color: rgba(76, 175, 80, 0.35) !important;
    color: #4caf50 !important;
}

.game-image-real .server-status-badge.pinging {
    border-color: rgba(255, 193, 7, 0.35) !important;
    color: #ffc107 !important;
}

.game-image-real .server-status-badge.offline {
    border-color: rgba(244, 67, 54, 0.35) !important;
    color: #f44336 !important;
}

.server-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.server-address {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 13px;
}

.address-text {
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
}

.copy-btn:hover {
    color: var(--accent-cyan);
}

.server-actions {
    width: 100%;
    margin-top: auto;
}

.card-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-action-btn:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-color: transparent;
    color: var(--bg-primary);
}

.discord-btn:hover {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.gamevox-btn:hover {
    background: linear-gradient(135deg, var(--accent-orange), #ffb703);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.3);
}

/* Category wrappers inside Servers Section */
.category-wrapper {
    margin-bottom: 60px;
}

.category-wrapper:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.category-title i {
    color: var(--accent-cyan);
    font-size: 18px;
}



/* Games Showcase Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.game-showcase-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    height: 100%;
}

.game-showcase-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.game-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.game-showcase-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-showcase-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.game-showcase-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.game-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.game-features-list li {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-features-list li i {
    color: var(--accent-cyan);
    font-size: 12px;
}

/* Real game image styles */
.game-image-real {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    overflow: hidden;
    flex-shrink: 0;
}

.game-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 9, 14, 0.25) 0%, rgba(7, 9, 14, 0.1) 100%);
    transition: var(--transition-smooth);
}

.game-showcase-card:hover .game-image-real {
    transform: scale(1.03);
}

.game-showcase-card:hover .game-image-overlay {
    background: linear-gradient(135deg, rgba(7, 9, 14, 0.1) 0%, transparent 100%);
}



/* News / Changelog Section */
.news-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.3) 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.news-card:hover::before { opacity: 1; }

.news-card.archived {
    opacity: 0.65;
    background: rgba(255, 255, 255, 0.01);
}
.news-card.archived::before {
    background: linear-gradient(90deg, var(--text-muted), var(--text-muted));
}
.news-card.archived:hover {
    opacity: 0.9;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.news-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid currentColor;
}

.news-tag.tag-cyan    { color: var(--accent-cyan);   background: rgba(0,242,254,0.08); }
.news-tag.tag-purple  { color: var(--accent-purple); background: rgba(157,78,221,0.08); }
.news-tag.tag-green   { color: #81c784;              background: rgba(76,175,80,0.08); }
.news-tag.tag-orange  { color: var(--accent-orange); background: rgba(255,123,0,0.08); }
.news-tag.tag-default { color: var(--text-muted);    background: rgba(255,255,255,0.04); }

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Infrastructure Box (Homelab node info) */
.infra-section {
    padding: 60px 0 100px 0;
}

.infra-box {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.8), rgba(7, 9, 14, 0.9));
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Technoid borders and corner designs */
.infra-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.infra-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.infra-icon {
    font-size: 24px;
    color: var(--accent-cyan);
    animation: flash 4s infinite;
}

.infra-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 1px;
}

.infra-box p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-width: 900px;
}

/* Footer Styling */
.footer {
    background-color: #040508;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.15);
    border-left: 4px solid var(--accent-cyan);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast i {
    color: var(--accent-cyan);
    font-size: 16px;
}

/* Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 230, 118, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

@keyframes flash {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}



.beszel-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.beszel-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.metric-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.metric-bar {
    height: 100%;
    border-radius: 2px;
    background: var(--accent-cyan);
    transition: width 0.5s ease-out;
}

/* Custom bar backgrounds based on resource load */
.metric-bar.cpu { background: var(--accent-cyan); }
.metric-bar.mem { background: var(--accent-purple); }
.metric-bar.disk { background: var(--accent-orange); }

.metric-value {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Fallback & Helper Message inside lists */
.list-fallback-msg {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    padding: 10px 0;
}

/* ==========================================================================
   Responsive Styles / Media Queries
   ========================================================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(7, 9, 14, 0.95);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        padding: 40px;
        z-index: 99;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .hero-section {
        padding: 150px 0 80px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        width: 100%;
        max-width: 290px;
        padding: 20px;
        gap: 12px;
    }
    
    .hero-stat {
        padding: 10px 0;
    }
    
    .hero-stat-divider {
        width: 60%;
        height: 1px;
    }
    

    
    .section-title {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Animation helper classes to toggle burger menu state */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* News expander styling */
.news-body-wrap {
    position: relative;
    transition: max-height 0.4s ease-in-out;
}

.news-body-wrap.truncatable {
    max-height: 100px; /* Adjust height for truncated state */
    overflow: hidden;
}

.news-body-wrap.truncatable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.news-body-wrap.truncatable.expanded {
    max-height: 1000px; /* Large enough to display full text */
}

.news-body-wrap.truncatable.expanded::after {
    opacity: 0;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.read-more-btn:hover {
    color: var(--accent-purple);
    transform: translateX(2px);
}

/* ==========================================================================
   Discord Auth Navigation Styles
   ========================================================================== */
.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    text-decoration: none;
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.5);
    color: #fff;
}

.steam-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #171a21;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(23, 26, 33, 0.4);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.steam-login-btn:hover {
    background: #242938;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 192, 244, 0.2);
    color: #fff;
    border-color: rgba(102, 192, 244, 0.4);
}

.user-nav-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px 4px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.user-nav-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.4);
}

.user-nav-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.logout-nav-btn {
    font-size: 13px;
    color: #94a3b8;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    cursor: pointer;
}

.logout-nav-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.admin-gear-btn:hover {
    transform: rotate(45deg);
}

@media (max-width: 992px) {
    .nav-auth-container {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
}

/* 2026-07-08: .leaderboard-loader användes i leaderboard.js men saknade CSS helt */
.leaderboard-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.leaderboard-loader::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: leaderboard-spin 0.8s linear infinite;
}
@keyframes leaderboard-spin {
    to { transform: rotate(360deg); }
}
