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

body {
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background-color: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Container - Full Height Split */
.main-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Full Height Sidebar - 20% width */
.sidebar {
    width: 15%;
    background-color: #dc2626;
    border-right: 3px solid black;
    padding: 2rem 1.5rem;
    color: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: white;
    font-weight: bold;
}

.tagline {
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    border-bottom: 2px solid white;
    padding-bottom: 1rem;
    font-style: italic;
}

.filter-section {
    flex: 1;
}

.filter-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-link {
    display: block;
    padding: 0.5rem;
    color: white !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.category-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    text-decoration: none !important;
}

.category-link:visited {
    color: white !important;
    text-decoration: none !important;
}

.category-link:active {
    color: white !important;
    text-decoration: none !important;
}

.filter-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.filter-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-checkbox,
.filter-radio {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 3px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Radio button styling */
.filter-radio + .checkmark {
    border-radius: 50%;
}

.filter-checkbox:checked + .checkmark,
.filter-radio:checked + .checkmark {
    background-color: white;
    border-color: white;
}

.filter-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc2626;
    font-weight: bold;
    font-size: 14px;
}

.filter-radio:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #dc2626;
    border-radius: 50%;
}

.reset-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: white;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.reset-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

/* Content Area - 80% width */
.content-area {
    width: 85%;
    display: flex;
    flex-direction: column;
}

/* Header next to sidebar */
.header {
    background-color: white;
    border-bottom: 2px solid #dc2626;
    padding: 1rem 2rem;
    flex-shrink: 0;
}

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

.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #dc2626;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid black;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #dc2626;
}

.search-btn {
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #b91c1c;
}

/* Main Content */
.main-content {
    padding: 2rem;
    background-color: white;
}

.main-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: black;
    text-align: center;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #dc2626;
    font-weight: 500;
    grid-column: 1 / -1;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #dc2626;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Items */
.video-item {
    background-color: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
}

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

.video-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
    background: rgba(220, 38, 38, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

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

.quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.video-info {
    padding: 1rem;
    background: white;
    color: black;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: black;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.views {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.rating {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.page-link:hover {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.page-link.active {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}

.page-link:active {
    transform: translateY(0);
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.pagination-btn:hover {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.prev-btn, .next-btn {
    padding: 0.75rem 1.5rem;
}

/* About and FAQ sections */
.about-section, .faq-section {
    padding: 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.about-section h2, .faq-section h2 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-section p, .faq-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

.about-section a, .faq-section a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover, .faq-section a:hover {
    text-decoration: underline;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item h3 {
    background-color: #dc2626;
    color: white;
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background-color: #b91c1c;
}

.faq-item p {
    padding: 1rem;
    margin: 0;
    background-color: white;
}

.faq-item.active p {
    display: block;
}

/* Disclaimer and Footer */
.disclaimer-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 2px solid #dc2626;
    text-align: center;
}

.disclaimer-section p {
    margin-bottom: 0.5rem;
    color: #666;
}

.disclaimer-section a {
    color: #dc2626;
    text-decoration: none;
    margin: 0 0.5rem;
}

.disclaimer-section a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 2px solid #dc2626;
    padding: 2rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sidebar {
        width: 25%;
    }
    
    .content-area {
        width: 75%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-container {
        flex-direction: column;
        height: auto;
    }
    
    body {
        overflow: auto;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 3px solid black;
        padding: 1rem;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .content-area {
        margin-top: 0;
        padding-top: 4rem; /* Space for mobile menu button */
    }
    
    .content-area {
        width: 100%;
        height: auto;
    }
    
    .main-content {
        padding: 1rem;
        overflow-y: visible;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-left {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile-friendly filter section */
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
    }
    
    /* Better touch targets */
    .nav-link {
        padding: 0.75rem 1rem;
        border: 1px solid #dc2626;
        border-radius: 6px;
        text-align: center;
        background-color: white;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: #dc2626;
        color: white;
    }
    
    /* Mobile search improvements */
    .search-container {
        width: 100%;
    }
    
    .search-form {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        min-height: 44px; /* Better touch target */
    }
    
    .search-btn {
        min-height: 44px;
        padding: 0 1.5rem;
    }
    
    /* Video thumbnail improvements for mobile */
    .video-thumbnail {
        height: 140px; /* Slightly larger for better visibility */
    }
    
    .play-overlay {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    /* Better pagination for mobile */
    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        width: 100%;
        max-width: 200px;
        min-height: 44px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .sidebar {
        padding: 1rem;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

/* Custom scrollbar for sidebar and main content */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.main-content::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Focus styles for accessibility */
.filter-item:focus-within,
.page-link:focus,
.search-input:focus,
.search-btn:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Popular Categories Grid Styles */
.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
}

.category-card {
    background-color: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.category-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5;
}

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

.category-placeholder {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}


.category-info {
    padding: 1rem;
    background: white;
    color: black;
}

.category-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: black;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* SEO Content Styles */
.seo-content {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
}

.seo-content h2 {
    color: #dc2626;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.seo-content h3 {
    color: #dc2626;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.content-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.seo-text {
    line-height: 1.7;
    color: #333;
}

.seo-text p {
    margin-bottom: 1.5rem;
}

.seo-text strong {
    color: #dc2626;
    font-weight: 600;
}

.seo-text em {
    color: #dc2626;
    font-style: italic;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.features-list li {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.features-list li:hover {
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

/* Responsive adjustments for popular categories */
@media (max-width: 1200px) {
    .popular-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .category-thumbnail {
        height: 100px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .video-count {
        font-size: 0.8rem;
    }
    
    .seo-content {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .popular-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .category-thumbnail {
        height: 120px;
    }
    
    .seo-content {
        padding: 1rem;
    }
}
