/* assets/css/style.css - Pingu.im v2.0 */
:root {
    --g1-yellow: #ffcc00;
    --g1-dark: #111111;
    --g1-gray-bg: #f5f5f5;
    --g1-card-bg: #ffffff;
    --g1-border: #e0e0e0;
    --g1-text: #1a1a1a;
    --g1-muted: #6c757d;
    --g1-radius: 8px;
    --g1-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--g1-gray-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--g1-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilitários de fonte */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--g1-card-bg);
    padding: 8px 0;
    border-bottom: 1px solid var(--g1-border);
}
.top-bar .small {
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}

/* ===== HEADER ===== */
.header-bar-g1 {
    background-color: var(--g1-yellow);
    padding: 14px 0;
}

/* ===== LOGOTIPOS ===== */
/* Logo desktop (completa) */
.logo-desktop {
    max-width: 180px;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

/* Logo mobile (apenas símbolo) - OCULTO POR PADRÃO */
.logo-mobile {
    display: none;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s ease;
}

.logo-desktop:hover,
.logo-mobile:hover {
    opacity: 0.85;
}

/* ===== ÍCONES SOCIAIS ===== */
.social-icon-top {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 4px;
}
.social-icon-top:hover {
    color: #555;
}

/* ===== PLAYER DE VÍDEO ===== */
.player-wrapper-g1 {
    background: #000;
    border-radius: var(--g1-radius);
    overflow: hidden;
    box-shadow: var(--g1-shadow);
}
.video-container-g1 .ratio {
    border-radius: 0;
}
.video-container-g1 iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== PLAYER DE ÁUDIO ===== */
.audio-player-wrapper-g1 {
    background: #ffffff;
    border-radius: var(--g1-radius);
    overflow: hidden;
    box-shadow: var(--g1-shadow);
}
.audio-controls-bar {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: var(--g1-radius);
}
.audio-controls-bar .form-range {
    height: 4px;
    background: #444;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}
.audio-controls-bar .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--g1-yellow);
    border: 2px solid #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
}
.audio-controls-bar .form-range::-moz-range-thumb {
    background: var(--g1-yellow);
    border: 2px solid #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
}
.audio-controls-bar .form-range::-webkit-slider-runnable-track {
    background: #444;
    border-radius: 4px;
    height: 4px;
}
.audio-controls-bar .form-range::-moz-range-track {
    background: #444;
    border-radius: 4px;
    height: 4px;
}

/* Ícone de Rádio */
.radio-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-badge {
    background: #ff0000;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Botão Play */
.play-pulse {
    animation: pulse-button 2s ease-in-out infinite;
}
@keyframes pulse-button {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.35); }
    70% { box-shadow: 0 0 0 16px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}
.play-pulse:hover {
    transform: scale(1.04);
}

/* Botão WhatsApp */
.btn-whatsapp {
    background: #25D366;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    color: #fff;
}

/* ===== CARDS G1 ===== */
.card-g1 {
    background: var(--g1-card-bg);
    border: 1px solid var(--g1-border);
    border-radius: var(--g1-radius);
    box-shadow: var(--g1-shadow);
    overflow: hidden;
}
.card-header-g1 {
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header-g1 i {
    color: var(--g1-yellow);
    font-size: 1.2rem;
}
.card-body-g1 {
    padding: 1.25rem;
}

/* ===== MENSAGENS ===== */
.msg-item-g1 {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.msg-item-g1:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ===== PAGINAÇÃO FIXA NA BASE ===== */
.pagination-g1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #f0f0f0;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.pagination-g1 .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--g1-border);
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.pagination-g1 .page-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: var(--g1-yellow);
}
.pagination-g1 .page-btn.active {
    background: var(--g1-yellow);
    border-color: var(--g1-yellow);
    color: #000;
}
.pagination-g1 .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-g1 .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #999;
    font-size: 0.85rem;
}

/* ===== BOTÃO AMARELO ===== */
.btn-yellow-g1 {
    background-color: var(--g1-yellow);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.15s;
}
.btn-yellow-g1:hover {
    background-color: #e6b800;
    color: #000;
    transform: translateY(-1px);
}
.btn-yellow-g1:active {
    transform: translateY(0);
}

/* ===== INPUTS ===== */
.form-control {
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--g1-border);
}
.form-control:focus {
    border-color: var(--g1-yellow);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}
.form-control.bg-light {
    background-color: #f8f9fa !important;
}

/* ===== APOIADORES - CENTRALIZADOS ===== */
.apoio-box-g1 {
    background: #fff;
    border: 1px solid var(--g1-border);
    border-radius: var(--g1-radius);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.apoio-box-g1:hover {
    border-color: var(--g1-yellow);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}
.apoio-box-g1 img.apoio-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.apoio-box-g1 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.apoio-box-g1 a img.apoio-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ===== RODAPÉ ===== */
.footer-g1 {
    background-color: var(--g1-yellow);
    border-top: 1px solid #d4a800;
    color: #000;
    padding: 16px 0;
}
.footer-g1 p {
    margin: 0;
    font-size: 0.8rem;
}
.footer-g1 a {
    color: #000;
    text-decoration: none;
}
.footer-g1 a:hover {
    text-decoration: underline;
}

/* ===== BOTÃO ADMIN ===== */
.btn-admin {
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-admin:hover {
    opacity: 1;
    color: #fff;
    transform: scale(1.02);
}

/* ===== BANNERS ===== */
.banner-ad-g1 {
    background: #dfe6e9;
    border-radius: 12px;
    border: 1px solid #d1d8dd;
}
.banner-ad-g1 img {
    max-width: 100%;
    height: auto;
}

/* ============================================================ */
/* ===== RESPONSIVIDADE ===== */
/* ============================================================ */

/* Tablets e telas médias */
@media (max-width: 992px) {
    .logo-desktop {
        max-width: 160px;
    }
    .apoio-box-g1 {
        height: 85px;
    }
    .apoio-box-g1 img.apoio-logo,
    .apoio-box-g1 a img.apoio-logo {
        max-width: 120px;
        max-height: 60px;
    }
}

/* Celulares e telas pequenas - AQUI OCULTAMOS A LOGO DESKTOP E MOSTRAMOS A MOBILE */
@media (max-width: 768px) {
    .header-bar-g1 {
        padding: 10px 0;
    }
    
    /* Ocultar logo desktop, mostrar apenas o símbolo */
    .logo-desktop {
        display: none !important;
    }
    .logo-mobile {
        display: block !important;
        width: 36px;
        height: 36px;
    }
    
    .audio-controls-bar .form-range {
        width: 80px !important;
    }
    .audio-controls-bar .d-flex.gap-3 {
        gap: 8px !important;
    }
    .play-pulse {
        width: 44px !important;
        height: 44px !important;
    }
    .play-pulse i {
        font-size: 1.3rem !important;
    }
    .radio-icon-wrapper .live-badge {
        font-size: 0.5rem;
        padding: 1px 6px;
    }
    .radio-icon-wrapper i {
        font-size: 1.3rem !important;
    }
    
    .card-body-g1 {
        padding: 1rem;
    }
    .card-header-g1 {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-whatsapp {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .btn-whatsapp span.d-sm-inline {
        display: none !important;
    }
    
    .apoio-box-g1 {
        height: 72px;
        padding: 8px;
    }
    .apoio-box-g1 img.apoio-logo,
    .apoio-box-g1 a img.apoio-logo {
        max-width: 100px;
        max-height: 50px;
    }
    
    .pagination-g1 .page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
        padding: 0 6px;
    }
    .pagination-g1 .page-ellipsis {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .pagination-g1 {
        padding: 8px 12px;
    }
    
    .top-bar .small {
        font-size: 0.6rem;
    }
    
    .social-icon-top {
        font-size: 0.95rem;
    }
}

/* Celulares muito pequenos */
@media (max-width: 480px) {
    .logo-mobile {
        width: 30px !important;
        height: 30px !important;
    }
    
    .social-icon-top {
        font-size: 0.85rem;
    }
    .social-icon-top.d-none.d-sm-inline-flex {
        display: none !important;
    }
    .col-4.col-md-3.d-flex.justify-content-end {
        gap: 4px !important;
    }
    .btn-whatsapp i {
        font-size: 0.9rem;
    }
    .btn-whatsapp {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .card-header-g1 {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    .card-header-g1 i {
        font-size: 1rem;
    }
    .card-body-g1 {
        padding: 0.8rem;
    }
    
    .audio-controls-bar .px-3 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .audio-controls-bar .py-3 {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }
    
    .msg-item-g1 .small {
        font-size: 0.7rem !important;
    }
    
    .pagination-g1 .page-btn {
        min-width: 26px;
        height: 26px;
        font-size: 0.65rem;
        padding: 0 4px;
    }
    .pagination-g1 .page-ellipsis {
        min-width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
    .pagination-g1 {
        padding: 6px 8px;
        gap: 2px;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar personalizada */
.card-body-g1::-webkit-scrollbar {
    width: 5px;
}
.card-body-g1::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.card-body-g1::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.card-body-g1::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Firefox scrollbar */
.card-body-g1 {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header-bar-g1,
    .top-bar,
    .player-wrapper-g1,
    .audio-player-wrapper-g1,
    .banner-ad-g1,
    .footer-g1,
    .apoio-box-g1 {
        display: none !important;
    }
    .card-g1 {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    body {
        background: #fff !important;
    }
}