/* ===========================
   PERPS COUNTDOWN - CHANNEL 5
   Cyberpunk Trading Terminal Style
   =========================== */

.perps-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Grid Background */
.perps-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(240, 185, 11, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 185, 11, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* Main Content Wrapper */
.perps-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
}

/* Header with Logo */
.perps-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.perps-logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.5));
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(240, 185, 11, 0.8)); }
}

.perps-title {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;
    color: #f0b90b;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(240, 185, 11, 0.5),
        0 0 20px rgba(240, 185, 11, 0.3);
    margin: 0;
}

/* Subtitle */
.perps-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(240, 185, 11, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Countdown Timer */
.perps-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.countdown-value {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    color: #f0b90b;
    text-shadow:
        0 0 10px rgba(240, 185, 11, 0.8),
        0 0 20px rgba(240, 185, 11, 0.5),
        0 0 30px rgba(240, 185, 11, 0.3);
    min-width: 70px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(240, 185, 11, 0.3);
    border-radius: 8px;
    padding: 10px 5px;
}

.countdown-label {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(240, 185, 11, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.countdown-separator {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    color: #f0b90b;
    opacity: 0.5;
    animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.1; }
}

/* Blurred Trading Buttons */
.perps-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.perps-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;

    /* Heavy Blur Effect */
    backdrop-filter: blur(15px);
    opacity: 0.3;
    filter: blur(8px);
    cursor: not-allowed;
}

.long-button {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.3) 0%, rgba(0, 170, 0, 0.3) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.short-button {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.3) 0%, rgba(170, 0, 0, 0.3) 100%);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.2);
}

.button-icon {
    font-size: 36px;
    font-weight: bold;
}

.long-button .button-icon {
    color: #00ff41;
}

.short-button .button-icon {
    color: #ff0040;
}

.button-text {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.long-button .button-text {
    color: #00ff41;
}

.short-button .button-text {
    color: #ff0040;
}

/* Countdown Complete State */
.perps-container.countdown-complete .perps-countdown {
    animation: countdownFlash 0.5s ease-in-out 3;
}

@keyframes countdownFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .perps-content {
        gap: 8px;
        padding: 10px;
        transform: scale(0.85);
        transform-origin: center;
    }

    .perps-header {
        gap: 8px;
    }

    .perps-title {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .perps-logo {
        width: 24px;
        height: 24px;
    }

    .perps-subtitle {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .perps-countdown {
        gap: 5px;
        margin: 8px 0;
    }

    .countdown-segment {
        gap: 2px;
    }

    .countdown-value {
        font-size: 20px;
        min-width: 35px;
        padding: 5px 2px;
        border-width: 1px;
    }

    .countdown-separator {
        font-size: 20px;
    }

    .countdown-label {
        font-size: 6px;
        letter-spacing: 0.5px;
    }

    .perps-buttons {
        gap: 8px;
        max-width: 100%;
        margin-top: 8px;
    }

    .perps-button {
        padding: 12px 8px;
        gap: 5px;
    }

    .button-icon {
        font-size: 16px;
    }

    .button-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .perps-content {
        transform: scale(0.75);
    }

    .perps-title {
        font-size: 12px;
    }

    .perps-logo {
        width: 20px;
        height: 20px;
    }

    .perps-subtitle {
        font-size: 6px;
    }

    .countdown-value {
        font-size: 18px;
        min-width: 30px;
        padding: 4px 2px;
    }

    .countdown-separator {
        font-size: 18px;
    }

    .countdown-label {
        font-size: 5px;
    }

    .button-icon {
        font-size: 14px;
    }

    .button-text {
        font-size: 9px;
    }
}
