/*
Theme Name: Shadowing TV3
Theme URI: https://shadowingtv.com
Author: Your Name
Author URI: https://shadowingtv.com
Description: A modern WordPress theme with local storage functionality for video streaming and language learning. Features include watch history, favorites, playlists, and data export/import - all stored locally on the user's device with no login required.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shadowing-tv
Tags: video, streaming, education, local-storage, no-login, language-learning

Shadowing TV Theme - All data stored locally, no account needed!
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    margin-top: 0;
}

.main-navigation ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
}

.main-navigation li {
    display: inline-block !important;
}

.main-navigation a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    font-size: 16px;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Hero Section */
.hero-section {
    background: #1a2332;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    padding: 14px 35px;
    background: #fff;
    color: #1a2332;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Content Categories */
.content-section {
    background: #f8f9fa;
    padding: 60px 0;
    width: 100%;
}

.content-section .site-container {
    max-width: 1600px;
    padding: 60px 40px;
}

.category-row {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a2332;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.video-card:hover .video-title {
    color: #0073aa;
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e0e0e0;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.video-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.video-actions {
    display: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a2332;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Modern Share Buttons - Clean White Style */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Facebook - White with Blue Border */
.share-btn.facebook {
    background: #fff;
    color: #1a1a1a;
    border-color: #1877f2;
}

.share-btn.facebook:hover {
    background: #f7f9fc;
    border-color: #0c63d4;
}

/* Twitter/X - White with Black Border */
.share-btn.twitter {
    background: #fff;
    color: #1a1a1a;
    border-color: #000;
}

.share-btn.twitter:hover {
    background: #f5f5f5;
    border-color: #333;
}

/* WhatsApp - White with Green Border */
.share-btn.whatsapp {
    background: #fff;
    color: #1a1a1a;
    border-color: #25d366;
}

.share-btn.whatsapp:hover {
    background: #f7fcf9;
    border-color: #1da851;
}

/* Copy Link - White with Gray Border */
.share-btn.link {
    background: #fff;
    color: #1a1a1a;
    border-color: #9e9e9e;
}

.share-btn.link:hover {
    background: #f5f5f5;
    border-color: #757575;
}

/* Playlist Modal */
.playlist-section {
    margin-bottom: 25px;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.playlist-item:hover {
    background: #e9ecef;
}

.playlist-item-name {
    font-weight: 600;
    color: #333;
}

.playlist-item-count {
    font-size: 14px;
    color: #666;
}

.new-playlist-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 10px;
}

.new-playlist-input:focus {
    outline: none;
    border-color: #2a9d8f;
}

.create-playlist-btn {
    width: 100%;
    padding: 12px;
    background: #2a9d8f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.create-playlist-btn:hover {
    background: #21867a;
}

/* Footer */
.site-footer {
    background: #000;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.site-footer p {
    margin: 0;
    color: #fff;
}

/* Page Styles */
.page-section {
    max-width: 100%;
    padding: 60px 40px;
    margin: 0 auto;
}

.page-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.page-section h3 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a2332;
}

.page-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #1a2332;
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
}

.highlight-box h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a2332;
}

.highlight-box p {
    margin: 0;
    font-size: 17px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.benefit-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #1a2332;
}

.benefit-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a2332;
}

.benefit-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* My Library Styles */
.library-header {
    text-align: center;
    margin-bottom: 40px;
}

.library-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

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

.stat-card {
    background: #7c3aed;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card.favorites {
    background: #7c3aed;
}

.stat-card.watchlater {
    background: #1877f2;
}

.stat-card.history {
    background: #14b8a6;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.library-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a2332;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 18px;
    color: #666;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 25px;
    border-radius: 4px;
    margin-top: 40px;
}

.info-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a2332;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 8px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.info-box li::before {
    content: "• ";
    color: #2196f3;
    font-weight: bold;
    margin-right: 10px;
}

/* Data Management Styles */
.storage-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.storage-item {
    text-align: left;
}

.storage-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.storage-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.warning-box p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.action-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.action-section h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a2332;
}

.action-section p {
    margin-bottom: 20px;
}

.export-button {
    display: inline-block;
    padding: 14px 35px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.export-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.import-button {
    display: inline-block;
    padding: 14px 35px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.import-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.file-input-wrapper {
    margin-top: 15px;
}

.file-input {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border: 2px dashed #007bff;
    border-radius: 6px;
    background: #f0f8ff;
}

.import-warning {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    color: #721c24;
    font-weight: 500;
}

/* Single Video Page Styles */
.single-video-page {
    background: #fff;
    padding: 40px 0;
}

.single-video-page .site-container {
    max-width: 1600px;
}

.video-player-container {
    max-width: 100%;
    margin: 0 auto;
}

.video-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.video-player {
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 600px;
}

/* Modern Video Action Buttons */
.video-actions-bar {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.video-action-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
}

.video-action-btn svg {
    width: 20px;
    height: 20px;
}

.video-action-btn.favorite-btn:hover {
    color: #e63946;
    border-color: #e63946;
}

.video-action-btn.favorite-btn.active {
    background: #e63946;
    color: #fff;
    border-color: #e63946;
}

.video-action-btn.favorite-btn.active svg {
    fill: currentColor;
}

.video-action-btn.share-btn:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.video-action-btn.playlist-btn:hover {
    color: #2a9d8f;
    border-color: #2a9d8f;
}

/* Video Info Section */
.video-info-section {
    max-width: 1200px;
    margin: 30px auto;
}

.video-meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* Category Badge - Clickable Link Style */
.video-category-badge,
a.video-category-badge,
a.video-category-link,
.video-meta-info a.video-category-badge,
.video-meta-info a.video-category-link {
    display: inline-block !important;
    padding: 6px 12px;
    background: #1a2332 !important;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: none !important;
    box-shadow: none;
}

a.video-category-badge:hover,
a.video-category-link:hover,
.video-meta-info a.video-category-badge:hover,
.video-meta-info a.video-category-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 35, 50, 0.3);
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: none !important;
}

/* Extra specificity to override WordPress default link styles */
.single-video-page a.video-category-badge,
.single-video-page a.video-category-link {
    text-decoration: none !important;
    border-bottom: none !important;
}

.video-date {
    color: #666;
    font-size: 14px;
}

.video-description {
    width: 100%;
}

.video-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.video-description p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Banner Ad Styles */
.video-banner-ad {
    margin: 40px 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
}

.video-banner-ad a {
    display: block;
    width: 100%;
}

.banner-ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s;
    display: block;
    margin: 0 auto;
}

.video-banner-ad a:hover .banner-ad-image {
    transform: scale(1.02);
}

/* Affiliate and AdSense Sections */
.affiliate-section,
.adsense-section {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.affiliate-section h4,
.adsense-section h4 {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Remove Sidebars */
.sidebar,
.widget-area,
aside {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .site-container {
        padding: 0 20px;
    }
    
    .content-section .site-container {
        padding: 40px 20px;
    }
    
    .video-actions-bar {
        justify-content: center;
    }
    
    .video-action-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .site-branding {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 22px;
    }
}