/* =========================================
   REVIEW MODAL SYSTEM - IMGCRAFT
   Premium feedback collection interface
   Using ImgCraft Sunset Theme Colors
   ========================================= */

:root {
    --primary: #F97316;
    --primary-hover: #EA580C;
    --secondary: #E11D48;
    --secondary-hover: #BE123C;
    --dark-bg: #020617;
    --card-bg: #0F172A;
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow: #FFD700;
}

/* Review Modal Specific Styles */
.review-modal-container {
    max-width: 540px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.review-modal-header {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(225, 29, 72, 0.1));
    border-bottom: 1px solid var(--card-border);
    padding: 40px 40px 30px;
    text-align: center;
}

.review-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    animation: review-icon-pulse 2s ease-in-out infinite;
}

@keyframes review-icon-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(249, 115, 22, 0.6);
    }
}

.review-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.review-modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.review-modal-body {
    padding: 40px;
}

/* Star Rating System */
.star-rating-container {
    text-align: center;
    margin-bottom: 30px;
}

.star-rating-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    display: block;
}

.star-rating {
    display: inline-flex;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(225, 29, 72, 0.05));
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.star {
    font-size: 2.2rem;
    color: rgba(249, 115, 22, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.star:hover {
    transform: scale(1.2) rotate(-10deg);
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

.star.active {
    color: var(--glow);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
}

.star.hovered {
    color: var(--primary);
    transform: scale(1.15);
}

/* Star animation when selected */
@keyframes star-select {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) rotate(-15deg);
    }

    100% {
        transform: scale(1);
    }
}

.star.just-selected {
    animation: star-select 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rating feedback text */
.rating-feedback {
    margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 28px;
    transition: all 0.3s;
}

.rating-feedback.rating-1 {
    color: #EF4444;
}

.rating-feedback.rating-2 {
    color: #F97316;
}

.rating-feedback.rating-3 {
    color: #F59E0B;
}

.rating-feedback.rating-4 {
    color: #10B981;
}

.rating-feedback.rating-5 {
    color: #059669;
}

/* Feedback Text Area */
.feedback-group {
    margin-bottom: 24px;
}

.feedback-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: block;
}

.feedback-label .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.feedback-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Review Modal Actions */
.review-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.review-btn-primary {
    background: linear-gradient(135deg, #F97316, #E11D48);
    color: white;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.review-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.6);
}

.review-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.review-btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.review-btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    transform: translateY(-1px);
}

.review-btn-text {
    background: transparent;
    color: var(--text-muted);
    padding: 10px;
    font-size: 0.9rem;
}

.review-btn-text:hover {
    color: var(--text-main);
}

/* Loading state */
.review-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success state */
.review-success {
    text-align: center;
    padding: 20px;
}

.review-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: success-pop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.review-success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.review-success-message {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-modal-header {
        padding: 30px 24px 24px;
    }

    .review-modal-body {
        padding: 30px 24px;
    }

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

    .review-modal-subtitle {
        font-size: 0.95rem;
    }

    .star {
        font-size: 1.8rem;
    }

    .star-rating {
        gap: 8px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .review-modal-header {
        padding: 24px 20px 20px;
    }

    .review-modal-body {
        padding: 24px 20px;
    }

    .review-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .review-modal-title {
        font-size: 1.3rem;
    }

    .star {
        font-size: 1.6rem;
    }

    .star-rating {
        gap: 6px;
        padding: 10px 16px;
    }

    .review-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}