/* assets/css/skeleton.css */
/* Version: 1.1.0 - Skeleton Screen cho toàn bộ website Bitcoin PeakDip */

/* ===== SKELETON WRAPPER ===== */
.skeleton-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050811 0%, #0a0e17 100%);
    z-index: 9999;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* ===== SHIMMER ANIMATION ===== */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(30, 35, 50, 0.6) 25%, 
        rgba(50, 55, 70, 0.8) 50%, 
        rgba(30, 35, 50, 0.6) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

/* ===== NAVIGATION ===== */
.skeleton-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-logo {
    width: 180px;
    height: 36px;
    background: linear-gradient(90deg, #00d4ff, #f7931a);
    border-radius: 8px;
    opacity: 0.5;
}

.skeleton-nav-links {
    display: flex;
    gap: 30px;
}

.skeleton-nav-link {
    width: 70px;
    height: 24px;
}

/* ===== CONTENT CONTAINER ===== */
.skeleton-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

/* ===== HERO SECTION ===== */
.skeleton-hero {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.skeleton-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.skeleton-hero-title {
    width: 60%;
    height: 48px;
    margin: 0 auto 15px;
}

.skeleton-hero-subtitle {
    width: 40%;
    height: 24px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.skeleton-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.skeleton-feature-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    height: 250px;
}

.skeleton-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.skeleton-feature-title {
    width: 70%;
    height: 28px;
    margin: 0 auto 15px;
}

.skeleton-feature-desc {
    width: 90%;
    height: 16px;
    margin: 10px auto;
}

/* ===== PROBLEM BLOCK ===== */
.skeleton-problem {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 28px;
    padding: 30px;
    margin: 40px 0;
    min-height: 450px;
}

.skeleton-problem-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-tab {
    width: 120px;
    height: 48px;
    border-radius: 12px;
}

.skeleton-problem-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 20px auto;
}

.skeleton-problem-title {
    width: 40%;
    height: 28px;
    margin: 15px auto;
}

.skeleton-problem-desc {
    width: 70%;
    height: 18px;
    margin: 10px auto;
}

/* ===== LEARN CARD ===== */
.skeleton-learn-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 28px;
    padding: 30px;
    margin: 40px 0;
    min-height: 550px;
}

.skeleton-flag-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-flag {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.skeleton-search-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.skeleton-search {
    width: 280px;
    height: 44px;
    border-radius: 30px;
}

.skeleton-filter-group {
    display: flex;
    gap: 10px;
}

.skeleton-filter {
    width: 100px;
    height: 40px;
    border-radius: 30px;
}

.skeleton-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skeleton-article-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    height: 220px;
}

.skeleton-article-thumb {
    width: 100%;
    height: 120px;
    border-radius: 16px;
    margin-bottom: 15px;
}

.skeleton-article-title {
    width: 80%;
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-article-meta {
    width: 60%;
    height: 16px;
}

/* ===== ARTICLE PAGE ===== */
.skeleton-article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-article-title {
    width: 70%;
    height: 48px;
    margin: 0 auto 20px;
}

.skeleton-article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.skeleton-article-meta-item {
    width: 100px;
    height: 20px;
}

.skeleton-article-body {
    display: flex;
    gap: 30px;
}

.skeleton-article-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.skeleton-toc {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.skeleton-toc-header {
    width: 60%;
    height: 24px;
    margin-bottom: 20px;
}

.skeleton-toc-item {
    height: 16px;
    margin: 12px 0;
}

.skeleton-toc-item:nth-child(2) { width: 90%; }
.skeleton-toc-item:nth-child(3) { width: 85%; }
.skeleton-toc-item:nth-child(4) { width: 80%; }
.skeleton-toc-item:nth-child(5) { width: 75%; }
.skeleton-toc-item:nth-child(6) { width: 70%; }

.skeleton-article-main {
    flex: 1;
}

.skeleton-paragraph {
    height: 16px;
    margin: 15px 0;
}

.skeleton-paragraph:nth-child(1) { width: 100%; }
.skeleton-paragraph:nth-child(2) { width: 95%; }
.skeleton-paragraph:nth-child(3) { width: 98%; }
.skeleton-paragraph:nth-child(4) { width: 85%; }
.skeleton-paragraph:nth-child(5) { width: 90%; }

.skeleton-heading {
    height: 32px;
    width: 50%;
    margin: 30px 0 20px;
}

/* ===== SIGNALS PAGE ===== */
.skeleton-signals-header {
    text-align: center;
    margin: 100px 0 40px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.skeleton-signals-title {
    width: 50%;
    height: 48px;
    margin: 0 auto 15px;
}

.skeleton-signals-subtitle {
    width: 35%;
    height: 24px;
    margin: 0 auto;
}

.skeleton-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.skeleton-stat-card {
    flex: 1;
    height: 80px;
    border-radius: 16px;
}

.skeleton-chart {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
}

.skeleton-chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.skeleton-chart-title {
    width: 200px;
    height: 28px;
}

.skeleton-chart-controls {
    display: flex;
    gap: 10px;
}

.skeleton-chart-btn {
    width: 60px;
    height: 36px;
    border-radius: 8px;
}

.skeleton-chart-area {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.skeleton-table-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 30px 0;
}

.skeleton-table-header {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.skeleton-table-col {
    height: 20px;
    flex: 1;
}

.skeleton-table-row {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

/* ===== ABOUT & PRODUCT PAGES ===== */
.skeleton-about-header,
.skeleton-product-header {
    text-align: center;
    margin: 100px 0 40px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.skeleton-about-title,
.skeleton-product-title {
    width: 40%;
    height: 48px;
    margin: 0 auto 15px;
}

.skeleton-about-subtitle,
.skeleton-product-subtitle {
    width: 50%;
    height: 24px;
    margin: 0 auto;
}

.skeleton-about-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.skeleton-strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.skeleton-strategy-card {
    height: 280px;
    border-radius: 16px;
}

/* ===== READING LIST ===== */
.skeleton-reading-header {
    text-align: center;
    margin: 100px 0 40px;
    padding: 30px;
}

.skeleton-reading-title {
    width: 40%;
    height: 48px;
    margin: 0 auto 15px;
}

.skeleton-reading-subtitle {
    width: 30%;
    height: 24px;
    margin: 0 auto;
}

.skeleton-reading-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.skeleton-reading-item {
    height: 120px;
    border-radius: 20px;
}

/* ===== LANGUAGE PAGE ===== */
.skeleton-language-header {
    text-align: center;
    margin: 100px 0 40px;
}

.skeleton-language-title {
    width: 40%;
    height: 48px;
    margin: 0 auto 20px;
}

.skeleton-language-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.skeleton-language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

/* ===== LEGAL PAGES ===== */
.skeleton-legal-header {
    text-align: center;
    margin: 100px 0 40px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.skeleton-legal-title {
    width: 35%;
    height: 48px;
    margin: 0 auto 15px;
}

.skeleton-legal-subtitle {
    width: 45%;
    height: 24px;
    margin: 0 auto;
}

.skeleton-legal-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

/* ===== FOOTER ===== */
.skeleton-footer {
    margin-top: 60px;
    padding: 40px 20px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.skeleton-footer-brand {
    width: 200px;
    height: 28px;
    margin: 0 auto 15px;
}

.skeleton-footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.skeleton-footer-link {
    width: 80px;
    height: 20px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
    .skeleton-strategies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .skeleton-nav-links {
        display: none;
    }
    
    .skeleton-hero {
        padding: 30px 20px;
    }
    
    .skeleton-hero-title {
        width: 80%;
        height: 36px;
    }
    
    .skeleton-hero-subtitle {
        width: 70%;
    }
    
    .skeleton-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-article-body {
        flex-direction: column;
    }
    
    .skeleton-article-sidebar {
        width: 100%;
    }
    
    .skeleton-signals-title {
        width: 80%;
    }
    
    .skeleton-stats-row {
        flex-wrap: wrap;
    }
    
    .skeleton-stat-card {
        min-width: calc(50% - 10px);
    }
    
    .skeleton-language-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skeleton-hero-title {
        width: 90%;
        height: 30px;
    }
    
    .skeleton-feature-card {
        height: 220px;
    }
    
    .skeleton-stat-card {
        min-width: 100%;
    }
    
    .skeleton-chart-btn {
        width: 45px;
    }
    
    .skeleton-table-header,
    .skeleton-table-row {
        min-width: 600px;
    }
    
    .skeleton-table-container {
        overflow-x: auto;
    }
}

/* ===== DARK MODE ADAPTATION ===== */
@media (prefers-color-scheme: light) {
    .skeleton-wrapper {
        background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    }
    
    .skeleton-shimmer {
        background: linear-gradient(90deg, 
            rgba(200, 205, 220, 0.6) 25%, 
            rgba(220, 225, 240, 0.8) 50%, 
            rgba(200, 205, 220, 0.6) 75%);
    }
}