/* Basis-Styles */
body {
    font-size: 16px;
    overflow-x: hidden;
}

/* Netflix-Ladeanimation */
.netflix-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.netflix-loader span {
    width: 8px;
    height: 24px;
    margin: 0 2px;
    background-color: #e50914;
    animation: loader 1s infinite ease-in-out;
}

.netflix-loader span:nth-child(2) {
    animation-delay: 0.1s;
}

.netflix-loader span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes loader {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

/* Navigation - Mobile First */
nav {
    padding: 0.75rem 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
}

nav h1 {
    font-size: 1.5rem;
}

/* Mobile Menü Button */
#mobileMenuButton {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Hauptnavigation - standardmäßig versteckt auf Mobile */
nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
    padding: 1rem;
    z-index: 40;
}

nav ul.show {
    display: flex;
}

nav ul li {
    margin: 0.5rem 0;
}

.nav-link {
    padding: 0.5rem 0;
    display: block;
}

/* Suchfeld */
#searchInput {
    width: 150px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem 0.5rem 2rem;
}

/* User-Menü */
#userMenu {
    right: 1rem;
    width: 200px;
}

/* Hauptinhalt */
#appContent {
    min-height: calc(100vh - 60px);
    padding-top: 60px;
}

/* Hero Section - Mobile */
.hero-section {
    height: 60vh;
    min-height: 400px;
}

.hero-content {
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Film/Serien Karten */
.movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
}

.movie-card {
    transition: transform 0.2s ease;
}

.movie-card img {
    border-radius: 4px;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-card h3 {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Video Player */
#videoPlayer {
    padding: 1rem;
}

#moviePlayer {
    width: 100%;
    max-height: 80vh;
}

#closePlayer {
    font-size: 1.5rem;
}

/* Konto-Seite */
.account-section {
    padding: 1rem;
}

.account-section h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.account-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Tablet (768px und größer) */
@media (min-width: 768px) {
    /* Navigation */
    #mobileMenuButton {
        display: none;
    }
    
    nav ul {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        width: auto;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0;
    }
    
    /* Film/Serien Karten */
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    /* Hero Section */
    .hero-content {
        bottom: 4rem;
        left: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }
    
    /* Konto-Seite */
    .account-section {
        padding: 2rem;
    }
}

/* Desktop (1024px und größer) */
@media (min-width: 1024px) {
    /* Navigation */
    nav {
        padding: 1rem 2rem;
    }
    
    /* Film/Serien Karten */
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }
    
    /* Hero Section */
    .hero-section {
        height: 80vh;
    }
    
    .hero-content {
        max-width: 50%;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Video Player */
    #moviePlayer {
        max-width: 80%;
    }
}

/* Großes Desktop (1280px und größer) */
@media (min-width: 1280px) {
    /* Film/Serien Karten */
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Hilfsklassen */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
    
    .visible-mobile {
        display: none;
    }
}

/* Transitions */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}