/**
 * Essência Company - Estilos específicos para a página TV
 * Design criativo e dinâmico com elementos visuais de televisão
 */

/* Estilos do cabeçalho da página */
.tv-header-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('../img/principal/marcas/background.jpeg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

.tv-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tv-header-text h1 {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.tv-header-text h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #d1ff00, transparent);
}

.tv-header-text p {
    font-family: 'Fahkwang', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.highlight {
    color: #d1ff00;
}

/* Seção de programas de TV */
.tv-programas-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

/* Efeito decorativo de ondas de transmissão TV */
.tv-wave {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.tv-wave-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
}

.tv-wave-2 {
    bottom: 15%;
    right: 8%;
    width: 400px;
    height: 400px;
}

.tv-wave-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
}

.tv-programs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.tv-program-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #222222, #101010);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.tv-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(209, 255, 0, 0.3);
}

.tv-video-section {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #000;
    max-height: 220px;
}

.tv-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.tv-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tv-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    border: none;
}

.tv-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(209, 255, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tv-play-button:hover {
    background-color: rgba(209, 255, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.tv-play-button i {
    color: #234022;
    font-size: 24px;
    margin-left: 3px;
}

.tv-content-section {
    padding: 20px;
    color: #fff;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tv-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #d1ff00;
}

.tv-program-title {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tv-program-logo {
    max-width: 120px;
    max-height: 40px;
}

.tv-program-description {
    font-family: 'Fahkwang', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    flex-grow: 1;
}

.tv-program-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fahkwang', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #d1ff00;
    background-color: rgba(209, 255, 0, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(209, 255, 0, 0.3);
    margin-top: auto;
}

.tv-program-button:hover {
    background-color: #d1ff00;
    color: #234022;
    transform: translateY(-2px);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-block;
    background-color: rgba(209, 255, 0, 0.85);
    color: #000;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    z-index: 5;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Efeito de TV vintage */
.tv-screen-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.4;
    z-index: 3;
}

/* Modal de vídeo */
.tv-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tv-video-modal.active {
    display: flex;
    opacity: 1;
}

.tv-modal-content {
    width: 80%;
    max-width: 1000px;
    position: relative;
}

.tv-modal-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.tv-modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tv-modal-close {
    position: absolute;
    top: -40px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-color: #d1ff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.tv-modal-close:hover {
    transform: scale(1.1);
}

.tv-modal-close i {
    color: #234022;
    font-size: 20px;
}

/* Responsividade */
@media (max-width: 992px) {
    .tv-header-text h1 {
        font-size: 3rem;
    }
    
    .tv-program-title {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tv-header-section {
        padding: 100px 0 60px;
    }
    
    .tv-header-text h1 {
        font-size: 2.5rem;
    }
    
    .tv-header-text p {
        font-size: 1.1rem;
    }
    
    .tv-programs-container {
        grid-template-columns: 1fr;
    }
    
    .tv-content-section {
        padding: 20px;
    }
    
    .tv-play-button {
        width: 50px;
        height: 50px;
    }
    
    .tv-play-button i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .tv-header-text h1 {
        font-size: 2rem;
    }
    
    .tv-program-title {
        font-size: 1.4rem;
    }
    
    .tv-program-description {
        font-size: 0.9rem;
    }
    
    .tv-content-section {
        padding: 15px;
    }
}
