/* Auto-extracted from page-badges.php (P1-5) */
/* ============================================================
   Badges Page — My Badges
   ============================================================ */
.badges-page {
    --badges-gold: #fbbf24;
    --badges-gold-light: #fef3c7;
    --badges-green: #22c55e;
    --badges-blue: #3b82f6;
    --badges-locked: #e5e7eb;
}

.badges-header {
    margin-bottom: 24px;
}
.badges-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.badges-title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.badges-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}
.badges-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.badges-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 560px) {
    .badges-summary { grid-template-columns: 1fr; }
}
.badges-summary-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.badges-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.badges-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.badges-summary-icon.earned { background: #dcfce7; }
.badges-summary-icon.locked { background: #f3f4f6; }
.badges-summary-icon.xp     { background: #fef3c7; }
.badges-summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
}
.badges-summary-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
}

.badges-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.badges-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.badges-tab:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #1f2937;
}
.badges-tab.active {
    background: var(--badges-green);
    color: #fff;
    border-color: var(--badges-green);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 1100px) { .badges-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .badges-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .badges-grid { grid-template-columns: 1fr; } }

.badges-card {
    position: relative;
    border-radius: 20px;
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 2px solid transparent;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.badges-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.badges-card.earned {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
}
.badges-card.locked {
    background: #fff;
    border-color: #f3f4f6;
}

.badges-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 999px;
}
.badges-status.earned {
    background: var(--badges-green);
    color: #fff;
}
.badges-status.locked {
    display: none;
}

.badges-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    position: relative;
    transition: transform 0.3s ease;
}
.badges-card:hover .badges-icon-wrap { transform: scale(1.08); }
.badges-card.earned .badges-icon-wrap {
    background: #fff;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}
.badges-card.locked .badges-icon-wrap {
    background: #f3f4f6;
    color: #9ca3af;
}

.badges-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px 0;
}
.badges-card.locked .badges-name {
    color: #4b5563;
}
.badges-desc {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 14px 0;
    min-height: 2.4em;
    line-height: 1.4;
}
.badges-card.locked .badges-desc {
    color: #9ca3af;
}

.badges-xp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 10px;
}
.badges-card.locked .badges-xp {
    color: #d1d5db;
}
.badges-earned-date {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 10px;
}

.badges-progress {
    margin-top: 4px;
}
.badges-progress-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.badges-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badges-progress-text {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 700;
}

.badges-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: #f9fafb;
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
    color: #6b7280;
}
.badges-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
}
.badges-empty h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
}

.badges-login-prompt {
    text-align: center;
    padding: 80px 20px;
}
.badges-login-prompt .mascot {
    font-size: 4.5rem;
    margin-bottom: 18px;
}
.badges-login-prompt h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1f2937;
}
.badges-login-prompt p {
    color: #6b7280;
    margin-bottom: 22px;
    font-size: 0.95rem;
}
