/* ========================================
   Rádio Comunitária Colônia FM 87,9 - Hotpage
   ======================================== */

/* CSS Variables - Paleta da logo */
:root {
    --preto: #0a0a0a;
    --preto-suave: #1a1a1a;
    --cinza-escuro: #2a2a2a;
    --vermelho: #e30613;
    --vermelho-escuro: #b3050f;
    --amarelo: #ffd400;
    --amarelo-escuro: #e6bd00;
    --branco: #ffffff;
    --cinza-texto: #cfcfcf;
    --sombra: rgba(0, 0, 0, 0.6);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow-x: hidden;
    color: var(--branco);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
}

/* Header / Logo */
.header {
    margin-bottom: 35px;
}

.logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Player Wrapper */
.player-wrapper {
    background: linear-gradient(145deg, var(--vermelho), var(--amarelo));
    padding: 4px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(227, 6, 19, 0.25);
}

/* Player Card */
.player-card {
    background: linear-gradient(160deg, var(--preto-suave) 0%, var(--preto) 100%);
    border-radius: 20px;
    padding: 35px 40px 30px;
    text-align: center;
    min-width: 280px;
    overflow: hidden;
    position: relative;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amarelo), var(--vermelho), var(--amarelo), transparent);
    opacity: 0.6;
}

/* Mic Icon */
.mic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--vermelho), var(--vermelho-escuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--amarelo);
    box-shadow: 0 0 25px rgba(227, 6, 19, 0.5);
    position: relative;
}

.mic-icon i {
    font-size: 36px;
    color: var(--amarelo);
    position: relative;
    z-index: 2;
}

/* Efeito discreto de onda quando está tocando */
.mic-icon::before,
.mic-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--amarelo);
    opacity: 0;
    pointer-events: none;
}

.mic-icon.playing::before {
    animation: mic-ripple 2.4s ease-out infinite;
}

.mic-icon.playing::after {
    animation: mic-ripple 2.4s ease-out infinite;
    animation-delay: 1.2s;
}

@keyframes mic-ripple {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Radio Name */
.radio-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--branco);
    margin-bottom: 15px;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.radio-name br + * { display: none; } /* fallback */

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vermelho);
    color: var(--branco);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--branco);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Clappr Container */
.clappr-container {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    position: relative;
    z-index: 10;
    min-height: 50px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.clappr-container [data-player],
.clappr-container [data-player] > div {
    max-width: 100% !important;
}

.clappr-container .media-control {
    z-index: 11 !important;
}

/* Botão Sobre */
.about-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--amarelo);
    color: var(--amarelo);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background: var(--amarelo);
    color: var(--preto);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 212, 0, 0.35);
}

/* Slogan */
.slogan {
    margin-top: 28px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--amarelo);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--preto-suave);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--vermelho);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Cores específicas de cada rede no hover */
.social-btn[data-net="website"]:hover {
    background: var(--amarelo);
    color: var(--preto);
    border-color: var(--amarelo);
}

.social-btn[data-net="whatsapp"]:hover {
    background: #25D366;
    border-color: #25D366;
}

.social-btn[data-net="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-btn[data-net="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

.social-btn[data-net="youtube"]:hover {
    background: #FF0000;
    border-color: #FF0000;
}

/* Botão Google Play */
.app-btn {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, var(--preto-suave), var(--preto));
    color: var(--branco);
    padding: 10px 22px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid var(--amarelo);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.app-btn i {
    font-size: 28px;
    color: var(--amarelo);
    transition: color 0.3s ease;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}

.app-btn-text small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cinza-texto);
}

.app-btn-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--branco);
}

.app-btn:hover {
    background: var(--amarelo);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 212, 0, 0.35);
}

.app-btn:hover i,
.app-btn:hover .app-btn-text small,
.app-btn:hover .app-btn-text strong {
    color: var(--preto);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(160deg, var(--preto-suave), var(--preto));
    border: 2px solid var(--vermelho);
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(227, 6, 19, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--cinza-texto);
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--vermelho);
    color: var(--branco);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 212, 0, 0.2);
}

.modal-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(227, 6, 19, 0.5));
}

.modal-header h2 {
    color: var(--amarelo);
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-body p {
    color: var(--cinza-texto);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.modal-body p strong {
    color: var(--branco);
}

.modal-tag {
    margin-top: 18px !important;
    padding: 10px 16px;
    background: rgba(227, 6, 19, 0.15);
    border-left: 3px solid var(--vermelho);
    border-radius: 6px;
    color: var(--amarelo) !important;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem !important;
}

.modal-tag i {
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    .logo {
        max-width: 240px;
    }

    .player-card {
        padding: 28px 20px 25px;
        min-width: 260px;
    }

    .mic-icon {
        width: 70px;
        height: 70px;
    }

    .mic-icon i {
        font-size: 30px;
    }

    .radio-name {
        font-size: 1.15rem;
    }

    .slogan {
        font-size: 1.1rem;
    }

    .social-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .app-btn {
        padding: 9px 18px;
    }

    .app-btn i {
        font-size: 24px;
    }
}

/* Loading state indicator */
.player-card.connecting .mic-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* Error state */
.player-card.error .mic-icon {
    border-color: #ff4444;
    background: linear-gradient(145deg, #441111, #220808);
}

.player-card.error .mic-icon i {
    color: #ff4444;
}
