/**
 * Match Rating Modal Styles
 * Premium design for post-event rating system
 */

/* Modal Overlay */
.mec-rating-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.mec-rating-modal-overlay.show {
    opacity: 1;
}

/* Modal Container */
.mec-rating-modal {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

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

/* Header */
.mec-rating-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.mec-rating-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mec-rating-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
}

/* Body */
.mec-rating-body {
    padding: 35px 30px;
}

.mec-rating-section {
    margin-bottom: 30px;
}

.mec-rating-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

/* Rating Buttons */
.mec-rating-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mec-rating-btn,
.mec-meet-btn {
    background: #f5f5f5;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.mec-rating-btn::before,
.mec-meet-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mec-rating-btn:hover::before,
.mec-meet-btn:hover::before {
    opacity: 1;
}

.mec-rating-btn .emoji,
.mec-meet-btn .emoji {
    font-size: 48px;
    transition: transform 0.3s ease;
}

.mec-rating-btn span:last-child,
.mec-meet-btn span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: #555;
    position: relative;
    z-index: 1;
}

.mec-rating-btn:hover,
.mec-meet-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mec-rating-btn:hover .emoji,
.mec-meet-btn:hover .emoji {
    transform: scale(1.15) rotate(5deg);
}

.mec-rating-btn.selected,
.mec-meet-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-5px) scale(1.05);
}

.mec-rating-btn.selected span:last-child,
.mec-meet-btn.selected span:last-child {
    color: white;
}

.mec-rating-btn.selected::before,
.mec-meet-btn.selected::before {
    opacity: 0;
}

/* Specific button colors */
.mec-rating-good.selected {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
}

.mec-rating-bad.selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: #ff6b6b;
}

.mec-meet-yes.selected {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #f093fb;
}

.mec-meet-no.selected {
    background: linear-gradient(135deg, #a8a8a8 0%, #888 100%);
    border-color: #a8a8a8;
}

/* Feedback textarea */
#mec-rating-feedback {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
}

#mec-rating-feedback:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.char-count {
    text-align: right;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* Footer */
.mec-rating-footer {
    padding: 25px 30px;
    background: #f9f9f9;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    border-top: 1px solid #e0e0e0;
}

.mec-btn-secondary,
.mec-btn-primary {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mec-btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.mec-btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.mec-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mec-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

/* Thank You Screen */
.mec-rating-thank-you {
    padding: 60px 30px;
    text-align: center;
}

.thank-you-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: thankYouPulse 1s ease;
}

@keyframes thankYouPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

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

.mec-rating-thank-you h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 800;
}

.mec-rating-thank-you p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.confetti {
    font-size: 80px;
    opacity: 0;
    animation: confettiFall 2s ease forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(-50px) rotate(0deg);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
        transform: translateY(50px) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .mec-rating-modal {
        max-width: 95%;
        margin: 0 auto;
    }

    .mec-rating-header h2 {
        font-size: 24px;
    }

    .mec-rating-buttons {
        grid-template-columns: 1fr;
    }

    .mec-rating-footer {
        flex-direction: column;
    }
}

/* Slide animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mec-rating-section {
    animation: slideDown 0.5s ease;
}