/* ═══════════════════════════════════════════════════════════════════════════
   UNIVERSAL SKELETON LOADERS
   ═══════════════════════════════════════════════════════════════════════════ */

.loading-placeholder {
    padding: 16px;
}

/* Base skeleton with theme support */
.skeleton-item,
.skeleton-line,
.skeleton-circle,
.skeleton-rect {
    background: linear-gradient(90deg, 
        var(--skeleton-base, rgba(128, 128, 128, 0.1)) 25%, 
        var(--skeleton-shimmer, rgba(128, 128, 128, 0.2)) 50%, 
        var(--skeleton-base, rgba(128, 128, 128, 0.1)) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Dark theme skeletons */
[data-theme="dark"] .skeleton-item,
[data-theme="dark"] .skeleton-line,
[data-theme="dark"] .skeleton-circle,
[data-theme="dark"] .skeleton-rect {
    --skeleton-base: rgba(255, 255, 255, 0.05);
    --skeleton-shimmer: rgba(255, 255, 255, 0.1);
}

/* Light theme skeletons */
[data-theme="light"] .skeleton-item,
[data-theme="light"] .skeleton-line,
[data-theme="light"] .skeleton-circle,
[data-theme="light"] .skeleton-rect {
    --skeleton-base: rgba(0, 0, 0, 0.08);
    --skeleton-shimmer: rgba(0, 0, 0, 0.15);
}

.skeleton-item {
    height: 60px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 20px;
    margin-bottom: 8px;
}

.skeleton-circle {
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.skeleton-rect {
    width: 100%;
}

.skeleton-item:last-child,
.skeleton-line:last-child {
    margin-bottom: 0;
}

/* Skeleton variations */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.skeleton-stat-item {
    text-align: center;
}

/* Transaction skeleton */
.skeleton-transaction {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.skeleton-tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-tx-content {
    flex: 1;
}

.skeleton-tx-amount {
    width: 80px;
    height: 24px;
}

/* Profile skeleton */
.skeleton-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.skeleton-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.skeleton-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-profile-info {
    flex: 1;
}

.skeleton-profile-name {
    height: 24px;
    width: 150px;
    margin-bottom: 8px;
}

.skeleton-profile-level {
    height: 18px;
    width: 100px;
}

.skeleton-xp-bar {
    height: 8px;
    width: 100%;
    margin-bottom: 20px;
}

/* Analytics skeleton */
.skeleton-chart {
    height: 200px;
    width: 100%;
    border-radius: var(--radius-lg);
}

.skeleton-kpi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.skeleton-kpi-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 80px;
}

/* Category skeleton */
.skeleton-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.skeleton-category-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.skeleton-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-category-info {
    flex: 1;
}

.skeleton-category-name {
    height: 18px;
    width: 120px;
    margin-bottom: 6px;
}

.skeleton-category-bar {
    height: 6px;
    width: 100%;
}

.skeleton-category-amount {
    width: 80px;
    height: 20px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
