/**
 * KalviYogi Modern UX System (2025)
 * Empty states, Toasts, Badges, Cards
 */

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.empty-state-modern .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    filter: grayscale(20%);
}

.empty-state-modern .empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.empty-state-modern .empty-text {
    font-size: 0.95rem;
    color: #888;
    margin: 0 0 1.5rem;
    max-width: 280px;
    line-height: 1.5;
}

.empty-state-modern .btn-cta {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0a0a0f;
    padding: 0.75rem 1.75rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.empty-state-modern .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    width: 100%;
    max-width: 360px;
    padding: 0 1rem;
}

.toast {
    background: #1a1a1f;
    color: #fff;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    font-size: 0.9rem;
}

.toast.toast-out {
    animation: toastOut 0.2s ease forwards;
}

.toast-success {
    border-left: 3px solid #d4af37;
}

.toast-success .toast-icon {
    color: #d4af37;
}

.toast-info {
    border-left: 3px solid #5e9eff;
}

.toast-info .toast-icon {
    color: #5e9eff;
}

.toast-error {
    border-left: 3px solid #ff5e5e;
}

.toast-error .toast-icon {
    color: #ff5e5e;
}

.toast-celebration {
    border-left: 3px solid #d4af37;
    background: linear-gradient(135deg, #1a1a1f, rgba(212, 175, 55, 0.1));
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* ============================================
   LEARNER TITLE & BADGES
   ============================================ */

.learner-identity {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 1.5rem;
}

.learner-title-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.learner-title-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d4af37;
    margin: 0 0 0.25rem;
}

.learner-title-desc {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.badge-item.unlocked {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
    border-color: rgba(212, 175, 55, 0.2);
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.badge-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.badge-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ccc;
    text-align: center;
    line-height: 1.3;
}

.badge-item.unlocked .badge-name {
    color: #d4af37;
}

/* ============================================
   PRIDE MESSAGES
   ============================================ */

.pride-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin: 1rem 0;
}

.pride-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #aaa;
}

.pride-message::before {
    content: '✦';
    color: #d4af37;
    font-size: 0.75rem;
}

/* ============================================
   GOAL PROGRESS
   ============================================ */

.goal-progress-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 1.5rem;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.goal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.goal-time {
    font-size: 0.85rem;
    color: #d4af37;
}

.goal-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.goal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.goal-message {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.goal-message.complete {
    color: #d4af37;
    font-weight: 500;
}

/* ============================================
   STREAK DISPLAY
   ============================================ */

.streak-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.02));
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.streak-icon {
    font-size: 2rem;
}

.streak-content {
    flex: 1;
}

.streak-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    margin: 0;
}

.streak-message {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* ============================================
   CONTINUE LISTENING CARD
   ============================================ */

.continue-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03));
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.continue-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.continue-info {
    flex: 1;
    min-width: 0;
}

.continue-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d4af37;
    margin-bottom: 0.25rem;
}

.continue-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-meta {
    font-size: 0.8rem;
    color: #888;
}

.continue-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.continue-progress-fill {
    height: 100%;
    background: #d4af37;
    border-radius: 2px;
}

.continue-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0f;
    font-size: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.continue-play:hover {
    transform: scale(1.1);
}

/* ============================================
   PREMIUM LOCKED STATE
   ============================================ */

.locked-content-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: inherit;
    z-index: 5;
}

.locked-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.locked-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.locked-text {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 1rem;
    max-width: 200px;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0a0a0f;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
}

/* ============================================
   PREMIUM COMPARISON TABLE
   ============================================ */

.premium-comparison {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.premium-comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-comparison-header span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.premium-comparison-header span:nth-child(3) {
    color: #d4af37;
}

.premium-comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

.premium-comparison-row:last-child {
    border-bottom: none;
}

.comparison-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #fff;
}

.comparison-feature-icon {
    font-size: 1.1rem;
}

.comparison-free {
    font-size: 0.8rem;
    color: #666;
}

.comparison-premium {
    font-size: 0.8rem;
    color: #d4af37;
    font-weight: 500;
}

/* ============================================
   INSIGHT COMPARISON BADGE
   ============================================ */

.insight-comparison {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.insight-comparison.up {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.insight-comparison.down {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.insight-comparison.same {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

/* ============================================
   PREMIUM COMPARISON TABLE
   ============================================ */

.premium-comparison {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.premium-comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-comparison-header span:last-child {
    color: #d4af37;
}

.premium-comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.premium-comparison-row:last-child {
    border-bottom: none;
}

.premium-comparison-row:hover {
    background: rgba(212, 175, 55, 0.03);
}

.comparison-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #fff;
}

.comparison-feature-icon {
    font-size: 1.25rem;
}

.comparison-free {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.comparison-premium {
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: 500;
    text-align: center;
}

/* Locked Content Overlay */
.locked-content-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: inherit;
    z-index: 10;
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.locked-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.locked-text {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 1.25rem;
    max-width: 250px;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0a0a0f;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0a0a0f;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge i {
    font-size: 0.6rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .empty-state-modern {
        padding: 2rem 1rem;
        min-height: 240px;
    }
    
    .empty-state-modern .empty-icon {
        font-size: 3rem;
    }
    
    .toast-container {
        bottom: 80px;
    }
    
    .badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .premium-comparison-header,
    .premium-comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        padding: 0.75rem;
    }
    
    .comparison-feature {
        font-size: 0.8rem;
    }
}
