/**
 * Stride Skeletons — loading states pentru liste/carduri AJAX.
 * Include prin <link rel="stylesheet"> sau copy in header CSS.
 */

/* Animatie shimmer */
@keyframes stride-shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.sk {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 100%
    );
    background-size: 1000px 100%;
    animation: stride-shimmer 1.5s infinite linear;
    border-radius: 8px;
    display: block;
}

/* Variante dimensiuni text */
.sk-text       { height: 14px; border-radius: 4px; }
.sk-text-sm    { height: 11px; border-radius: 3px; }
.sk-text-lg    { height: 18px; border-radius: 5px; }
.sk-title      { height: 22px; border-radius: 6px; }
.sk-subtitle   { height: 14px; border-radius: 4px; opacity: 0.7; }

/* Shape-uri */
.sk-avatar     { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.sk-avatar-sm  { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.sk-avatar-lg  { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.sk-icon       { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.sk-circle     { border-radius: 50%; }
.sk-square     { border-radius: 10px; }
.sk-card       { border-radius: 20px; }

/* Cardul de item lista (avatar + 2 linii text) */
.sk-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    margin-bottom: 8px;
}
.sk-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sk-row-body .sk-text { width: 60%; }
.sk-row-body .sk-text-sm { width: 40%; }

/* Cardul de meci */
.sk-match-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cardul notificare */
.sk-notif {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 4px;
}

/* Helper pentru liste */
.sk-list { display: flex; flex-direction: column; gap: 8px; }

/* Fadeout cand se inlocuieste cu content real */
.sk-container.loaded {
    animation: skFadeOut 0.3s ease forwards;
}
@keyframes skFadeOut {
    to { opacity: 0; }
}
