/**
 * ==========================================
 * SISTEMA ULTRA DINÂMICO V18 - ESTILOS
 * Rodoviária de Americana
 * Data: 08/04/2026
 * ==========================================
 */

/* ==========================================
   ANIMAÇÕES GLOBAIS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* ==========================================
   ESTADOS VAZIOS E ERROS
   ========================================== */

.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i,
.error-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p,
.error-state p {
    font-size: 18px;
    margin: 15px 0;
}

.btn-retry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   CARDS DE ÁUDIO - V18
   ========================================== */

.audio-card-v18 {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.audio-card-v18:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.audio-card-v18::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.audio-card-v18:hover::before {
    transform: scaleX(1);
}

.audio-icon-v18 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

.audio-card-v18:hover .audio-icon-v18 {
    transform: scale(1.1) rotate(5deg);
}

.audio-icon-v18 i {
    font-size: 32px;
    color: white;
}

.audio-title-v18 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    text-align: center;
}

.audio-description-v18 {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.6;
    text-align: center;
}

/* Player de Áudio */
.audio-player-wrapper-v18 {
    margin: 20px 0;
    position: relative;
}

.audio-player-v18 {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
}

.audio-player-v18:focus {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

/* Botão Abrir Áudio */
.btn-open-audio-v18 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    margin: 15px 0;
}

.btn-open-audio-v18:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-open-audio-v18 i {
    font-size: 16px;
}

/* Meta informações do áudio */
.audio-meta-v18 {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.audio-duration-v18,
.audio-category-v18 {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.audio-category-v18 {
    background: #ecf0f1;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* Erro de áudio */
.audio-error-v18 {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #856404;
}

.audio-error-v18 i {
    color: #ffc107;
}

/* ==========================================
   CARDS DE VÍDEO - V18
   ========================================== */

.video-card-v18 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.video-card-v18:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-v18 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail-v18 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card-v18:hover .video-thumbnail-v18 img {
    transform: scale(1.1);
}

.video-play-overlay-v18 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card-v18:hover .video-play-overlay-v18 {
    opacity: 1;
}

.video-play-overlay-v18 i {
    font-size: 72px;
    color: white;
    transition: transform 0.3s ease;
}

.video-card-v18:hover .video-play-overlay-v18 i {
    transform: scale(1.2);
}

.video-duration-badge-v18 {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-content-v18 {
    padding: 20px;
}

.video-title-v18 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description-v18 {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta-v18 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #7f8c8d;
}

.video-views-v18,
.video-date-v18 {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================
   CARDS DE RODONEWS - V18
   ========================================== */

.rodonews-card-v18 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rodonews-card-v18:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.rodonews-badge-v18 {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.rodonews-image-v18 {
    position: relative;
    width: 100%;
    padding-top: 62.5%; /* 16:10 Aspect Ratio */
    overflow: hidden;
    background: #ecf0f1;
}

.rodonews-image-v18 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rodonews-card-v18:hover .rodonews-image-v18 img {
    transform: scale(1.08);
}

.rodonews-category-badge-v18 {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rodonews-content-v18 {
    padding: 24px;
}

.rodonews-meta-v18 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12px;
    color: #7f8c8d;
}

.rodonews-meta-v18 span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rodonews-title-v18 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rodonews-excerpt-v18 {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more-v18 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-read-more-v18:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   MODAL RODONEWS - V18
   ========================================== */

.rodonews-modal-v18 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rodonews-modal-v18.active {
    opacity: 1;
}

.rodonews-modal-content-v18 {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rodonews-modal-v18.active .rodonews-modal-content-v18 {
    transform: translateY(0);
}

.rodonews-modal-close-v18 {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rodonews-modal-close-v18:hover {
    background: rgba(231, 76, 60, 0.9);
    transform: rotate(90deg);
}

.rodonews-modal-image-v18 {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.rodonews-modal-image-v18 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rodonews-modal-body-v18 {
    padding: 40px;
}

.rodonews-modal-meta-v18 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.rodonews-modal-meta-v18 span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rodonews-modal-category-v18 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rodonews-modal-title-v18 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.rodonews-modal-text-v18 {
    font-size: 16px;
    color: #34495e;
    line-height: 1.8;
}

.rodonews-modal-text-v18 p {
    margin: 0 0 16px 0;
}

.rodonews-modal-text-v18 h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 28px 0 12px 0;
}

.rodonews-modal-text-v18 strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Scrollbar customizada para o modal */
.rodonews-modal-content-v18::-webkit-scrollbar {
    width: 8px;
}

.rodonews-modal-content-v18::-webkit-scrollbar-track {
    background: #ecf0f1;
}

.rodonews-modal-content-v18::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.rodonews-modal-content-v18::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

@media (max-width: 768px) {
    .audio-card-v18,
    .video-card-v18,
    .rodonews-card-v18 {
        margin-bottom: 20px;
    }
    
    .rodonews-modal-body-v18 {
        padding: 24px;
    }
    
    .rodonews-modal-title-v18 {
        font-size: 24px;
    }
    
    .rodonews-modal-text-v18 {
        font-size: 15px;
    }
    
    .video-play-overlay-v18 i {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .audio-icon-v18 {
        width: 60px;
        height: 60px;
    }
    
    .audio-icon-v18 i {
        font-size: 24px;
    }
    
    .rodonews-modal-v18 {
        padding: 10px;
    }
    
    .rodonews-modal-body-v18 {
        padding: 20px;
    }
}

/* ==========================================
   MELHORIAS DE PERFORMANCE
   ========================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.audio-card-v18,
.video-card-v18,
.rodonews-card-v18 {
    will-change: transform;
}

img {
    image-rendering: -webkit-optimize-contrast;
}
