﻿/* ============================================
   COMPONENTS - Cards, Buttons, Badges
   ============================================ */

/* ============================================
   THERAPIST CARD V2
   ============================================ */
.therapist-card-v2 {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .therapist-card-v2:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

.card-header-gradient {
    height: 70px;
    background: linear-gradient(135deg, var(--brand-primary), var(--accent-premium));
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

    .status-badge.online {
        background: var(--brand-secondary);
    }

.badge-instant {
    background: var(--accent-warm);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
}

.therapist-avatar-wrapper {
    margin-top: -48px;
    text-align: center;
    padding: 0 20px;
}

.therapist-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    background: #F3F4F6;
}

.therapist-card-v2 .card-body {
    padding: 16px 20px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.therapist-card-v2 h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 12px 0 4px;
    color: var(--text-primary);
}

.specialty {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.stars {
    color: #E5E7EB;
    letter-spacing: 1px;
}

    .stars .filled {
        color: var(--accent-warm);
    }

.rating-score {
    font-weight: 800;
    color: var(--text-primary);
}

.rating-count {
    color: var(--text-secondary);
    font-size: 11px;
}

.price-row {
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.unit {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 4px;
}

.card-footer {
    padding: 0 20px 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-full {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

    .btn-primary-full:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
        color: white;
    }

.btn-outline {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

    .btn-outline:hover {
        background: var(--brand-primary);
        color: white;
    }

/* ============================================
   FEATURED THERAPIST CARD
   ============================================ */
.therapist-featured-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

    .therapist-featured-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: rgba(139, 92, 246, 0.2);
    }

.premium-crown {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
}

.featured-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px 0 16px;
}

.featured-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #EEF2FF;
    background: #F3F4F6;
}

.verified-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    background: var(--brand-secondary);
    color: white;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.therapist-featured-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.therapist-featured-card .specialties {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 40px;
}

.satisfaction-bar {
    position: relative;
    height: 28px;
    background: #F3F4F6;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.satisfaction-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--brand-secondary), #34D399);
    border-radius: 14px;
    transition: width 1s ease-out;
}

.satisfaction-bar span {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    z-index: 2;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

    .stats-row > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .stats-row strong {
        font-size: 18px;
        font-weight: 800;
        color: var(--brand-primary);
    }

    .stats-row span {
        font-size: 11px;
        color: var(--text-secondary);
    }

.featured-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

    .featured-actions .btn-primary-full {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }

/* ============================================
   QUIZ CARD COMPACT
   ============================================ */
.quiz-card-compact {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

    .quiz-card-compact:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-color: rgba(79, 70, 229, 0.2);
    }

.quiz-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.quiz-category-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.quiz-card-compact h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-primary);
    min-height: 48px;
}

.quiz-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .quiz-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.quiz-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

    .quiz-rating small {
        color: var(--text-secondary);
        font-weight: 400;
        font-size: 11px;
    }

.link-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
}

    .link-arrow:hover {
        background: var(--brand-primary);
        color: white;
        transform: translateX(-4px);
    }

/* ============================================
   COURSE CARD V2
   ============================================ */
.course-card-v2 {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

    .course-card-v2:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

.course-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F3F4F6;
}

    .course-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
    }

.course-card-v2:hover .course-thumb img {
    transform: scale(1.05);
}

.course-tag {
    position: absolute;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .course-tag.featured {
        top: 10px;
        right: 10px;
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #333;
    }

    .course-tag.discount {
        top: 10px;
        left: 10px;
        background: linear-gradient(135deg, #EF4444, #F59E0B);
    }

.course-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 48px;
}

    .course-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

        .course-title a:hover {
            color: var(--brand-primary);
        }

.instructor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.mini-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #F3F4F6;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

    .course-stats span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

.course-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

    .course-price-row .price {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--brand-primary);
    }

    .course-price-row .old-price {
        font-size: 0.85rem;
        color: var(--text-muted);
        text-decoration: line-through;
    }

    .course-price-row .currency {
        font-size: 12px;
        color: var(--text-secondary);
        margin-right: auto;
    }

.btn-course {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #EEF2FF;
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all var(--transition-base);
    margin-top: auto;
}

    .btn-course:hover {
        background: var(--brand-primary);
        color: white;
    }

/* ============================================
   DUAL CTA CARDS
   ============================================ */
.cta-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    height: 100%;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
}

.cta-shape {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-podcast {
    background: linear-gradient(135deg, var(--brand-primary), var(--accent-premium));
}

.cta-mood {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-warm));
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    position: relative;
}

.cta-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.cta-card > p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 15px;
    position: relative;
}

.podcast-mini-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    position: relative;
}

    .podcast-mini-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-md);
        margin-bottom: 8px;
        backdrop-filter: blur(10px);
        font-size: 13px;
    }

        .podcast-mini-list li i {
            width: 32px;
            height: 32px;
            background: white;
            color: var(--brand-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

.cta-mood .podcast-mini-list li i {
    color: var(--accent-pink);
}

.podcast-mini-list li span {
    flex: 1;
    font-weight: 600;
}

.podcast-mini-list li small {
    opacity: 0.85;
    font-size: 12px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: var(--brand-primary);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all var(--transition-base);
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
    position: relative;
    font-family: inherit;
}

.cta-mood .btn-cta {
    color: var(--accent-pink);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.streak-display {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
}

.streak-fire {
    font-size: 32px;
}

.streak-display > div {
    display: flex;
    flex-direction: column;
}

.streak-display strong {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.streak-display span {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta-card {
    background: linear-gradient(135deg, var(--brand-primary), var(--accent-premium));
    color: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.final-cta-shape {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.final-cta-card h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.final-cta-card p {
    opacity: 0.9;
    font-size: 15px;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all var(--transition-base);
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

    .btn-cta-primary:hover {
        transform: translateY(-3px);
        color: var(--brand-primary);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all var(--transition-base);
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

    .btn-cta-secondary:hover {
        background: white;
        color: var(--brand-primary);
        transform: translateY(-3px);
    }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #EEF2FF;
    color: var(--brand-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .cta-actions {
        justify-content: flex-start;
    }

    .final-cta-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .cta-card {
        padding: 28px 22px;
    }

        .cta-card h3 {
            font-size: 1.3rem;
        }

    .btn-cta {
        align-self: stretch;
    }

    .stats-row {
        padding: 12px 0;
    }

    .featured-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .quiz-card-compact h3,
    .course-title {
        font-size: 0.9rem;
        min-height: 42px;
    }
}
