/* frontend/static/css/components/rating_modal.css */

/* Overlay & Modal Container */
#rate-opponent-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    padding: 0;
    max-width: 400px;
    /* Mobile First design as per screenshot */
    width: 90%;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Background Ambient Glows (Top Right) */
#rate-opponent-modal .ambient-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Close Button */
#rate-opponent-modal .modal-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

#rate-opponent-modal .modal-close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
#rate-opponent-modal .modal-body {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
}

/* Avatar Section */
.rating-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.rating-avatar-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s infinite;
}

.rating-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(42, 42, 62, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Opponent Name & Title */
.rating-opponent-name {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-subtitle {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 40px;
}

/* Form & Criteria */
.rating-criteria {
    margin-bottom: 25px;
    text-align: center;
    transition: transform 0.2s;
}

.rating-criteria:hover {
    transform: scale(1.02);
}

.rating-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.rating-criteria:hover .rating-label {
    color: rgba(255, 215, 0, 0.7);
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.rating-stars i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.1);
    /* Inactive color */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active / Hover State for Stars */
.rating-stars i.fas {
    color: #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    transform: scale(1.1);
}

.rating-stars i:hover {
    transform: scale(1.3);
    color: #FFD700;
}


/* Avatar Image */
.rating-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Buttons */
.btn-gold-glow {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    /* More rounded */
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 25px;
    position: relative;
    overflow: hidden;
}

.btn-gold-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-gold-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-gold-glow:hover::after {
    opacity: 1;
}

.btn-ghost-sm {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s;
}

.btn-ghost-sm:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Keyframe Animations */
@keyframes pulse-glow {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #rate-opponent-modal .modal-content {
        width: 95%;
        border-radius: 24px;
        margin: 0 auto;
    }

    .rating-stars {
        gap: 10px;
    }

    .rating-stars i {
        font-size: 1.8rem;
    }
}