/* Modern Modal ve Form Stilleri */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal {
    background: linear-gradient(135deg, rgba(22, 24, 33, 0.95) 0%, rgba(31, 33, 48, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(178, 7, 16, 0.1) 100%);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: #e50914;
    font-size: 22px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.modal-close:hover {
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    transform: scale(1.1);
}

/* Modal Body */
.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.6);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.8);
}

/* Form Stilleri */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group label.required::after {
    content: ' *';
    color: #e50914;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(42, 44, 61, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(42, 44, 61, 0.8);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(42, 44, 61, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: #e50914;
    background-color: rgba(42, 44, 61, 0.8);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.form-select option {
    background: #2a2c3d;
    color: #ffffff;
    padding: 10px;
}

/* Checkbox ve Radio Stilleri */
.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"],
.form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    background: rgba(42, 44, 61, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-radio input[type="radio"] {
    border-radius: 50%;
}

.form-checkbox input[type="checkbox"]:checked,
.form-radio input[type="radio"]:checked {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border-color: #e50914;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.form-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.form-checkbox label,
.form-radio label {
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

/* Range Slider */
.range-container {
    position: relative;
    margin-bottom: 16px;
}

.range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(42, 44, 61, 0.6);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.6);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.6);
}

.range-value {
    position: absolute;
    right: 0;
    top: -30px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* AI Modal Özel Stilleri */
.ai-modal .modal {
    max-width: 800px;
}

.ai-section {
    margin-bottom: 30px;
}

.ai-section h3 {
    color: #e50914;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-section h3 i {
    font-size: 20px;
}

.mood-buttons,
.duration-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* AI Sonuçları */
#aiResults {
    display: none;
    margin-top: 20px;
}

.ai-recommendations {
    display: grid;
    gap: 16px;
}

.ai-recommendation-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(61, 61, 61, 0.8) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.ai-recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #e50914;
}

.ai-card-content h4 {
    color: #e50914;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.ai-card-content p {
    margin: 6px 0;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
}

.ai-match {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Filter Modal Özel Stilleri */
.filter-modal .modal {
    max-width: 700px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    color: #e50914;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Notification Modal */
.notification-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(22, 24, 33, 0.95) 0%, rgba(31, 33, 48, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(450px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-modal.show {
    transform: translateX(0);
}

.notification-modal.success {
    border-left: 4px solid #4CAF50;
}

.notification-modal.info {
    border-left: 4px solid #2196F3;
}

.notification-modal.warning {
    border-left: 4px solid #FF9800;
}

.notification-modal.error {
    border-left: 4px solid #f44336;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.notification-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* Trend Popup */
.trend-popup {
    padding: 16px;
}

.trend-popup h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.trend-count {
    color: #e50914;
    font-size: 12px;
    font-weight: 600;
    background: rgba(229, 9, 20, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        margin: 20px auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 24px;
        max-height: 50vh;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mood-buttons,
    .duration-buttons {
        gap: 8px;
    }
    
    .genre-tags {
        gap: 6px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions .modal-btn {
        width: 100%;
    }
    
    .notification-modal {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification-modal.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .modal {
        width: 98%;
        margin: 10px auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 45vh;
    }
    
    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .ai-section h3 {
        font-size: 16px;
    }
    
    .ai-card-content h4 {
        font-size: 15px;
    }
    
    .ai-card-content p {
        font-size: 13px;
    }
    
    .notification-modal {
        padding: 16px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-content {
        font-size: 13px;
    }
}