/* ============================================================================
   Coach Profile — Gato / Main Quest Martial Arts
   Extends coach-profile.css with green accent, gym logo, and course overlay.
   ============================================================================ */

/* ── Green accent overrides ─────────────────────────────────────── */

.cp-avatar--green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.cp-tag--green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.cp-chip--green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.cp-cred-icon--green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* ── Gym logo (replaces avatar) ─────────────────────────────────── */

.cp-gym-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    flex-shrink: 0;
}

/* Logo left, name/tag right (centered vertically), bio spans full width below */
.coach-profile-page .cp-id {
    flex-wrap: wrap;
    align-items: center;
}

.cp-gym-logo--large {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    background: none;
    padding: 0;
}

.coach-profile-page .cp-id-text {
    flex: 1;
    min-width: 200px;
}

.coach-profile-page .cp-bio {
    flex-basis: 100%;
    margin-top: 0.25rem;
}

/* ── Pillar number badges ──────────────────────────────────────── */

.cp-pillar-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.cp-card-icon--p1 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.cp-card-icon--p2 { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.cp-card-icon--p3 { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cp-card-icon--p4 { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.cp-card-icon--p1 .cp-pillar-num { color: #3b82f6; }
.cp-card-icon--p2 .cp-pillar-num { color: #10b981; }
.cp-card-icon--p3 .cp-pillar-num { color: #f59e0b; }
.cp-card-icon--p4 .cp-pillar-num { color: #8b5cf6; }

/* ── PDF card ──────────────────────────────────────────────────── */

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

@media (max-width: 820px) {
    .cp-grid--2col { grid-template-columns: 1fr; }
}

.cp-card--pdf .cp-card-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cp-card-icon--pdf {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* ── Course card hover ─────────────────────────────────────────── */

.cp-card--course {
    cursor: pointer;
}

/* ── Course Overlay (fullscreen) ───────────────────────────────── */

.course-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-base, #0f0f13);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.course-overlay.open {
    transform: translateX(0);
}

.course-overlay__header {
    flex-shrink: 0;
    background: var(--bg-base, #0f0f13);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.course-overlay__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.course-overlay__back:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.course-overlay__back svg {
    width: 16px;
    height: 16px;
}

.course-overlay__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.course-overlay__body {
    flex: 1;
    overflow-y: auto;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.course-overlay__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 2rem;
}

/* ── Game Cards inside the overlay ─────────────────────────────── */

.course-games {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-game-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-elevated, #1a1a1a);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.course-game-card:hover {
    border-color: var(--border-medium, #444);
    transform: translateY(-1px);
}

.course-game-card__num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-game-card__info {
    flex: 1;
    min-width: 0;
}

.course-game-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
    line-height: 1.3;
}

.course-game-card__desc {
    font-size: 0.8125rem;
    color: var(--text-tertiary, #9ca3af);
    line-height: 1.5;
    margin: 0;
}

.course-game-card__video {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.course-game-card__thumb {
    width: 160px;
    height: 90px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.course-game-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease;
}

.course-game-card__thumb:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.course-game-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.course-game-card__time {
    font-size: 0.6875rem;
    color: var(--text-tertiary, #9ca3af);
    text-align: center;
}

/* ── Unlock button ─────────────────────────────────────────────── */

.cp-card-unlock {
    padding-top: 0.75rem;
}

.cp-unlock-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    transition: all 0.15s ease;
}

.cp-unlock-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.cp-unlock-btn--accent {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.cp-unlock-btn--accent:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

/* ── Price interval (e.g. /mo) ─────────────────────────────────── */

.cp-card-interval {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-tertiary, #9ca3af);
}

/* ── Bundle banner ─────────────────────────────────────────────── */

.cp-bundle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 0;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
}

.cp-bundle__info {
    flex: 1;
}

.cp-bundle__info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.cp-bundle__sub {
    font-size: 0.8125rem;
    color: var(--text-tertiary, #9ca3af);
}

.cp-bundle__pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cp-bundle__old {
    font-size: 0.9375rem;
    color: var(--text-tertiary, #9ca3af);
    text-decoration: line-through;
}

.cp-bundle__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.cp-bundle .cp-unlock-btn--accent {
    flex-shrink: 0;
    width: auto;
    padding: 0.625rem 1.5rem;
}

/* ── 1-on-1 Coaching CTA (inside credentials card) ────────────── */

.cp-coaching-cta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cp-coaching-cta__info {
    flex: 1;
    min-width: 0;
}

.cp-coaching-cta__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.cp-coaching-cta__sub {
    font-size: 0.6875rem;
    color: var(--text-tertiary, #9ca3af);
    line-height: 1.4;
}

.cp-coaching-cta__right {
    flex-shrink: 0;
    text-align: right;
}

.cp-coaching-cta__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.cp-coaching-cta__price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary, #9ca3af);
}

.cp-coaching-cta__btn {
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #8b5cf6;
    color: white;
    font-family: inherit;
    transition: background 0.15s ease;
}

.cp-coaching-cta__btn:hover {
    background: #7c3aed;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .course-overlay__header {
        padding: 0.75rem 1rem;
    }

    .course-overlay__body {
        padding: 1rem;
    }

    .course-game-card {
        flex-direction: column;
        gap: 1rem;
    }

    .course-game-card__video {
        width: 100%;
    }

    .course-game-card__thumb {
        width: 100%;
        height: 180px;
    }

    .cp-avatar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
