/* ============================================
   SKELETON LOADING SCREEN STYLES
   Numisma - Perceived Performance
   ============================================ */

/* Base skeleton overlay */
.skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.skeleton-overlay.skeleton-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Shimmer animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Skeleton element base */
.sk-el {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 4px;
}

.sk-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Layout containers */
.sk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sk-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

/* ---- SKELETON HEADER (common) ---- */
.sk-header {
    background: #721817;
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.sk-header-logo {
    width: 140px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.sk-header-nav {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.sk-header-nav-item {
    width: 70px;
    height: 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

/* ---- SKELETON MENU BAR ---- */
.sk-menubar {
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.sk-menu-item {
    width: 80px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 3px;
}

/* ---- SKELETON BREADCRUMB ---- */
.sk-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 8px;
}

.sk-breadcrumb-item {
    height: 10px;
    background: #e8e8e8;
    border-radius: 3px;
}

.sk-breadcrumb-sep {
    width: 6px;
    height: 10px;
    background: #ddd;
    border-radius: 2px;
}

/* ---- SKELETON TITLE ---- */
.sk-title {
    height: 28px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.sk-subtitle {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 3px;
}

/* ---- SKELETON TEXT LINES ---- */
.sk-text {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 3px;
}

.sk-text-sm {
    height: 10px;
    margin-bottom: 6px;
    border-radius: 2px;
}

/* ---- SKELETON IMAGE PLACEHOLDER ---- */
.sk-image {
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.sk-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

/* ---- SKELETON CARD ---- */
.sk-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sk-card-img {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    position: relative;
}

.sk-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.sk-card-body {
    padding: 12px;
}

.sk-card-title {
    height: 14px;
    width: 80%;
    margin-bottom: 8px;
    border-radius: 3px;
}

.sk-card-meta {
    height: 10px;
    width: 60%;
    margin-bottom: 6px;
    border-radius: 3px;
}

.sk-card-price {
    height: 16px;
    width: 40%;
    margin-top: 8px;
    border-radius: 3px;
}

/* ---- SKELETON SIDEBAR ---- */
.sk-sidebar {
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.sk-sidebar-title {
    height: 16px;
    width: 70%;
    margin-bottom: 14px;
    border-radius: 3px;
}

.sk-sidebar-item {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 3px;
}

/* ---- SKELETON TABLE ---- */
.sk-table {
    width: 100%;
    border-collapse: collapse;
}

.sk-table-header {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-bottom: 2px solid #e5e5e5;
    border-radius: 4px 4px 0 0;
    margin-bottom: 2px;
}

.sk-table-header-cell {
    height: 12px;
    background: #ddd;
    border-radius: 3px;
}

.sk-table-row {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sk-table-cell {
    height: 12px;
    border-radius: 3px;
}

/* ---- SKELETON STATS ---- */
.sk-stat-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.sk-stat-num {
    height: 28px;
    width: 60%;
    margin: 0 auto 8px;
    border-radius: 4px;
}

.sk-stat-label {
    height: 10px;
    width: 80%;
    margin: 0 auto;
    border-radius: 3px;
}

/* ---- SKELETON SEARCH BAR ---- */
.sk-search-bar {
    height: 44px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* ---- SKELETON FILTER CHIPS ---- */
.sk-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sk-filter-chip {
    height: 30px;
    border-radius: 15px;
    background: #f0f0f0;
}

/* ---- SKELETON PROFILE ---- */
.sk-avatar {
    border-radius: 50%;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.sk-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.sk-profile-banner {
    background: #f8f4f0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ---- SKELETON SLIDER ---- */
.sk-slider {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
}

.sk-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 6px;
}

/* ---- SKELETON COIN DETAIL ---- */
.sk-coin-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-coin-main-img {
    width: 100%;
    height: 280px;
    background: #f0f0f0;
    border-radius: 8px;
    position: relative;
}

.sk-coin-main-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 8px;
}

.sk-coin-thumbs {
    display: flex;
    gap: 8px;
}

.sk-coin-thumb {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
}

.sk-coin-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 4px;
}

.sk-detail-table {
    width: 100%;
}

.sk-detail-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.sk-detail-label {
    width: 35%;
    height: 12px;
    border-radius: 3px;
    margin-right: 10px;
}

.sk-detail-value {
    width: 55%;
    height: 12px;
    border-radius: 3px;
}

/* ---- SECTION TITLE ---- */
.sk-section-title {
    height: 22px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ---- EXHIBITION CARD ---- */
.sk-exhibition-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.sk-exhibition-date {
    height: 12px;
    width: 40%;
    margin-bottom: 10px;
    border-radius: 3px;
}

.sk-exhibition-title {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
    border-radius: 3px;
}

.sk-exhibition-location {
    height: 10px;
    width: 55%;
    margin-bottom: 6px;
    border-radius: 3px;
}

/* ---- BOOK / ACCESSORY CARD ---- */
.sk-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sk-product-img {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    position: relative;
}

.sk-product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.sk-product-body {
    padding: 14px;
}

/* ---- SWIPER CARDS (HOME) ---- */
.sk-swiper-container {
    display: flex;
    gap: 10px;
    overflow: hidden;
    padding: 10px 0;
}

.sk-swiper-slide {
    min-width: 180px;
    flex-shrink: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sk-header-nav {
        display: none;
    }
    
    .sk-coin-main-img {
        height: 200px;
    }
    
    .sk-slider {
        height: 140px;
    }
    
    .sk-swiper-slide {
        min-width: 140px;
    }
    
    .sk-card-img {
        height: 120px;
    }
    
    .sk-product-img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .sk-menubar {
        display: none;
    }
}
