/* HDFile.live - Main Stylesheet */
/* CSS Variables for Theming */
:root {
    --primary-bg: #0F0F0F;
    --secondary-bg: #1A1A1A;
    --card-bg: #1F1F1F;
    --accent-color: #E50914;
    --accent-hover: #ff0a16;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-transform: scale(1.05);
    --transition-speed: 0.3s;
    --gradient-1: linear-gradient(135deg, #E50914 0%, #ff6b6b 100%);
    --gradient-2: linear-gradient(135deg, #00D9FF 0%, #0066ff 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.1);
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 40px 10px 15px;
    border-radius: 25px;
    color: var(--text-primary);
    width: 250px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    width: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 10px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
}

.search-results.active {
    display: block;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.95) 40%, transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--accent-color);
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating i {
    color: #FFD700;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-primary);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.view-all-link {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.view-all-link:hover {
    gap: 12px;
}

/* OTT Platform Cards */
.ott-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ott-card {
    position: relative;
    padding: 40px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s;
}

.ott-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(229, 9, 20, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.ott-card:hover::before {
    opacity: 1;
}

.ott-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.ott-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ott-logo img {
    max-height: 100%;
    max-width: 150px;
}

.ott-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ott-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.ott-count {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

/* Movie Cards */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    width: 300px;
    min-height: 500px;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 450px;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1A1A1A;
    border-radius: 12px;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.rating-badge i {
    color: #FFD700;
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-1);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-info {
    padding: 15px;
    background: var(--card-bg);
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.genre-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Swiper Carousel */
.swiper {
    width: 100%;
    height: auto;
    min-height: 500px;
    padding-bottom: 50px;
    overflow: visible;
}

.swiper-wrapper {
    display: flex;
    min-height: 500px;
}

.swiper-slide {
    width: 300px;
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
}

.swiper-pagination-bullet {
    background: var(--text-secondary);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.genre-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(229, 9, 20, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.genre-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.genre-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.genre-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.genre-count {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

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

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom i {
    color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
}

.back-to-top.active {
    display: flex;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #1A1A1A 25%, #242424 50%, #1A1A1A 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-80 { margin-top: 80px; }
