/* Passport Page Styles */

/* Sign-in Prompt */
.signin-prompt {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.signin-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.signin-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.signin-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.signin-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.signin-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signin-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.signin-features .feature i {
    font-size: 1.5rem;
    color: var(--primary);
}

.signin-features .feature span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Passport Header */
.passport-header {
    padding: 6rem 0 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
}

.passport-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.passport-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
    overflow: hidden;
}

.passport-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passport-user-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.passport-user-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Grid */
.passport-stats {
    padding: 2rem 0;
    margin-top: -1rem;
}

.passport-stats .container,
.passport-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.streak-card .stat-icon {
    color: #FF6B6B;
}

.streak-card .stat-value {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sections */
.passport-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.section-header h2 i {
    color: var(--primary);
}

.badge-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.badge-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.badge-card.unlocked {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.badge-card.locked {
    opacity: 0.5;
}

.badge-card:hover {
    transform: translateY(-2px);
}

.badge-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.badge-card.unlocked .badge-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #4ECDC4 100%);
    color: white;
}

.badge-card.locked .badge-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.badge-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.badge-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.badge-progress {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.badge-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.badge-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Visits List */
.visits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.visit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.visit-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.visit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.visit-info {
    flex: 1;
    min-width: 0;
}

.visit-truck {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visit-venue {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visit-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Badge Celebration Modal */
.badge-celebration {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.celebration-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: celebrationPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebrationPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-badge {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #4ECDC4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: badgePulse 1s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px 10px rgba(255, 107, 107, 0.2);
    }
}

.celebration-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.celebration-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.celebration-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Confetti effect container */
.celebration-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .passport-header {
        padding: 5rem 0 1.5rem;
    }

    .passport-user {
        flex-direction: column;
        text-align: center;
    }

    .passport-avatar {
        width: 72px;
        height: 72px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .signin-features {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .celebration-content {
        padding: 2rem;
    }

    .celebration-badge {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .signin-card {
        padding: 2rem 1.5rem;
    }

    .passport-user-info h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .badge-card {
        padding: 1rem;
    }

    .badge-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}
