/* ==========================================================================
   DEBUG ARENA — Cyber Component Styles
   ========================================================================== */

/* ---------------------------------------------------------
   1. BUTTONS
   --------------------------------------------------------- */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    user-select: none;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    text-decoration: none;
}

.btn-cyber-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
    color: #05070a;
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
.btn-cyber-primary:hover {
    background: linear-gradient(135deg, #33f3ff 0%, #1a75ff 100%);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.65);
    color: #000000;
    transform: translateY(-1px);
}

.btn-cyber-secondary {
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    color: #ffffff;
    border-color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.35);
}
.btn-cyber-secondary:hover {
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.65);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-cyber-danger {
    background: linear-gradient(135deg, #ff3366 0%, #990026 100%);
    color: #ffffff;
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.35);
}
.btn-cyber-danger:hover {
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.65);
    color: #ffffff;
}

.btn-cyber-outline {
    background: rgba(13, 19, 34, 0.6);
    color: var(--cyber-cyan);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.btn-cyber-outline:hover {
    background: rgba(0, 240, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.btn-cyber-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}
.btn-cyber-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.btn-block {
    width: 100%;
}

/* ---------------------------------------------------------
   2. CARDS & CONTAINERS
   --------------------------------------------------------- */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition-base);
}

.cyber-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--cyber-cyan);
    border-right: 2px solid var(--cyber-cyan);
    pointer-events: none;
}

.cyber-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--cyber-cyan);
    border-left: 2px solid var(--cyber-cyan);
    pointer-events: none;
}

.cyber-card-hover:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   3. STAT CARDS
   --------------------------------------------------------- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--cyber-cyan);
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   4. BADGES
   --------------------------------------------------------- */
.cyber-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-easy {
    background: rgba(0, 255, 102, 0.12);
    color: var(--cyber-green);
    border: 1px solid rgba(0, 255, 102, 0.35);
}

.badge-medium {
    background: rgba(0, 240, 255, 0.12);
    color: var(--cyber-cyan);
    border: 1px solid rgba(0, 240, 255, 0.35);
}

.badge-hard {
    background: rgba(121, 40, 202, 0.2);
    color: #c084fc;
    border: 1px solid rgba(121, 40, 202, 0.45);
}

.badge-insane {
    background: rgba(255, 0, 128, 0.2);
    color: #ff0080;
    border: 1px solid rgba(255, 0, 128, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

.badge-xp {
    background: rgba(255, 170, 0, 0.12);
    color: var(--cyber-amber);
    border: 1px solid rgba(255, 170, 0, 0.35);
}

.badge-rating {
    background: rgba(0, 102, 255, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(0, 102, 255, 0.35);
}

/* ---------------------------------------------------------
   5. PROGRESS BAR
   --------------------------------------------------------- */
.cyber-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #0066ff);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transition: width 0.5s ease-out;
}

/* ---------------------------------------------------------
   6. AVATARS
   --------------------------------------------------------- */
.cyber-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #0d1322;
    border: 1.5px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--cyber-cyan);
    position: relative;
    overflow: hidden;
}

.avatar-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: var(--cyber-green);
    border-radius: 50%;
    border: 2px solid #080c14;
    box-shadow: 0 0 6px var(--cyber-green);
}

/* ---------------------------------------------------------
   7. NAVBAR & NAVIGATION
   --------------------------------------------------------- */
.cyber-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyber-cyan);
    box-shadow: var(--glow-cyan);
}

/* ---------------------------------------------------------
   8. MODALS
   --------------------------------------------------------- */
.cyber-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.cyber-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cyber-modal {
    background: #0d1322;
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    max-width: 580px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow-cyan);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.cyber-modal-backdrop.active .cyber-modal {
    transform: scale(1);
}

/* ---------------------------------------------------------
   9. SKELETON LOADERS & EMPTY STATES
   --------------------------------------------------------- */
.skeleton-cyber {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(0,240,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-sweep 1.8s infinite;
    border-radius: 4px;
}

@keyframes skeleton-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---------------------------------------------------------
   10. FORMS & INPUTS
   --------------------------------------------------------- */
.cyber-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.cyber-label {
    font-family: var(--font-heading);
    font-size: 0.775rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.cyber-input {
    background: #080c14;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.cyber-input:focus {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
    background: #0d1322;
}

.cyber-input-error {
    border-color: var(--cyber-red);
}

.form-error-msg {
    color: var(--cyber-red);
    font-size: 0.775rem;
}
