/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
:root {
    --primary-color: #E50914;
    --background-color: #141414;
    --text-color: #FFFFFF;
    --secondary-color: #808080;
    --accent-color: #E50914;
    --hover-color: #2980B9;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-left h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.nav-left h1:hover {
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-right a:hover::after,
.nav-right a.active::after {
    width: 100%;
}

.nav-right a.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

.search-input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.search-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.search-button:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-top: 0;
    position: relative;
    transition: all 0.5s ease;
}

.hero.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    max-width: 650px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.btn-play,
.btn-more {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.btn-more {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.btn-more:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

main {
    margin-top: 0;
    padding: 2rem 4%;
}

.content-row {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.content-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-row h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.content-row:hover h2 {
    transform: translateX(10px);
}

/* Movie Grid Styles */
.movie-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.movie-grid::-webkit-scrollbar {
    display: none;
}

.movie-card {
    flex: 0 0 200px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.movie-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.movie-info p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.movie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.movie-buttons button {
    padding: 0.5rem;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.movie-buttons button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
    transform: scale(1.1);
}

.favorite-btn {
    position: relative;
    transition: all 0.3s ease;
}

.favorite-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    animation: heartBeat 0.3s ease;
}

.favorite-btn.active:hover {
    background-color: #c9090f !important;
    transform: scale(1.1);
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.empty-favorites {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary-color);
}

.empty-favorites i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.empty-favorites h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.empty-favorites p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Category Navigation */
.category-navigation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 10px;
}

.nav-arrow.right {
    right: 10px;
}

.nav-arrow i {
    font-size: 1.2rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.movie-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.movie-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-header img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.movie-header img:hover {
    transform: scale(1.05);
}

.movie-header .movie-info {
    flex: 1;
    position: static;
    background: none;
    padding: 0;
}

.movie-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.movie-header .overview {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.movie-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.movie-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.movie-stats i {
    color: var(--primary-color);
}

.trailer-section {
    margin-top: 2rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

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

.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Empty list styles */
.empty-list {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
}

.empty-list i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.empty-list h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.empty-list p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.empty-list .btn-play {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.empty-list .btn-play:hover {
    background-color: var(--hover-color);
}

/* Loading state */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator.visible {
    opacity: 1;
}

.loading-spinner {
    text-align: center;
    color: var(--text-color);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Error message styles */
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-color);
}

.error-message i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .movie-header {
        flex-direction: column;
    }

    .movie-header img {
        width: 100%;
        height: auto;
        max-height: 450px;
    }

    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }

    .nav-right a {
        display: none;
    }
    
    .search-container {
        margin-left: auto;
    }

    .empty-favorites {
        padding: 2rem 1rem;
    }

    .empty-favorites i {
        font-size: 3rem;
    }

    .empty-favorites h3 {
        font-size: 1.2rem;
    }
}

.footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer .copyright {
    color: var(--secondary-color);
    font-size: 12px;
}

/* Streaming Information Styles */
.streaming-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.streaming-section {
    margin-bottom: 15px;
}

.streaming-section:last-child {
    margin-bottom: 0;
}

.streaming-section h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streaming-section h3 i {
    color: var(--primary-color);
}

.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.provider:hover {
    transform: scale(1.1);
}

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

.no-streaming {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
    padding: 10px;
} 