/* style.css - Estilo Glitch/ARG do Anfitrião */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 20% 30%, #0a0a0a, #000000);
    font-family: 'Courier New', 'VT323', 'Monaco', monospace;
    min-height: 100vh;
    padding: 20px;
    color: #ccc;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   CABEÇALHO GLITCH
   ============================================ */
.glitch-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #fe4ef0;
    padding-bottom: 20px;
}

.glitch-text {
    font-size: 3rem;
    font-weight: bold;
    color: #fe4ef0;
    text-shadow: 0 0 5px #ff00c3, 0 0 10px #aa00ff;
    position: relative;
    animation: glitchAnim 3s infinite;
}

@keyframes glitchAnim {
    0%, 100% { transform: skew(0deg, 0deg); text-shadow: 0 0 5px #ff00c3; }
    95% { transform: skew(0deg, 0deg); }
    96% { transform: skew(3deg, 1deg); text-shadow: -2px 0 #00ffff; }
    97% { transform: skew(-2deg, -0.5deg); text-shadow: 2px 0 #ff00c3; }
    98% { transform: skew(0deg, 0deg); }
}

.subtitle {
    color: #00ffff;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* ============================================
   IMAGEM COM EFEITO GLITCH/VIBRAÇÃO
   ============================================ */
.image-glitch-container {
    text-align: center;
    margin-bottom: 40px;
}

.glitch-wrapper {
    display: inline-block;
    position: relative;
}

.glitch-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid #fe4ef0;
    transition: all 0.05s linear;
    box-shadow: 0 0 20px rgba(254, 78, 240, 0.3);
}

.glitch-image.glitch-active {
    animation: glitchImg 0.2s infinite;
}

@keyframes glitchImg {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    20% { transform: translate(-2px, 1px); filter: hue-rotate(5deg); }
    40% { transform: translate(2px, -1px); filter: hue-rotate(-5deg); }
    60% { transform: translate(-1px, 2px); filter: hue-rotate(3deg); }
    80% { transform: translate(1px, -2px); filter: hue-rotate(-3deg); }
    100% { transform: translate(0); filter: hue-rotate(0deg); }
}

.vibration-indicator {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #ff6680;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 5px #ff3366; }
}

/* ============================================
   PISTAS (IMAGEM, ÁUDIO, VÍDEO)
   ============================================ */
.pistas-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.pista-card {
    background: rgba(10, 5, 20, 0.6);
    border-left: 5px solid #fe4ef0;
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.pista-card:hover {
    transform: translateX(10px);
    border-left-width: 8px;
}

.pista-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pista-icon {
    font-size: 1.5rem;
}

.pista-header h3 {
    color: #fe4ef0;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.glitch-tag {
    background: #1a0033;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.6rem;
    color: #00ffff;
    border: 1px solid #00ffff;
}

.pista-content {
    padding-left: 10px;
}

.pista-img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #fe4ef0;
    margin-bottom: 10px;
}

.audio-player {
    width: 100%;
    margin: 10px 0;
    background: #1a0033;
    border-radius: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #fe4ef0;
    margin-bottom: 10px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pista-desc {
    font-size: 0.75rem;
    color: #aaa;
    font-style: italic;
    margin-top: 8px;
}

/* ============================================
   ÁREA DE RESPOSTA
   ============================================ */
.resposta-container {
    margin: 30px 0;
}

.glitch-border {
    background: #0a0015;
    border: 2px dashed #fe4ef0;
    border-radius: 30px;
    padding: 25px;
    text-align: center;
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: #fe4ef0; box-shadow: 0 0 5px #fe4ef0; }
    50% { border-color: #ff00c3; box-shadow: 0 0 15px #ff00c3; }
}

.glitch-border h3 {
    color: #fe4ef0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.resposta-desc {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.input-group input {
    background: #110022;
    border: 2px solid #fe4ef0;
    padding: 15px;
    color: #00ffff;
    font-family: monospace;
    font-size: 1rem;
    text-align: center;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    box-shadow: 0 0 15px #fe4ef0;
}

.btn-caos {
    background: linear-gradient(135deg, #2e0055, #6a00aa);
    border: none;
    padding: 15px;
    color: white;
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-caos:active {
    transform: scale(0.96);
}

.feedback-msg {
    margin-top: 20px;
    display: none;
}

.feedback-msg .success {
    background: #0a3a2a;
    color: #1effbc;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}

.feedback-msg .error {
    background: #3a0a1a;
    color: #ff6680;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}

.link-final {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.youtube-link {
    background: #ff0000;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1rem;
}

.youtube-link:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.dica {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #ffaa44;
    font-style: italic;
}

.small {
    font-size: 0.6rem;
    color: #666;
    margin-top: 10px;
}

/* ============================================
   RODAPÉ
   ============================================ */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a0030;
    font-size: 0.7rem;
    color: #555;
}

/* ============================================
   EFEITO GLITCH OVERLAY
   ============================================ */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(0deg, 
        rgba(255, 0, 255, 0.02) 0px, 
        rgba(0, 255, 255, 0.02) 2px, 
        transparent 3px);
    animation: scanlines 0.2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .glitch-text {
        font-size: 2rem;
    }
    
    .pista-card:hover {
        transform: translateX(5px);
    }
    
    .input-group {
        max-width: 100%;
    }
    
    .glitch-border {
        padding: 20px;
    }
}