/* Base Styles */
:root {
    --color-bg: #020617;
    --color-bg-alt: #0f172a;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #f43f5e;
    --color-secondary: #0ea5e9;
    --color-accent-1: #8b5cf6;
    --color-accent-2: #10b981;
    --font-main: 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Arial Black', Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 span {
    color: var(--color-primary);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

section {
    padding: 5rem 2rem;
}

.logo-svg, .footer-logo-svg {
    height: 60px;
    width: 240px;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 2rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-decoration {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-svg {
    max-width: 100%;
    height: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
}

.secondary-button {
    background-color: transparent;
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: 2px solid var(--color-text-muted);
    transition: var(--transition);
    text-align: center;
}

.secondary-button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Video Sections */
.video-section {
    background-color: var(--color-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.thumbnail-svg {
    width: 100%;
    height: auto;
    display: block;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-text);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
}

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

.play-button svg {
    width: 24px;
    height: 24px;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.video-info {
    padding: 1rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.watch-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.watch-button:hover {
    background-color: #e11d48;
}

/* Popular Section */
.rank-list {
    max-width: 800px;
    margin: 0 auto;
}

.rank-item {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-alt);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.rank-item:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
}

.rank-number {
    background-color: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.rank-thumbnail {
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.rank-svg {
    width: 100%;
    height: 100%;
}

.rank-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rank-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.rank-button {
    align-self: flex-start;
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.rank-button:hover {
    background-color: #e11d48;
}

/* Categories Section */
.categories {
    background-color: var(--color-bg-alt);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.category-item span {
    font-weight: 600;
}

/* CTA Section */
.cta {
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #fb7185 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta h2 span {
    color: #f8fafc;
    text-decoration: underline;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .cta-button {
    background-color: white;
    color: var(--color-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.cta .cta-button:hover {
    background-color: var(--color-bg);
    color: white;
}

/* Footer */
footer {
    background-color: var(--color-bg-alt);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo p {
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-section h3 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-section ul li a {
    color: var(--color-text-muted);
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-favicon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    nav.active {
        height: auto;
        padding: 1rem 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rank-item {
        flex-wrap: wrap;
    }
    
    .rank-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .rank-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}
