@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Base Styles */
body {
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px rgba(160, 32, 240, 0.7);
    letter-spacing: 1px;
}

/* Background Effects */
#plasma-bg {
    background: linear-gradient(135deg, #000000 0%, #110033 100%);
    animation: plasma 20s infinite alternate;
}

@keyframes plasma {
    0% { background: linear-gradient(135deg, #000000 0%, #110033 100%); }
    25% { background: linear-gradient(225deg, #000000 0%, #220044 100%); }
    50% { background: linear-gradient(315deg, #000000 0%, #330055 100%); }
    75% { background: linear-gradient(45deg, #000000 0%, #440066 100%); }
    100% { background: linear-gradient(135deg, #000000 0%, #550077 100%); }
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 32, 240, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(160, 32, 240, 0.2),
                inset 0 0 15px rgba(160, 32, 240, 0.1);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(160, 32, 240, 0.6);
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.4),
                inset 0 0 20px rgba(160, 32, 240, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #a020f0 0%, #6a0dad 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b030ff 0%, #7a1ded 100%);
    box-shadow: 0 0 15px rgba(160, 32, 240, 0.7);
}

.btn-secondary {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00f0ff;
    color: #00f0ff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-danger {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Mission Card */
.mission-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(160, 32, 240, 0.5);
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a020f0, transparent);
}

.mission-card:hover {
    border-color: rgba(160, 32, 240, 0.8);
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.4);
}

.mission-card.overdue {
    animation: pulse-red 2s infinite;
    border-color: rgba(255, 0, 0, 0.5);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Vault Filters */
.vault-filter {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(160, 32, 240, 0.3);
    color: #a020f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vault-filter:hover, .vault-filter.active {
    background: rgba(160, 32, 240, 0.2);
    border-color: rgba(160, 32, 240, 0.7);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff0000;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00f0ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 77px, 0); }
    30% { clip: rect(27px, 9999px, 97px, 0); }
    40% { clip: rect(64px, 9999px, 98px, 0); }
    50% { clip: rect(61px, 9999px, 85px, 0); }
    60% { clip: rect(99px, 9999px, 114px, 0); }
    70% { clip: rect(34px, 9999px, 115px, 0); }
    80% { clip: rect(98px, 9999px, 129px, 0); }
    90% { clip: rect(43px, 9999px, 96px, 0); }
    100% { clip: rect(82px, 9999px, 64px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    10% { clip: rect(25px, 9999px, 145px, 0); }
    20% { clip: rect(129px, 9999px, 137px, 0); }
    30% { clip: rect(87px, 9999px, 129px, 0); }
    40% { clip: rect(22px, 9999px, 99px, 0); }
    50% { clip: rect(76px, 9999px, 54px, 0); }
    60% { clip: rect(24px, 9999px, 138px, 0); }
    70% { clip: rect(145px, 9999px, 99px, 0); }
    80% { clip: rect(134px, 9999px, 141px, 0); }
    90% { clip: rect(106px, 9999px, 32px, 0); }
    100% { clip: rect(97px, 9999px, 83px, 0); }
}

/* Explosion Animation */
#explosion {
    background: rgba(0, 0, 0, 0.9);
}

.explosion {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ff0000 0%, #ff6600 50%, transparent 70%);
    border-radius: 50%;
    animation: explode 1s forwards;
    transform: scale(0);
}

@keyframes explode {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(20); opacity: 0; }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-panel {
        padding: 1rem;
    }
    
    #dashboard .grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile-specific styles */
    .mission-card {
        padding: 0.75rem;
    }

    .mission-details {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #dashboard .grid {
        grid-template-columns: 1fr;
    }
    
    .mission-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mission-actions button {
        width: 100%;
    }

    /* Extra small devices */
    .glass-panel {
        margin: 0.5rem;
    }

    .btn-primary, .btn-secondary, .btn-danger {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Tablet-specific styles */
@media (min-width: 481px) and (max-width: 1024px) {
    .mission-card {
        padding: 1.25rem;
    }

    .mission-form input, 
    .mission-form textarea,
    .mission-form select {
        font-size: 1.1rem;
    }
}
