/* Consolidated Custom Styles for SenFlix */

:root {
    /* Colors */
    --color-background: #141414;
    --color-surface: #222;
    --color-surface-dark: #000;
    --color-text-primary: #ffffff;
    --color-text-secondary: #aaaaaa;
    --color-accent: #e50914;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'Bebas', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 24px;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    
    /* Layout */
    --sidebar-width: 150px;
    --card-min-width: 200px;
    --border-radius: 5px;
    
    /* Transitions */
    --transition-speed: 0.2s;
    --transition-function: ease-in-out;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Sidebar Styles */
#sidebar {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 16rem;
    height: calc(100vh - 4rem);
    z-index: 40;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

#main-content, .main-content {
    width: 100vw;
    margin-left: 0 !important;
    transition: none;
    position: relative;
    z-index: 1;
}

#sidebar.sidebar-hidden {
    transform: translateX(-100%);
}

/* Sidebar Indicator & Scrollspy */
/* .fade-dots, .fade-dots .dot, .fade-dots .dot.active */

#sidebar .sidebar-link.active {
    color: #e50914 !important;
    font-weight: bold;
    background: linear-gradient(to right, #e50914 4px, transparent 4px);
    border-radius: 0 6px 6px 0;
    padding-left: 0.75rem;
}

/* Buttons */
.btn-primary {
    @apply bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded-lg transition-colors duration-300;
}

.btn-secondary {
    @apply bg-gray-800 hover:bg-gray-700 text-white px-4 py-2 rounded-lg transition-colors duration-300;
}

/* Movie Grid */
.movie-grid-container {
    @apply relative overflow-hidden;
}

.movie-grid-wrapper {
    @apply grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4;
}

.movie-poster {
    @apply relative w-full h-full;
}

.movie-overlay {
    @apply absolute inset-0 bg-black/60 opacity-0 transition-opacity duration-300;
}

.movie-info {
    @apply absolute bottom-0 left-0 right-0 p-4 transform translate-y-full transition-transform duration-300;
}

.movie-actions {
    @apply absolute top-4 right-4 flex space-x-2 opacity-0 transition-opacity duration-300;
}

.action-btn {
    @apply bg-black/50 hover:bg-black/70 text-white p-2 rounded-full transition-colors duration-300;
}

.movie-card:hover .movie-overlay {
    @apply opacity-100;
}

.movie-card:hover .movie-info {
    @apply translate-y-0;
}

.movie-card:hover .movie-actions {
    @apply opacity-100;
}

/* Glare Effect */
.movie-card::after {
    content: '';
    @apply absolute inset-0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 180px;
    }
}

@media (max-width: 480px) {
    :root {
        --card-min-width: 150px;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: var(--spacing-sm);
    }
}

/* Content Header */
.content-header {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    background-color: var(--surface-dark);
    border-radius: 8px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 1rem;
}