/* ================================
   PASSPORT VIEW COMPONENTS
   ================================ */

.passport-container {
    max-width: 900px;
    margin: 0 auto;
}

.passport-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-cyan);
}

.passport-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Stamps Grid */
.stamps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stamp-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stamp-card.validated {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.1), rgba(78, 205, 196, 0.1));
}

.stamp-card.validated::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.stamp-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all var(--transition-normal);
}

.stamp-card.validated .stamp-icon {
    filter: grayscale(0%);
    opacity: 1;
    animation: stampValidated 0.5s ease;
}

@keyframes stampValidated {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Highlight Animation for Quiz Success */
.stamp-card.stamp-highlight {
    animation: highlightStamp 2s ease;
    position: relative;
    z-index: 10;
}

@keyframes highlightStamp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--success);
    }
    25% {
        transform: scale(1.15);
        box-shadow: 0 0 30px 10px var(--success);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px 15px var(--success);
    }
    75% {
        transform: scale(1.15);
        box-shadow: 0 0 30px 10px var(--success);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--success);
    }
}

.stamp-card.stamp-highlight .stamp-icon {
    animation: stampCelebrate 2s ease;
}

@keyframes stampCelebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    15% {
        transform: scale(1.3) rotate(-15deg);
    }
    30% {
        transform: scale(1.3) rotate(15deg);
    }
    45% {
        transform: scale(1.3) rotate(-10deg);
    }
    60% {
        transform: scale(1.3) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(0deg);
    }
}

.stamp-name {
    font-weight: bold;
    color: var(--text-primary);
}

/* Passport Actions */
.passport-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-card);
    height: 30px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border-color);
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transition: width var(--transition-slow);
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: bold;
}
