/* ===================================
   TROPHY CELEBRATION MODAL STYLES
   =================================== */

.trophy-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trophy-modal.show {
    opacity: 1;
}

.trophy-container {
    position: relative;
    width: 90%;
    max-width: 500px;
}

.trophy-content {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-2xl);
    animation: trophyBounce 0.6s ease;
}

@keyframes trophyBounce {

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

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

.trophy-icon {
    font-size: 120px;
    margin-bottom: var(--spacing-lg);
    animation: trophySpin 1s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes trophySpin {
    0% {
        transform: rotate(0deg) scale(0);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.trophy-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.trophy-message {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
}

.trophy-close {
    min-width: 150px;
    background: white !important;
    color: var(--color-primary) !important;
    font-weight: var(--font-weight-semibold);
}

.trophy-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Confetti Animation */
.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    top: -10px;
    opacity: 1;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Dark mode */
[data-theme="dark"] .trophy-content {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trophy-icon {
        font-size: 80px;
    }

    .trophy-title {
        font-size: var(--font-size-2xl);
    }

    .trophy-message {
        font-size: var(--font-size-lg);
    }

    .trophy-content {
        padding: var(--spacing-2xl);
    }
}