/* Modern Buton Stilleri */

/* Ana Buton Stilleri */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    min-height: 44px;
    gap: 8px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3), 0 4px 16px rgba(0, 0, 0, 0.1);
    outline: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #ffffff;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover:not(:disabled)::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Secondary Button */
.btn-secondary {
    background: rgba(42, 44, 61, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 60, 77, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover:not(:disabled)::after {
    opacity: 1;
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: #e50914;
    border: 2px solid #e50914;
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-outline:hover:not(:disabled) {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
    border-color: #e50914;
}

.btn-outline:hover:not(:disabled)::after {
    transform: scaleX(1);
}

.btn-outline span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buton Boyutları */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 12px;
}

/* Icon Buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

.btn-icon.btn-lg {
    width: 48px;
    height: 48px;
}

/* Play Button */
.play-button {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95) 0%, rgba(178, 7, 16, 0.95) 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.4);
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 26, 37, 0.95) 0%, rgba(212, 8, 19, 0.95) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(229, 9, 20, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.play-button:hover::before {
    opacity: 1;
}

.play-button:active {
    transform: scale(1.05);
}

.play-button i {
    font-size: 28px;
    margin-left: 3px;
    position: relative;
    z-index: 1;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Login Button */
.login-button {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
    color: #fff;
}

.login-button:hover::before {
    opacity: 1;
}

.login-button span {
    position: relative;
    z-index: 1;
}

/* Search Button */
.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-btn i {
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.search-btn:hover::before {
    opacity: 1;
}

.search-btn:active {
    transform: translateY(-50%) scale(1.05);
}

/* Filter Buttons */
.filter-btn {
    padding: 10px 20px;
    background: rgba(42, 44, 61, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(58, 60, 77, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border-color: #e50914;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

/* Mood & Duration Buttons */
.mood-btn, .duration-btn {
    padding: 12px 24px;
    background: rgba(42, 44, 61, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.mood-btn:hover, .duration-btn:hover {
    border-color: #e50914;
    background: rgba(229, 9, 20, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.2);
}

.mood-btn.selected, .duration-btn.selected {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border-color: #e50914;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

/* Genre Tags */
.genre-tag {
    padding: 8px 16px;
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.genre-tag:hover {
    background: rgba(68, 68, 68, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.genre-tag.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

/* AI Generate Button */
.ai-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ai-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.ai-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Modal Buttons */
.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.modal-btn.primary:hover {
    background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

.modal-btn.secondary {
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.modal-btn.secondary:hover {
    background: rgba(68, 68, 68, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Pagination Buttons */
.page-number, .page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(42, 44, 61, 0.8);
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.page-number:hover, .page-nav:hover {
    background: rgba(58, 60, 77, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-number.active {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.9) 0%, rgba(178, 7, 16, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: linear-gradient(135deg, rgba(255, 26, 37, 0.95) 0%, rgba(212, 8, 19, 0.95) 100%);
    transform: translateY(-50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.slider-nav.prev {
    left: 10px;
    right: auto;
    border-radius: 0 12px 12px 0;
    border-left: none;
    padding-right: 5px;
}

.slider-nav.next {
    right: 10px;
    left: auto;
    border-radius: 12px 0 0 12px;
    border-right: none;
    padding-left: 5px;
}

/* Top Movies Slider Buttons */
.top-movies-slider .slider-prev,
.top-movies-slider .slider-next {
    background: rgba(42, 44, 61, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.top-movies-slider .slider-prev:hover,
.top-movies-slider .slider-next:hover {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .btn-xl {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 20px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .mood-btn, .duration-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .play-button {
        width: 45px;
        height: 45px;
    }
    
    .play-button i {
        font-size: 18px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .mood-btn, .duration-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Ensure slider nav buttons stay inside the slider on small screens */
    .slider-nav.prev {
        left: 8px;
    }

    .slider-nav.next {
        right: 8px;
    }
}

/* Strong, specific rules to ensure prev is on the left and next is on the right
   even if other CSS defines .slider-nav as a full-width flex container. */
.main-slider a.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200; /* ensure above slider content */
}

.main-slider a.slider-nav.prev {
    left: 18px !important;
    right: auto !important;
    border-radius: 0 12px 12px 0;
}

.main-slider a.slider-nav.next {
    right: 18px !important;
    left: auto !important;
    border-radius: 12px 0 0 12px;
}