/* Custom styles for ZeeKipp Movie Streaming Website */

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

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

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

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Hero section */
.hero-section {
    min-height: 60vh;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

/* Search bar */
.search-bar {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.search-bar input {
    padding-right: 3rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

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

@media (max-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
}

/* Tab toggle */
.tab-toggle {
    position: relative;
    display: inline-flex;
    border-radius: 9999px;
    padding: 0.25rem;
    background-color: #e5e7eb;
}

.dark .tab-toggle {
    background-color: #374151;
}

.tab-toggle-option {
    position: relative;
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s;
    cursor: pointer;
}

.tab-toggle-slider {
    position: absolute;
    border-radius: 9999px;
    background-color: white;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .tab-toggle-slider {
    background-color: #1f2937;
}

.tab-toggle[data-active="1"] .tab-toggle-slider {
    transform: translateX(100%);
}

/* Movie cards */
.movie-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    border-top-color: #10b981;
    animation: spin 1s ease-in-out infinite;
}

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

/* Section transitions */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Genre pills */
.genre-pill {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #e5e7eb;
    color: #4b5563;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.dark .genre-pill {
    background-color: #374151;
    color: #d1d5db;
}

.genre-pill:hover {
    background-color: #10b981;
    color: white;
} 