/* home.css - Revamped Styles for Video-Centric Homepage */
:root {
    --primary: #ffffff;
    --primary-hover: #e0e0e0;
    --dark: #000000;
    --light: #f5f5f5;
    --gray: #808080;
    --dark-gray: #2d2d2d;
    --control-bg: rgba(0, 0, 0, 0.7);
    --accent: #d4a017; /* New accent color */
    /* Inherited from styles.css for consistency */
    --primary-color: #ffffff;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --dark-neutral: #121212;
    --medium-dark-neutral: #1e1e1e;
    --light-dark-neutral: #2a2a2a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-neutral); /* Consistent with styles.css */
    color: var(--text-color); /* Consistent with styles.css */
    margin: 0;
    padding: 0;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Enhanced Navbar (consistent with styles.css) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2.5%;
    z-index: 1000;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.navbar.scrolled {
    background-color: var(--dark-neutral);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 8px 2.5%;
    height: 45px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.15s;
    letter-spacing: 0.8px;
    padding-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
    font-size: 14px;
    position: relative;
    padding: 6px 10px;
    border-radius: 3px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.2s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section: Featured Video Highlight */
.hero-featured-video {
    position: relative;
    width: 100%;
    height: 80vh; /* Make it prominent */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-neutral);
    overflow: hidden;
    margin-top: 50px; /* Space for fixed navbar */
}

.hero-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.6); /* Darken for text readability */
}

.hero-featured-video:hover .hero-thumbnail {
    transform: scale(1.03);
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 3.5rem; /* Large and impactful */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    color: var(--primary-color);
    max-width: 900px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 700px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    color: var(--text-secondary);
}

.hero-play-btn {
    background-color: var(--primary-color);
    color: var(--dark-neutral);
    border: none;
    padding: 15px 30px;
    border-radius: 5px; /* Subtle rounding */
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-play-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Main Content Sections */
main {
    background-color: var(--dark-neutral);
    padding-top: 20px; /* Small padding after hero */
}

.content-section {
    padding: 60px 5%; /* Reduced padding */
    position: relative;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color); /* Consistent primary color */
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 25px;
    gap: 4px;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    font-size: 0.85rem;
    border-radius: 3px 3px 0 0;
    transition: all 0.15s;
    color: var(--text-secondary);
}

.tab:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    background-color: var(--medium-dark-neutral);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.video-grid-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

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

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

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.video-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-icon i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.language-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-transform: uppercase;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}


/* Reading Section */
.reading-section {
    background-color: var(--medium-dark-neutral); /* Consistent background */
    position: relative;
}

.reading-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../thumbnails/reading-bg.jpg') center/cover;
    opacity: 0.03; /* Even more subtle */
    z-index: -1;
}

.reading-tabs {
    display: flex;
    gap: 6px; /* Increased gap */
    margin-bottom: 20px; /* Increased margin */
    flex-wrap: wrap;
}

.reading-tab {
    padding: 8px 15px; /* Increased padding */
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 20px; /* More rounded for tabs */
    background-color: rgba(255,255,255,0.08);
    transition: all 0.15s;
    color: var(--text-secondary);
}

.reading-tab:hover {
    background-color: rgba(255,255,255,0.12);
    color: var(--primary-color);
}

.reading-tab.active {
    background-color: var(--primary-color);
    color: var(--dark-neutral);
}

.reading-content {
    display: none;
}

.reading-content.active {
    display: block;
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Larger min width */
    gap: 20px; /* Increased gap */
}

.reading-card {
    background-color: var(--dark-neutral); /* Consistent background */
    border-radius: 8px;
    padding: 25px; /* Increased padding */
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.reading-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.15);
}

.reading-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-category i {
    font-size: 0.9rem;
}

.reading-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.reading-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.15s;
}

.reading-item:hover {
    transform: translateX(5px);
}

.reading-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reading-item-title {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.reading-item-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.about-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--dark-neutral);
    padding: 30px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--dark-neutral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
    z-index: 999;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .reading-grid {
        grid-template-columns: 1fr;
    }
    
    .tab, .reading-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-title {
        font-size: 1.8rem;
    }

    .hero-play-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-featured-video {
        height: 60vh; /* Shorter on small mobile */
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-play-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .navbar {
        padding: 6px 10px;
        height: 40px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .content-section {
        padding: 40px 5%;
    }

    .video-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .reading-tabs {
        justify-content: center; /* Center tabs if they wrap */
    }
}

