/* ================================================================
   YOURBOT INTERACTIVE — LAVALINK STATUS PAGE
   ================================================================ */

:root {
    --bg:          #0b0d10;
    --bg2:         #13151b;
    --card:        rgba(255,255,255,0.04);
    --border:      rgba(255,255,255,0.06);
    --orange:      #F97316;
    --red:         #EF4444;
    --purple:      #5865F2;
    --grad:        linear-gradient(135deg, #F97316 0%, #EF4444 55%, #5865F2 100%);
    --grad-short:  linear-gradient(135deg, #F97316, #EF4444);
    --txt:         #ffffff;
    --txt2:        #9ca3af;
    --txt3:        #6b7280;
    --online:      #3ba55d;
    --offline:     #ed4245;
    --r:           16px;
    --r-sm:        10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----------------------------------------------------------------
   PARTICLES
   ---------------------------------------------------------------- */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleRise linear infinite;
}
.particle:nth-child(1)  { left:8%;  width:5px;  height:5px;  background:#F97316; animation-duration:13s; animation-delay:0s;   }
.particle:nth-child(2)  { left:18%; width:3px;  height:3px;  background:#EF4444; animation-duration:16s; animation-delay:2s;   }
.particle:nth-child(3)  { left:30%; width:6px;  height:6px;  background:#5865F2; animation-duration:11s; animation-delay:4s;   }
.particle:nth-child(4)  { left:45%; width:4px;  height:4px;  background:#F97316; animation-duration:14s; animation-delay:1s;   }
.particle:nth-child(5)  { left:60%; width:5px;  height:5px;  background:#EF4444; animation-duration:10s; animation-delay:3s;   }
.particle:nth-child(6)  { left:72%; width:3px;  height:3px;  background:#5865F2; animation-duration:17s; animation-delay:5s;   }
.particle:nth-child(7)  { left:83%; width:6px;  height:6px;  background:#F97316; animation-duration:12s; animation-delay:2.5s; }
.particle:nth-child(8)  { left:50%; width:4px;  height:4px;  background:#EF4444; animation-duration:9s;  animation-delay:6s;   }
.particle:nth-child(9)  { left:22%; width:3px;  height:3px;  background:#5865F2; animation-duration:18s; animation-delay:1.5s; }
.particle:nth-child(10) { left:91%; width:5px;  height:5px;  background:#F97316; animation-duration:13s; animation-delay:4.5s; }

@keyframes particleRise {
    0%   { bottom:-20px; opacity:0; transform:translateX(0)   rotate(0deg);   }
    10%  { opacity:0.7; }
    90%  { opacity:0.3; }
    100% { bottom:110vh; opacity:0; transform:translateX(50px) rotate(360deg); }
}

/* ----------------------------------------------------------------
   LANGUAGE SWITCHER
   ---------------------------------------------------------------- */
.lang-switcher {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 50px;
    padding: 4px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--txt2);
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    padding: 5px 11px;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: all 0.2s;
}
.lang-btn:hover { color: var(--txt); background: rgba(255,255,255,0.07); }
.lang-btn.active {
    background: var(--grad-short);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    z-index: 1;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 55% at 50% 50%,
        rgba(249,115,22,0.13) 0%,
        rgba(239,68,68,0.07) 35%,
        transparent 70%);
    pointer-events: none;
}
.deco-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(249,115,22,0.09);
    animation: ringBreath 4s ease-in-out infinite;
}
.ring-1 { width:280px; height:280px; animation-delay:0s;   }
.ring-2 { width:480px; height:480px; animation-delay:0.8s; border-color:rgba(239,68,68,0.06); }
.ring-3 { width:680px; height:680px; animation-delay:1.6s; border-color:rgba(88,101,242,0.04); }
@keyframes ringBreath {
    0%,100% { opacity:0.5; transform:translate(-50%,-50%) scale(1);    }
    50%      { opacity:1;   transform:translate(-50%,-50%) scale(1.04); }
}

.hero-content { position: relative; z-index: 2; }

.logo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    border-radius: 30px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    box-shadow: 0 28px 64px rgba(249,115,22,0.38),
                0 0 0 1px rgba(255,255,255,0.09);
}
.logo-icon { line-height: 1; }

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--txt2);
    font-weight: 500;
    margin-bottom: 32px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 26px;
    border-radius: 50px;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s ease;
}
.status-badge.is-online  { border-color:rgba(59,165,93,0.35); background:rgba(59,165,93,0.1);  }
.status-badge.is-offline { border-color:rgba(237,66,69,0.35); background:rgba(237,66,69,0.08); }

.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--txt3);
    flex-shrink: 0;
    transition: background 0.3s;
}
.status-dot.is-online {
    background: var(--online);
    animation: dotPulse 2s ease infinite;
}
.status-dot.is-offline { background: var(--offline); }

@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0   rgba(59,165,93,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(59,165,93,0);   }
    100% { box-shadow: 0 0 0 0   rgba(59,165,93,0);    }
}

/* ----------------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes float {
    0%,100% { transform: translateY(0);    }
    50%      { transform: translateY(-13px); }
}
.float-anim {
    animation: float 3.2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.slide-in {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.slide-in.visible { opacity: 1; transform: translateY(0); }

@keyframes spinAnim { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

/* ----------------------------------------------------------------
   CONTAINER
   ---------------------------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 100px;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------------
   SECTION HEADER
   ---------------------------------------------------------------- */
.section { margin-bottom: 72px; }

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    padding-left: 14px;
    position: relative;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 65%;
    border-radius: 4px;
    background: var(--grad-short);
}
.section-subtitle {
    color: var(--txt2);
    font-size: 0.87rem;
    padding-left: 14px;
    margin-top: 3px;
}

.refresh-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--txt3);
    opacity: 0;
    transition: opacity 0.3s;
}
.refresh-badge.active { opacity: 1; }
.refresh-spin { font-size: 0.9rem; }
.refresh-badge.active .refresh-spin { animation: spinAnim 0.9s linear infinite; display:inline-block; }

/* ----------------------------------------------------------------
   SKELETONS
   ---------------------------------------------------------------- */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.skeleton-card, .skeleton-badge {
    background: linear-gradient(90deg, var(--card) 25%, rgba(255,255,255,0.07) 50%, var(--card) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--r);
    border: 1px solid var(--border);
}
.skeleton-card       { height: 60px; }
.skeleton-card.tall  { height: 58px; }
.skeleton-badge      { height: 34px; width: 100px; border-radius: 50px; }

/* ----------------------------------------------------------------
   STATS GRID
   ---------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-short);
}
.stat-card:hover { box-shadow: 0 22px 44px rgba(249,115,22,0.1); }

.stat-icon  { font-size: 2rem; margin-bottom: 12px; }
.stat-value {
    font-size: 2.1rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--txt2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

/* ----------------------------------------------------------------
   SOURCES
   ---------------------------------------------------------------- */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
}
.source-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    animation: slideUp 0.5s ease both;
}
.source-card.enabled  { border-color:rgba(59,165,93,0.22); background:rgba(59,165,93,0.05); }
.source-card.disabled { opacity: 0.38; }
.source-card.enabled:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(59,165,93,0.12); }

.source-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.source-card.enabled  .source-dot { background:var(--online);  box-shadow:0 0 8px rgba(59,165,93,0.55); }
.source-card.disabled .source-dot { background:var(--offline); }
.source-name { font-weight: 600; font-size: 0.87rem; }

/* ----------------------------------------------------------------
   FILTERS
   ---------------------------------------------------------------- */
.filters-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.22);
    color: #fb923c;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    animation: slideUp 0.45s ease both;
    transition: all 0.2s;
    cursor: default;
}
.filter-badge::before { content: '⚡'; font-size: 0.68rem; }
.filter-badge:hover {
    background: rgba(249,115,22,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249,115,22,0.2);
}

/* ----------------------------------------------------------------
   PLUGINS
   ---------------------------------------------------------------- */
.plugins-list { display: flex; flex-direction: column; gap: 12px; }
.plugin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    animation: slideUp 0.5s ease both;
    transition: all 0.3s;
}
.plugin-card:hover { transform: translateX(6px); border-color: rgba(249,115,22,0.22); }
.plugin-name {
    font-weight: 700;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plugin-name::before { content: '🔌'; }
.plugin-ver {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.77rem;
    color: var(--txt2);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 5px;
}

/* ----------------------------------------------------------------
   CONNECTION
   ---------------------------------------------------------------- */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.connect-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    backdrop-filter: blur(12px);
}
.connect-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    flex-wrap: wrap;
}
.connect-row:first-child { padding-top: 0; }
.connect-row:last-child  { border-bottom: none; padding-bottom: 0; }

.connect-label {
    font-size: 0.78rem;
    color: var(--txt2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
}
.connect-val-row { display: flex; align-items: center; gap: 7px; }
.connect-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.87rem;
    color: var(--txt);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 6px;
}
.connect-val.masked { color: var(--txt3); letter-spacing: 0.2em; }
.status-false { color: var(--txt3); }

/* Icon buttons (copy / reveal) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--txt2);
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.icon-btn:hover {
    background: rgba(249,115,22,0.14);
    border-color: rgba(249,115,22,0.3);
    color: var(--orange);
}
.icon-btn.is-copied {
    background: rgba(59,165,93,0.14);
    border-color: rgba(59,165,93,0.3);
    color: var(--online);
}
.btn-icon   { font-size: 0.95rem; }
.btn-copied { display: none; font-size: 0.76rem; font-weight: 700; }
.icon-btn.is-copied .btn-icon   { display: none; }
.icon-btn.is-copied .btn-copied { display: inline; }

/* Code card */
.code-card { display: flex; flex-direction: column; gap: 14px; }
.code-header { display: flex; align-items: center; justify-content: space-between; }
.code-block {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 18px;
    overflow-x: auto;
    flex: 1;
}
.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #a78bfa;
    line-height: 1.75;
    white-space: pre;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer {
    text-align: center;
    padding: 36px 24px 40px;
    color: var(--txt3);
    font-size: 0.84rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    line-height: 2;
}
.footer-link { color: var(--orange); text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.footer-copy { font-size: 0.76rem; margin-top: 2px; }

/* ----------------------------------------------------------------
   SHARED ANIMATION
   ---------------------------------------------------------------- */
@keyframes slideUp {
    from { opacity:0; transform:translateY(22px); }
    to   { opacity:1; transform:translateY(0);    }
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .connect-grid { grid-template-columns: 1fr; }
    .stats-grid   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .stats-grid   { grid-template-columns: 1fr; }
    .lang-switcher { top:12px; right:12px; }
    .sources-grid { grid-template-columns: repeat(2,1fr); }
}
