/* ============================================
   REVIEW SYSTEM - TAMAMEN İZOLE CSS
   Hiçbir mevcut stil ile çakışmaz
============================================ */

/* Overlay */
.review-system-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.review-system-overlay.review-active {
    display: flex;
    opacity: 1;
    animation: reviewFadeIn 0.3s ease;
}

@keyframes reviewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.review-system-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: reviewSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reviewSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close Button */
.review-system-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.review-system-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.review-system-close svg {
    width: 20px;
    height: 20px;
}

/* Header */
.review-system-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    color: white;
}

.review-system-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
    line-height: 1.2;
}

.review-system-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

/* Form */
.review-system-form {
    padding: 2rem;
}

/* Form Field */
.review-form-field {
    margin-bottom: 1.75rem;
}

.review-form-field:last-of-type {
    margin-bottom: 2rem;
}

/* Form Label */
.review-form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

/* Form Input */
.review-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    outline: none;
    box-sizing: border-box;
}

.review-form-input::placeholder {
    color: #9ca3af;
}

.review-form-input:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.review-form-input:hover:not(:focus) {
    border-color: #d1d5db;
}

/* Textarea */
.review-form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    outline: none;
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
    box-sizing: border-box;
}

.review-form-textarea::placeholder {
    color: #9ca3af;
}

.review-form-textarea:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.review-form-textarea:hover:not(:focus) {
    border-color: #d1d5db;
}

/* ============================================
   YILDIZ SİSTEMİ
============================================ */

.review-stars-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.review-stars-container:hover {
    border-color: #fbbf24;
    background: #fffbeb;
}

/* Yıldız Butonları */
.review-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.review-star:focus {
    outline: 2px solid #667eea;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Yıldız İkonları */
.review-star-icon {
    width: 44px;
    height: 44px;
    stroke: #d1d5db;
    fill: none;
    transition: all 0.2s ease;
}

/* Hover */
.review-star:hover .review-star-icon {
    stroke: #fbbf24;
    fill: #fbbf24;
    transform: scale(1.2);
}

/* Aktif (Seçili) */
.review-star.review-star-active .review-star-icon {
    stroke: #fbbf24;
    fill: #fbbf24;
}

/* ============================================
   SUBMIT BUTTON
============================================ */

.review-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.3);
}

.review-submit-btn:active {
    transform: translateY(0);
}

.review-submit-icon {
    width: 20px;
    height: 20px;
}

/* Loading State */
.review-submit-btn.review-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.review-submit-btn.review-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: reviewSpin 0.6s linear infinite;
}

@keyframes reviewSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SUCCESS MESSAGE
============================================ */

.review-success-message {
    padding: 3rem 2rem;
    text-align: center;
}

.review-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: reviewSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reviewSuccessPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.review-success-icon svg {
    width: 40px;
    height: 40px;
}

.review-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.review-success-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 640px) {
    .review-system-overlay {
        padding: 0.5rem;
    }

    .review-system-container {
        border-radius: 16px;
        max-height: 95vh;
    }

    .review-system-header {
        padding: 2rem 1.5rem 1.25rem;
    }

    .review-system-title {
        font-size: 1.5rem;
    }

    .review-system-subtitle {
        font-size: 0.9rem;
    }

    .review-system-form {
        padding: 1.5rem;
    }

    .review-form-field {
        margin-bottom: 1.5rem;
    }

    .review-form-input,
    .review-form-textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .review-form-textarea {
        min-height: 120px;
    }

    .review-stars-container {
        gap: 0.5rem;
        padding: 1rem;
    }

    .review-star-icon {
        width: 38px;
        height: 38px;
    }

    .review-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .review-system-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }

    .review-system-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .review-stars-container {
        gap: 0.4rem;
    }

    .review-star-icon {
        width: 34px;
        height: 34px;
    }
}

/* ============================================
   SCROLLBAR
============================================ */

.review-system-container::-webkit-scrollbar {
    width: 8px;
}

.review-system-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.review-system-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.review-system-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   PRINT
============================================ */

@media print {
    .review-system-overlay {
        display: none !important;
    }
}
