/**
 * Watch Page Stylesheet
 * Optimized for Google 2025 Video Indexing Requirements
 * Purpose: Make video the PRIMARY content (above the fold, minimum 1/3 viewport)
 */

/* ==========================================
   WATCH PAGE LAYOUT
   ========================================== */

.watch-page {
    background-color: #f8f9fa;
}

/* Minimal Header for Watch Pages */
.watch-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.watch-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watch-header .logo img {
    height: 40px;
    width: auto;
}

.watch-header .btn-call {
    background-color: #d32f2f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.watch-header .btn-call:hover {
    background-color: #b71c1c;
    color: #fff;
}

.watch-header .btn-call i {
    margin-right: 5px;
}

/* ==========================================
   WATCH CONTAINER - VIDEO FOCUSED
   ========================================== */

.watch-main {
    padding: 20px 0;
}

.watch-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 15px 20px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav a {
    color: #d32f2f;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* Video Title - Above the fold */
.watch-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding: 20px 20px 10px 20px;
    margin: 0;
    line-height: 1.3;
}

/* ==========================================
   VIDEO PLAYER - PRIMARY CONTENT
   MUST BE: Above fold, >33% viewport, visible
   ========================================== */

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding: 0 20px 20px 20px;
}

lite-youtube {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    display: block;
    contain: content;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

/* Ensure video takes up significant viewport space */
@media (min-width: 768px) {
    .video-player-wrapper {
        padding: 0 40px 30px 40px;
    }

    lite-youtube {
        min-height: 400px;
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    lite-youtube {
        min-height: 500px;
    }
}

/* ==========================================
   VIDEO META INFORMATION
   ========================================== */

.video-meta {
    padding: 0 20px 30px 20px;
    border-bottom: 1px solid #eee;
}

.video-description h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.video-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.video-description strong {
    color: #333;
}

/* Video Action Buttons */
.video-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn i {
    margin-right: 6px;
}

.btn-primary {
    background-color: #d32f2f;
    color: #fff;
}

.btn-primary:hover {
    background-color: #b71c1c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(211,47,47,0.3);
}

.btn-secondary {
    background-color: #1976d2;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #1565c0;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ==========================================
   VIDEO TRANSCRIPT
   ========================================== */

.video-transcript {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-transcript h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.video-transcript h2 i {
    color: #d32f2f;
    margin-right: 10px;
}

.transcript-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}

.transcript-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.transcript-content p:last-child {
    margin-bottom: 0;
}

.transcript-content strong {
    color: #d32f2f;
    font-weight: 600;
}

/* ==========================================
   RELATED VIDEOS
   ========================================== */

.related-videos {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-videos h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}

.related-videos h2 i {
    color: #d32f2f;
    margin-right: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.video-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

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

.video-card img {
    width: 100%;
    height: auto;
    display: block;
}

.video-card-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ==========================================
   SERVICE SUMMARY
   ========================================== */

.service-summary {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-summary h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.service-summary h2 i {
    color: #d32f2f;
    margin-right: 10px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.feature i {
    font-size: 36px;
    color: #d32f2f;
    margin-bottom: 10px;
}

.feature strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.feature p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.watch-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.footer-links a:hover {
    color: #d32f2f;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #34495e;
    color: #ecf0f1;
    border-radius: 50%;
    margin: 0 8px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: #d32f2f;
}

.copyright {
    font-size: 13px;
    color: #95a5a6;
    margin: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 767px) {
    .watch-title {
        font-size: 20px;
        padding: 15px 15px 10px 15px;
    }

    .video-player-wrapper {
        padding: 0 15px 15px 15px;
    }

    .video-meta {
        padding: 0 15px 20px 15px;
    }

    .video-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .video-transcript,
    .related-videos,
    .service-summary {
        padding: 20px 15px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        margin: 0;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

/* Reduce repaints */
.watch-page * {
    box-sizing: border-box;
}

/* Optimize scrolling */
.watch-main {
    will-change: scroll-position;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
