/* css/index.css - style for index.html  */
:root {
    --dark-bg: #0a0a0f;
    --dark-card: #111118;
    --dark-border: #22222a;
    --light-text: #f0f0ff;
    --muted-text: #a0a0c0;
    --yellow-primary: #ffd700;
    --yellow-muted: rgba(255, 215, 0, 0.5);
    --yellow-glow: rgba(255, 215, 0, 0.2);
    --success-color: #10b981;
    --error-color: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

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

.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: var(--muted-text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--yellow-primary);
    border-color: var(--yellow-muted);
    background: rgba(255, 215, 0, 0.05);
}

.welcome-user {
    color: var(--yellow-primary);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.hero {
    position: relative;
    margin-bottom: 0;
    padding: 0;
}

.movie-showcase {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0 3rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.movie-banner {
    flex: 0 0 200px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
}

.movie-banner:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--yellow-muted);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-banner:hover .banner-image {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1.5rem;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.movie-banner:hover .banner-overlay {
    transform: translateY(-5px);
}

.banner-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--yellow-primary);
}

.banner-genre {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.hero-content {
    text-align: center;
    padding: 3rem 0 4rem 0;
    margin-top: 0;
}

.hero h1 {
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-highlight {
    color: var(--yellow-primary);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-text);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 400;
    cursor: pointer;
}

.btn-primary {
    background: var(--yellow-primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--yellow-muted);
    color: var(--yellow-primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 4rem 0;
    margin-top: 0;
}

.section-title {
    text-align: center;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.section-subtitle {
    text-align: center;
    color: var(--muted-text);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--yellow-muted);
    transform: translateY(-5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--yellow-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--yellow-primary);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.feature-card p {
    color: var(--muted-text);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(17, 17, 24, 0.8), rgba(10, 10, 15, 0.8));
    border-radius: 20px;
    margin: 2rem 0;
}

.cta-title {
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.cta-subtitle {
    color: var(--muted-text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.25rem;
    color: var(--light-text);
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-border);
    border-top-color: var(--yellow-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}

/* responsive */
@media (max-width: 1024px) {
    .movie-banner {
        flex: 0 0 180px;
        height: 270px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-img {
        width: 150px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .movie-banner {
        flex: 0 0 160px;
        height: 240px;
    }
    
    .banner-title {
        font-size: 0.9rem;
    }
    
    .banner-genre {
        font-size: 0.7rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .movie-showcase {
        gap: 0.75rem;
    }
    
    .movie-banner {
        flex: 0 0 140px;
        height: 210px;
    }
    
    .banner-overlay {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 0.8rem;
    }
    
    .logo-img {
        width: 120px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .footer-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .footer-logo-text {
        font-size: 1rem;
    }
}


html {
    scroll-behavior: smooth;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.movie-banner,
.feature-card,
.btn,
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1025px) {
    .movie-showcase {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: wrap;
    }
    
    .movie-banner {
        flex: 0 0 calc(20% - 1rem);
        height: 350px;
    }
}