﻿/**
 * Trainer Archive â€
 */
/* ═══════════════════════════════════════════════════
   TRAINER ARCHIVE — ACQUISITION ENGINE v2
   ═══════════════════════════════════════════════════ */

/* ── Intent Pills ── */
.fcp-intent-pills-container {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to left, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.fcp-intent-pills-container::-webkit-scrollbar {
    display: none;
}

.fcp-intent-pill {
    scroll-snap-align: start;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fp-text-secondary, #b0b0b0);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.fcp-intent-pill:hover {
    border-color: var(--fp-accent, #00d4aa);
    color: var(--fp-accent, #00d4aa);
    background: rgba(0, 212, 170, 0.08);
}

.fcp-intent-pill.active {
    background: linear-gradient(135deg, var(--fp-accent, #00d4aa), #00b894);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

/* ── Trainer Tiers ── */
.fp-trainer-card-leaderboard.tier-gold {
    border: 2px solid #f5a623;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fp-trainer-card-leaderboard.tier-silver {
    border: 2px solid #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.1), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fcp-tier-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.3px;
}

.fcp-tier-gold {
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.fcp-tier-silver {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #1a1a2e;
}

/* ── Capacity Badge ── */
.fcp-capacity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.2px;
}

.fcp-capacity-badge.fcp-scarce {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    animation: fcp-pulse 2s infinite;
}

.fcp-capacity-badge.fcp-sold-out {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

@keyframes fcp-pulse {

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

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
    }
}

/* ── Copyable Code ── */
.fcp-code-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px dashed rgba(0, 212, 170, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: var(--fp-accent, #00d4aa);
}

.fcp-code-copy:hover {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--fp-accent, #00d4aa);
    transform: translateY(-1px);
}

.fcp-code-copy .fcp-copy-icon {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.fcp-code-copy:hover .fcp-copy-icon {
    opacity: 1;
}

.fcp-code-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* ── CTA Button ── */
.fp-btn-cta {
    background: linear-gradient(135deg, #00d4aa, #00b894) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.25);
}

.fp-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.35);
}

/* ── Waitlist Button ── */
.fp-btn-waitlist {
    background: rgba(255, 71, 87, 0.1) !important;
    color: #ff4757 !important;
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.fp-btn-waitlist:hover {
    background: rgba(255, 71, 87, 0.2) !important;
    border-color: #ff4757 !important;
}

/* ── Toast Notification ── */
.fcp-toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #00d4aa;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.2);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.fcp-toast.show {
    bottom: 30px;
}

/* ── Skeleton Shimmer ── */
.fcp-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.fcp-skeleton-card {
    height: 380px;
    border-radius: 16px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: fcp-shimmer 1.2s infinite;
}

@keyframes fcp-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Empty State ── */
.fcp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 16px;
}

.fcp-empty-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
}

.fcp-empty-state h3 {
    font-size: 22px;
    color: var(--fp-text, #fff);
    margin: 0;
}

.fcp-empty-state p {
    color: var(--fp-text-secondary, #b0b0b0);
    font-size: 15px;
    max-width: 400px;
    margin: 0;
}

/* ── Waitlist Modal ── */
.fcp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fcp-modal {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 36px;
    max-width: 460px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.fcp-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: none;
    border: none;
    color: var(--fp-text-secondary, #b0b0b0);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fcp-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fcp-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.fcp-modal-title {
    font-size: 20px;
    color: #fff;
    margin: 0 0 6px;
}

.fcp-modal-subtitle {
    color: var(--fp-text-secondary, #b0b0b0);
    font-size: 14px;
    margin: 0 0 20px;
}

.fcp-modal-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
    text-align: center;
    direction: ltr;
}

.fcp-modal-input:focus {
    border-color: var(--fp-accent, #00d4aa);
}

.fcp-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Waitlist Options (Free / VIP) */
.fcp-modal-options {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.fcp-modal-option {
    flex: 1;
    cursor: pointer;
}

.fcp-modal-option input[type="radio"] {
    display: none;
}

.fcp-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.25s;
    text-align: center;
}

.fcp-modal-option input:checked+.fcp-option-card {
    border-color: var(--fp-accent, #00d4aa);
    background: rgba(0, 212, 170, 0.06);
}

.fcp-modal-option input:checked+.fcp-option-card.fcp-option-vip {
    border-color: #f5a623;
    background: rgba(245, 166, 35, 0.06);
}

.fcp-option-icon {
    font-size: 24px;
}

.fcp-option-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.fcp-option-desc {
    font-size: 11px;
    color: var(--fp-text-secondary, #b0b0b0);
    line-height: 1.4;
}

.fp-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Waitlist Result */
.fcp-waitlist-success {
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.08);
    color: #00d4aa;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

.fcp-waitlist-error {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 71, 87, 0.08);
    color: #ff4757;
    font-size: 14px;
    margin-top: 12px;
}

.fcp-cross-sell {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fcp-cross-sell p {
    font-size: 13px;
    color: var(--fp-text-secondary, #b0b0b0);
    margin: 0 0 12px;
}

/* ── Sort Pills (matching Intent Pills design) ── */
.fcp-sort-pills-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.fcp-sort-label {
    color: var(--fp-text-secondary, #b0b0b0);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 4px;
}

.fcp-sort-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fp-text-secondary, #b0b0b0);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.fcp-sort-pill:hover {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.fcp-sort-pill.active {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
    font-weight: 700;
}

/* ── Page Spacing ── */
.fp-trainers-leaderboard .fp-leaderboard-header {
    margin-bottom: 28px;
}

.fcp-intent-pills-container {
    margin-bottom: 12px;
    justify-content: center;
}

.fcp-sort-pills-container {
    margin-bottom: 28px;
}

/* ═══ ENHANCED LEADERBOARD CARD ═══ */
.fp-trainer-card-leaderboard {
    position: relative;
    background: linear-gradient(160deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.fp-trainer-card-leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.fp-trainer-card-leaderboard:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 212, 170, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.fp-trainer-card-leaderboard:hover::before {
    opacity: 1;
}

/* ── Card: Avatar Enhancement ── */
.fp-trainer-avatar-frame {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.fp-trainer-avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, var(--fp-accent, #00d4aa), #f5a623, var(--fp-accent, #00d4aa));
    margin: 0 auto;
    animation: fcp-ring-spin 6s linear infinite;
}

@keyframes fcp-ring-spin {
    0% {
        background: conic-gradient(from 0deg, var(--fp-accent, #00d4aa), #f5a623, var(--fp-accent, #00d4aa));
    }

    50% {
        background: conic-gradient(from 180deg, var(--fp-accent, #00d4aa), #f5a623, var(--fp-accent, #00d4aa));
    }

    100% {
        background: conic-gradient(from 360deg, var(--fp-accent, #00d4aa), #f5a623, var(--fp-accent, #00d4aa));
    }
}

.fp-trainer-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a2e;
}

.fp-trainer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fp-trainer-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #1a1a2e;
}

.fp-trainer-status.online {
    background: #00d4aa;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
}

/* ── Card: Name & Info ── */
.fp-trainer-info {
    margin-bottom: 16px;
}

.fp-trainer-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.fp-trainer-specialties {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fp-specialty-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-accent, #00d4aa);
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ── Card: Stats Bar ── */
.fp-trainer-quick-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 10px;
}

.fp-quick-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--fp-text-secondary, #b0b0b0);
}

.fp-quick-stat i {
    color: var(--fp-accent, #00d4aa);
    font-size: 11px;
}

/* ── Card: Rating ── */
.fp-trainer-rating {
    margin-bottom: 16px;
}

.fp-trainer-rating .filled {
    color: #ffc107;
}

.fp-trainer-rating .far.fa-star {
    color: rgba(255, 193, 7, 0.25);
}

.fp-rating-value {
    font-weight: 700;
    color: #ffc107;
    margin-right: 4px;
    font-size: 14px;
}

.fp-rating-new {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--fp-accent, #00d4aa);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ── Card: Rank Badge ── */
.fp-trainer-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    color: var(--fp-text-secondary, #b0b0b0);
    z-index: 2;
}

.fp-trainer-rank i.fa-crown {
    color: #ffc107;
    font-size: 10px;
}

.rank-gold .fp-trainer-rank {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(247, 201, 72, 0.1));
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.rank-silver .fp-trainer-rank {
    background: rgba(192, 192, 192, 0.1);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.rank-bronze .fp-trainer-rank {
    background: rgba(205, 127, 50, 0.1);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.2);
}

/* ── Card: Actions ── */
.fp-trainer-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.fp-btn-sm {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.fp-btn-primary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fp-text-secondary, #b0b0b0);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Leaderboard Grid ── */
.fp-leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 0 32px;
}

/* ── Featured badge ── */
.fp-featured-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffc107;
    font-size: 16px;
    animation: fcp-twinkle 2s infinite;
}

@keyframes fcp-twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── Join section ── */
.fp-join-section {
    text-align: center;
    padding: 48px 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fp-join-section h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px;
}

.fp-join-section p {
    color: var(--fp-text-secondary, #b0b0b0);
    margin: 0 0 20px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .fcp-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .fcp-modal {
        padding: 24px 18px;
    }

    .fcp-modal-options {
        flex-direction: column;
    }

    .fp-leaderboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-trainer-card-leaderboard {
        padding: 24px 16px 20px;
    }

    .fp-trainer-actions {
        flex-direction: column;
    }

    .fp-btn-sm {
        justify-content: center;
    }

    .fcp-intent-pills-container {
        justify-content: flex-start;
    }
}
