/* ========================================
   TaiFileMau - Main Styles
   Custom CSS bổ sung ngoài Tailwind
   ======================================== */

/* ===== SEO DESCRIPTION (Archive) ===== */
.seo-description-collapsed {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.seo-description-wrapper .prose img {
    border-radius: 12px;
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}
.seo-description-wrapper .prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.seo-description-wrapper .prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.seo-description-wrapper .prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.seo-description-wrapper .prose p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== FILE CARDS ===== */
.file-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HERO ===== */
.hero-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #1E40AF 100%);
}

/* ===== PAGINATION (WordPress native) ===== */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
.page-numbers.current {
    background: #2563EB;
    color: #fff;
    border-color: #2563EB;
}
.page-numbers .prev,
.page-numbers .next {
    padding: 0 10px;
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563EB;
    color: #fff;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}
.load-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== SIDEBAR WIDGET ===== */
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}
.sidebar-widget ul li:last-child {
    border-bottom: none;
}
.sidebar-widget ul li a {
    color: #4b5563;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.sidebar-widget ul li a:hover {
    color: #2563EB;
}

/* ===== TAGS ===== */
.tag-cloud-link {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin: 2px;
    transition: all 0.2s;
}
.tag-cloud-link:hover {
    background: #2563EB;
    color: #fff;
}

/* ===== CKEDITOR / WP CONTENT ===== */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.entry-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.entry-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.entry-content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.file-card {
    animation: fadeInUp 0.4s ease forwards;
}
.file-card:nth-child(2) { animation-delay: 0.05s; }
.file-card:nth-child(3) { animation-delay: 0.1s; }
.file-card:nth-child(4) { animation-delay: 0.15s; }
.file-card:nth-child(5) { animation-delay: 0.2s; }
.file-card:nth-child(6) { animation-delay: 0.25s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
}

/* ===== PRINT ===== */
@media print {
    header, footer, .sidebar, .download-btn {
        display: none !important;
    }
    body {
        background: #fff !important;
    }
}
