/* Custom styles to complement Tailwind */
:root {
    --primary-green: #1db954;
    --background-dark: #121212;
    --background-darker: #1a1a1a;
    --border-color: #222;
    --text-gray: #888;
    --input-background: #333;
    --input-border: #444;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: var(--background-dark);
}

/* Custom select styling */
.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
}

/* Filter button hover effect */
.filter-button:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Movie card hover effect */
.movie-card {
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure smooth transitions for filter panel */
.filters-panel {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--input-background);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--input-border);
}

/* Pagination Controls */
.pagination-button {
    background-color: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.pagination-button:hover:not(.pagination-button-disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 185, 84, 0.4);
}

.pagination-button-disabled {
    background-color: var(--input-background);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* Movie Detail Styles */
.watch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 185, 84, 0.4);
}

.gallery-image {
    position: relative;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-nav-button {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.gallery-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .movie-card h2 {
        font-size: 0.875rem;
    }
}

/*search*/

.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    /*padding: 8px 15px;*/
    width: 100%;
    max-width: 400px;
    position: relative;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    padding: 8px;
    color: black;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #666;
    margin-right: 10px;
}

.reset-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.reset-icon {
    width: 18px;
    height: 18px;
    color: #999;
    transition: color 0.3s ease;
}

.reset-button:hover .reset-icon {
    color: #333;
}

/* Responsive */
@media (max-width: 480px) {
    .search-wrapper {
        margin: 0 1rem;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
}