/**
 * Ticket Rating Addon Styles
 *
 * @package Polanger_Ticket_System_Pro
 */

/* Rating Form Container */
.pgtsp-rating-form-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.pgtsp-rating-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pgtsp-rating-icon {
    font-size: 28px;
}

.pgtsp-rating-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.pgtsp-rating-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Star Rating */
.pgtsp-rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pgtsp-rating-stars input[type="radio"] {
    display: none;
}

.pgtsp-rating-stars .pgtsp-star {
    font-size: 40px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgtsp-rating-stars .pgtsp-star:hover,
.pgtsp-rating-stars .pgtsp-star.hover,
.pgtsp-rating-stars .pgtsp-star.selected {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Rating Labels */
.pgtsp-rating-labels {
    display: flex;
    justify-content: space-between;
    max-width: 280px;
    margin: 0 auto 20px;
    font-size: 12px;
    color: #9ca3af;
}

/* Feedback Textarea */
.pgtsp-rating-feedback {
    margin-bottom: 20px;
}

.pgtsp-rating-feedback label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    text-align: left;
}

.pgtsp-rating-feedback textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pgtsp-rating-feedback textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Submit Button */
.pgtsp-rating-submit {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pgtsp-rating-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pgtsp-rating-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Rating Display (Already Rated) */
.pgtsp-rating-display {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.pgtsp-rating-stars-display {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 16px 0;
}

.pgtsp-rating-stars-display .pgtsp-star {
    font-size: 32px;
    color: #d1d5db;
}

.pgtsp-rating-stars-display .pgtsp-star.filled {
    color: #f59e0b;
}

.pgtsp-rating-feedback-display {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: left;
}

.pgtsp-rating-feedback-display p {
    margin: 0;
    color: #374151;
    font-style: italic;
}

.pgtsp-rating-date {
    font-size: 12px;
    color: #6b7280;
}

/* Success Message */
.pgtsp-rating-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.pgtsp-rating-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pgtsp-rating-success h4 {
    margin: 0 0 8px;
    color: #166534;
    font-size: 20px;
}

.pgtsp-rating-success p {
    margin: 0;
    color: #15803d;
}

/* Admin Widget */
.pgtsp-rating-widget .pgtsp-admin-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.pgtsp-rating-widget .pgtsp-rating-value {
    margin-left: 8px;
    font-weight: 600;
    color: #374151;
}

.pgtsp-rating-widget .pgtsp-admin-rating-feedback {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.pgtsp-rating-widget .pgtsp-admin-rating-feedback strong {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.pgtsp-rating-widget .pgtsp-admin-rating-feedback p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    font-style: italic;
}

.pgtsp-rating-widget .pgtsp-admin-rating-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Highlight Animation (after ticket close) */
.pgtsp-rating-highlight {
    animation: pgtsp-rating-pulse 0.5s ease-in-out 3;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

@keyframes pgtsp-rating-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .pgtsp-rating-stars .pgtsp-star {
        font-size: 32px;
    }
    
    .pgtsp-rating-form-container {
        padding: 16px;
    }
}
