/**
 * Additional CSS for Dynamic Movie Display
 * Extends the existing movie-dates.css styling
 */

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    grid-column: 1 / -1; /* Take full width in grid */
}

.empty-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.empty-hint {
    font-size: 1rem !important;
    opacity: 0.8;
    font-style: italic;
}

/* Enhanced Movie Info Styling */
.movie-venue {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0.25rem 0;
    font-weight: 500;
}

.movie-venue::before {
    content: "📍 ";
    opacity: 0.7;
}

.movie-tags {
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Rating Display */
.movie-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.movie-note::before {
    content: "";
    flex-basis: 100%;
    height: 0;
}

/* Loading State */
.movies-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    grid-column: 1 / -1;
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Movie Banner Hover Effects */
.movie-banner {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.movie-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.movie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.movie-banner:hover::before {
    opacity: 1;
}

/* Delete Button Styling */
.movie-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-banner:hover .movie-actions {
    opacity: 1;
}

.delete-movie-btn {
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.delete-movie-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.delete-movie-btn:active {
    transform: scale(0.95);
}

/* Movie Image Error Handling */
.movie-image {
    transition: opacity 0.3s ease;
}

.movie-image[src*="placeholder"] {
    opacity: 0.6;
    filter: grayscale(100%);
}

/* Add some responsive improvements */
@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .movie-tags {
        justify-content: center;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Dark mode support (if you want to add it later) */
@media (prefers-color-scheme: dark) {
    .empty-state {
        color: #adb5bd;
    }
    
    .empty-state h3 {
        color: #dee2e6;
    }
    
    .movie-venue {
        color: #adb5bd;
    }
}