/* GTI TV Page Specific Styles */

.page-header.tv-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 140px 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
    margin-top: 186px;
}

.tv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tv-badge i {
    color: #ff6b6b;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

/* Featured Video Section */
.featured-video-section {
    padding: 60px 20px 80px 20px;
    margin-top: 186px; /* Account for fixed navbar + donors banner */
    background: #0f0f1a;
}

.video-player-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
}

.video-placeholder i {
    font-size: 80px;
    color: var(--primary-green);
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-placeholder i:hover {
    transform: scale(1.1);
}

.video-placeholder span {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-placeholder p {
    opacity: 0.7;
}

.video-info {
    margin-top: 40px;
    padding: 10px 0;
    color: var(--white);
}

.video-badge {
    display: inline-block;
    background: #ff6b6b;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.video-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.video-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 800px;
}

.video-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.video-meta i {
    margin-right: 6px;
}

.video-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-share span {
    color: rgba(255, 255, 255, 0.6);
}

.video-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.video-share a:hover {
    background: var(--primary-green);
}

/* Categories */
.categories-section {
    padding: 50px 20px;
    background: #0f0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

/* Episodes Grid */
.episodes-section {
    padding: 80px 20px;
    background: #0f0f1a;
}

.episodes-section .section-header h2 {
    color: var(--white);
}

.episodes-section .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.episode-card {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}

.episode-card:hover {
    transform: translateY(-8px);
}

.episode-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.play-btn-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.9);
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.play-btn-small i {
    margin-left: 4px;
}

.episode-card:hover .play-btn-small {
    opacity: 1;
}

.episode-content {
    padding: 24px;
}

.episode-category {
    display: inline-block;
    color: var(--primary-green);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.episode-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.episode-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.episode-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.load-more {
    text-align: center;
}

/* Subscribe Section */
.subscribe-section {
    padding: 80px 20px;
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subscribe-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.subscribe-text h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 8px;
}

.subscribe-text p {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form {
    display: flex;
    gap: 12px;
}

.subscribe-input {
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    min-width: 300px;
    font-size: 1rem;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-platforms {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-platforms span {
    margin-right: 16px;
}

.platform-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s;
}

.platform-link:hover {
    color: var(--primary-green);
}

.platform-link i {
    margin-right: 6px;
}

/* TV CTA Section */
.tv-cta-section {
    padding: 80px 20px;
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.tv-cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.tv-cta-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-tv-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tv-cta:hover {
    background: var(--primary-green);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.3);
    transform: translateY(-3px);
}

/* Be on the Show Popup */
.show-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.show-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.show-popup {
    background: #1a1a2e;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.show-popup-overlay.active .show-popup {
    transform: scale(1) translateY(0);
}

.show-popup-banner {
    background: linear-gradient(135deg, #1b5e20 0%, var(--primary-green) 50%, #43a047 100%);
    padding: 30px 40px 25px;
    position: relative;
    overflow: hidden;
}

.show-popup-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.show-popup-banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.show-popup-banner-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.show-popup-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.show-popup-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
}

.show-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.show-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.show-popup-close i {
    font-size: 1rem;
    color: var(--white);
}

.show-popup-content {
    padding: 30px 40px 35px;
}

.be-on-show-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.show-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.show-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.show-form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.show-form-group label .required {
    color: #ff6b6b;
}

.show-form-group label .optional {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 0.8rem;
}

.show-form-group input,
.show-form-group textarea {
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    outline: none;
}

.show-form-group input:focus,
.show-form-group textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.show-form-group input::placeholder,
.show-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.show-form-group textarea {
    resize: vertical;
}

.btn-show-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
    margin-top: 5px;
}

.btn-show-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.5);
    background: linear-gradient(135deg, var(--dark-green) 0%, #143d10 100%);
}

.show-form-success {
    display: none;
    text-align: center;
    padding: 20px;
}

.show-form-success.show {
    display: block;
}

.show-success-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.show-form-success h3 {
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.show-form-success p {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-form {
        width: 100%;
    }
    
    .subscribe-input {
        min-width: 0;
        flex: 1;
    }

}

@media (max-width: 768px) {
    .page-header.tv-header {
        margin-top: 116px;
        padding: 80px 0 40px;
        min-height: 200px;
    }

    .featured-video-section {
        margin-top: 116px;
        padding: 40px 16px 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .video-info h2 {
        font-size: 1.5rem;
    }

    .episodes-section {
        padding: 50px 16px;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .episode-card:hover {
        transform: none;
    }

    .episode-content {
        padding: 18px;
    }

    .category-tabs {
        gap: 8px;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .subscribe-section {
        padding: 50px 16px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-text h2 {
        font-size: 1.5rem;
    }

    .tv-cta-section {
        padding: 50px 16px;
    }

    .tv-cta-section h2 {
        font-size: 1.5rem;
    }

    .btn-tv-cta {
        width: 100%;
        justify-content: center;
    }

    .video-meta {
        flex-direction: column;
        gap: 8px;
    }

    .video-share a {
        width: 44px;
        height: 44px;
    }

    .categories-section {
        padding: 30px 16px;
    }
}

@media (max-width: 480px) {
    .page-header.tv-header {
        margin-top: 100px;
        padding: 60px 0 30px;
        min-height: auto;
    }

    .featured-video-section {
        margin-top: 100px;
        padding: 30px 12px 40px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .video-info h2 {
        font-size: 1.3rem;
    }

    .episode-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .show-popup-overlay {
        padding: 15px;
        align-items: flex-end;
    }

    .show-popup {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .show-popup-banner {
        padding: 25px 25px 20px;
    }

    .show-popup-banner h2 {
        font-size: 1.5rem;
    }

    .show-popup-banner-icon {
        width: 50px;
        height: 50px;
    }

    .show-popup-banner-icon i {
        font-size: 1.5rem;
    }

    .show-popup-content {
        padding: 25px 25px 30px;
    }

    .show-form-row {
        grid-template-columns: 1fr;
    }

    .btn-show-submit {
        width: 100%;
        padding: 14px 28px;
        font-size: 1rem;
    }
}
