/* 
 * Custom Theme Enhancements
 * Style: Matrix/Dots Background + Random Icons
Override style.css settings
 */

/* DOTS Background Container - Overrides .space-background */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    /* Dark gradient background */
    background-color: #050505;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 40px 40px;
    background-position: 0 0, 20px 20px;
    animation: moveDots 60s linear infinite;
    background-repeat: repeat;
}

/* Ensure Stars are hidden */
.stars,
.stars2,
.stars::after,
.stars2::after {
    display: none !important;
}

/* Moving Dots Animation */
@keyframes moveDots {
    0% {
        background-position: 0 0, 20px 20px;
    }

    100% {
        background-position: 1000px 500px, 1020px 520px;
    }
}

/* Random Icon Updates */
.vis-icon {
    position: absolute;
    color: var(--accent-primary);
    opacity: 0.12;
    filter: drop-shadow(0 0 12px rgba(0, 243, 255, 0.4));
    animation: float 8s ease-in-out infinite;
}

/* Mobile Script Box Optimization */
@media (max-width: 768px) {
    .script-box {
        /* Keep it compact but accessible */
        padding: 5px !important;
        gap: 5px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        /* Darker bg for contrast */
    }

    .code-display {
        /* Force single line with ellipsis */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        /* Typography adjustments */
        font-size: 0.8rem !important;
        padding: 10px !important;
        border: none !important;

        /* Ensure it doesn't break layout */
        max-width: 100%;
        display: block;
    }

    .btn-copy {
        /* Compact button */
        padding: 10px 0 !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        /* Full width for easy tapping */
    }
}