/* Gallery page specific styles */

a.text-decoration-none {
    color: inherit !important;
    text-decoration: none !important;
}

a.text-decoration-none:hover {
    color: inherit !important;
    text-decoration: none !important;
}

a.text-decoration-none:visited {
    color: inherit !important;
    text-decoration: none !important;
}

a.text-decoration-none:focus {
    color: inherit !important;
    text-decoration: none !important;
}

a.text-decoration-none .card {
    color: inherit;
}

a.text-decoration-none .text-muted {
    color: #6c757d !important;
}

a.text-decoration-none .text-warning {
    color: #ffc107 !important;
}

.movie-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.movie-poster-container {
    position: relative;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-poster-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

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

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.year-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.movie-title {
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-subtitle, .movie-director {
    font-size: 0.85em;
    line-height: 1.3;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(30,30,30,0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.movie-card:hover .movie-overlay {
    transform: translateY(0);
}

.movie-overview {
    line-height: 1.4;
}

.movie-genres .badge {
    font-size: 0.75em;
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(5px);
}

/* Responsive design */
@media (max-width: 768px) {
    .movie-poster {
        height: 250px;
    }
    
    .movie-overlay {
        padding: 15px;
    }
    
    .col-6 {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .movie-poster {
        height: 200px;
    }
    
    .movie-title {
        font-size: 0.9rem;
    }
    
    .movie-subtitle, .movie-director {
        font-size: 0.8em;
    }
}

/* Watched check mark styles - positioned on poster image */
.watched-check-overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.watched-check-overlay:hover {
    transform: scale(1.05);
}

.watched-check-overlay i {
    color: #28a745;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .movie-poster-placeholder {
        background: linear-gradient(45deg, #2d3748, #4a5568);
    }
}
