/* ── Gamification Styles ── */

/* Strip Widget (Inline in Stats-Strip) */
.gp-strip-item {
    gap: 0.35rem;
}

.gp-xp-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-xp-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.gp-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.gp-xp-value {
    font-size: 0.8rem !important;
    font-variant-numeric: tabular-nums;
}

/* XP Toast (Popup nach Bewertung) */
.gp-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: var(--tb-bg-primary, #fff);
    border: 1px solid var(--tb-border-color, #e2e8f0);
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    max-width: 340px;
    animation: gp-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-display, 'Sora', sans-serif);
}

@keyframes gp-toast-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gp-toast-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.25rem;
    font-size: 1.05rem;
}

.gp-toast-body {
    padding: 0.25rem 1rem 0.5rem;
}

.gp-toast-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0;
    font-size: 0.85rem;
}

.gp-toast-reason {
    color: var(--tb-text-secondary, #4a5568);
}

.gp-toast-amount {
    font-weight: 600;
    color: #10b981;
    font-variant-numeric: tabular-nums;
}

.gp-toast-levelup {
    color: var(--tb-accent-primary, #754ffe) !important;
    font-weight: 700;
}

.gp-toast-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--tb-border-color, #e2e8f0);
    font-size: 0.75rem;
    color: var(--tb-text-muted, #718096);
}

/* Dashboard Cards */
.gp-card {
    border-radius: 14px;
    border: 1px solid var(--tb-border-color, #e2e8f0);
    transition: box-shadow 0.2s ease;
}

.gp-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gp-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--tb-accent-primary, #754ffe), #9d7dfe);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display, 'Sora', sans-serif);
    box-shadow: 0 4px 12px rgba(117, 79, 254, 0.3);
}

/* Progress Bars */
.gp-progress-lg {
    height: 10px;
    background: var(--tb-bg-tertiary, #f1f3f5);
    border-radius: 5px;
    overflow: hidden;
}

.gp-progress-lg-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tb-accent-primary, #754ffe), #9d7dfe);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.gp-progress-sm {
    height: 4px;
    background: var(--tb-bg-tertiary, #f1f3f5);
    border-radius: 2px;
    overflow: hidden;
}

.gp-progress-sm-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Auto-dismiss Toast */
.gp-toast[data-auto-dismiss] {
    animation: gp-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
               gp-toast-out 0.3s ease forwards;
    animation-delay: 0s, 5s;
}

@keyframes gp-toast-out {
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}
