/*
╔═══════════════════════════════════════════════════════════════╗
║           🖥️  TERMINAL / CONSOLE THEME — BOTFORGE           ║
║                                                               ║
║  Retro-futuristic minimal console aesthetic.                 ║
║  Inspired by Oh My Zsh terminal themes.                      ║
║  Colors: deep dark bg, terminal pink (#ff4081),              ║
║  cyan accents (#58a6ff), monospace typography.               ║
╚═══════════════════════════════════════════════════════════════╝
*/

/* ── Base ─────────────────────────────────────────────── */
body {
    font-family: "Space Mono", monospace;
    background-color: #0a0a0d;
    color: #c9d1d9;
    scroll-behavior: smooth;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* ── Scrollbar (terminal style) ───────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0d;
}

::-webkit-scrollbar-thumb {
    background: #1e1e2a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #30363d;
}

/* ── Input Autofill Override ──────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    transition:
        background-color 0s,
        -webkit-text-fill-color 0s !important;
}

/* Prevent autofill white background */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0d inset !important;
    -webkit-text-fill-color: #c9d1d9 !important;
    caret-color: #c9d1d9 !important;
}

input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0d inset !important;
    -webkit-text-fill-color: #c9d1d9 !important;
}

input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0d inset !important;
    -webkit-text-fill-color: #c9d1d9 !important;
}

textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0d inset !important;
    -webkit-text-fill-color: #c9d1d9 !important;
}

/* Focus state */
input:focus,
textarea:focus {
    outline: none !important;
}

/* ── Utility Classes ──────────────────────────────────── */
.bg-gray-850-s {
    background-color: #0d0d14 !important;
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ── Terminal Glow text ───────────────────────────────── */
.text-glow-pink {
    text-shadow: 0 0 4px rgba(255, 64, 129, 0.4);
    animation: textGlow 2s ease-in-out infinite;
}

/* ── Particle Canvas Background ───────────────────────── */
.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    filter: blur(0.5px);
    transform: scale(1.02);
    transform-origin: center center;
}

@media (max-width: 1023px) {
    .particle-canvas {
        display: none;
    }
}

main,
nav,
footer {
    position: relative;
    z-index: 1;
}

/* ── SweetAlert2 Dark Theme Overrides ─────────────────── */
.swal-small-popup {
    width: 320px !important;
    font-size: 14px !important;
}

.swal-small-title {
    font-size: 18px !important;
    margin: 10px 0 !important;
}

.swal-small-content {
    font-size: 13px !important;
    padding: 8px !important;
}

.swal-small-button {
    font-size: 13px !important;
    padding: 8px 20px !important;
}

.swal2-popup {
    background-color: #1a1a1a !important;
}

.swal2-title {
    color: #ffffff !important;
}

.swal2-html-container {
    color: #ffffff !important;
}

@keyframes textGlow {
    0%,
    100% {
        text-shadow: 0 0 4px rgba(255, 64, 129, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 64, 129, 0.6);
    }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
