/**
 * Sailor Safety Passport — UI Styles
 * Progress bar, rank badges, dynamic cross-promo cards
 */

/* ── Passport Section ── */
.passport-section {
    margin: 24px 0 20px;
    padding: clamp(14px, 4vw, 20px);
    background: linear-gradient(135deg, rgba(30,58,95,0.4) 0%, rgba(30,58,95,0.15) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
}

.passport-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.passport-rank-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,152,0,0.15);
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 12px;
    flex-shrink: 0;
}

.passport-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.passport-rank-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FF9800;
    letter-spacing: 0.02em;
}

.passport-subtitle {
    font-size: 0.82rem;
    color: #6b7d95;
    line-height: 1.3;
}

/* ── Progress Bar ── */
.passport-bar {
    position: relative;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: visible;
}

.passport-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF9800 0%, #FFB74D 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.passport-bar-pips {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.passport-pip {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: background 0.3s, border-color 0.3s;
}

.passport-pip.filled {
    background: #FF9800;
    border-color: #FFB74D;
    box-shadow: 0 0 4px rgba(255,152,0,0.4);
}

/* ── Base Quiz Card Styles (moved from inline) ── */
.quiz-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.quiz-card {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 14px);
    padding: clamp(12px, 3vw, 16px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.quiz-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.quiz-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.quiz-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quiz-card-info strong {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    font-weight: 700;
    color: #fff;
}

.quiz-card-info span {
    font-size: clamp(0.75rem, 2vw, 0.82rem);
    color: #6b7d95;
    line-height: 1.4;
}

/* ── Cross-Promo Cards ── */
.passport-promo {
    margin: 24px 0;
}

.passport-promo-title {
    font-size: 1rem;
    font-weight: 700;
    color: #a0b4c8;
    text-align: center;
    margin-bottom: 14px;
}

/* Re-use existing quiz-card styles but add status indicator */
.passport-card-status {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.passport-card-status.done {
    color: #66BB6A;
    background: rgba(102,187,106,0.1);
    border: 1px solid rgba(102,187,106,0.2);
}

.passport-card-status.play {
    color: #FF9800;
    background: rgba(255,152,0,0.1);
    border: 1px solid rgba(255,152,0,0.2);
}

.quiz-card-done {
    opacity: 0.7;
}

.quiz-card-done:hover {
    opacity: 1;
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
    .passport-section {
        padding: 14px;
        margin: 20px 0 16px;
    }

    .passport-rank-icon {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    .passport-rank-name {
        font-size: 0.92rem;
    }

    .passport-subtitle {
        font-size: 0.78rem;
    }

    .quiz-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .passport-card-status {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
}

@media (max-width: 380px) {
    .passport-section {
        padding: 12px;
        border-radius: 12px;
    }

    .passport-rank-icon {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .quiz-card {
        padding: 10px;
        gap: 10px;
    }

    .quiz-card-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}
