/* Digital Library - Style.css */
/* 3S LAW VIETNAM */

:root {
    --primary-color: #2a9d8f;
    --primary-dark: #1f7a6f;
    --primary-light: #48c9b0;
    --accent-color: #264653;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
    --bg-light: #1a1a2e;
    --bg-gray: #16213e;
    --card-bg: #0f3460;
    --text-dark: #eaeaea;
    --text-muted: #a0a0a0;
    --text-light: #666;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="solarized"] {
    --bg-light: #fdf6e3;
    --bg-gray: #eee8d5;
    --card-bg: #fffcf5;
    --text-dark: #073642;
    --text-muted: #586e75;
    --text-light: #93a1a1;
}

[data-theme="3slaw"] {
    --primary-color: #B81C23;
    --primary-dark: #8B151A;
    --primary-light: #D6343B;
    --accent-color: #F6BD41;
    --bg-light: #ffffff;
    --bg-gray: #f4f4f4;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-muted: #2E2D2D;
    --text-light: #999999;
    --card-shadow: 0 4px 15px rgba(184, 28, 35, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background: var(--bg-light); color: var(--text-dark); line-height: 1.6; }

/* Header */
.header { background: var(--card-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-image { height: 120px; width: auto; transition: transform 0.3s; margin: -15px 0; }
.logo-image:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; transition: color 0.2s; }
.nav-link:hover { color: var(--primary-color); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-switcher { display: flex; gap: 0.25rem; background: var(--bg-gray); padding: 0.25rem; border-radius: 8px; }
.theme-btn { background: none; border: none; padding: 0.4rem 0.6rem; border-radius: 6px; cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }
.theme-btn.active { background: var(--primary-color); color: white; }
.action-link { padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.ai-btn { background: var(--primary-color); color: white; }
.ai-btn:hover { background: var(--primary-dark); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); padding: 3rem 2rem; position: relative; overflow: hidden; }
.hero-background { position: absolute; inset: 0; opacity: 0.1; }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-title { color: white; font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.search-box { display: flex; gap: 0.5rem; background: white; padding: 0.5rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); flex-wrap: wrap; }
.search-input { flex: 1; min-width: 200px; padding: 0.875rem 1.25rem; border: none; font-size: 1rem; outline: none; background: transparent; }
.search-category { padding: 0.875rem; border: 1px solid var(--bg-gray); border-radius: 8px; font-size: 0.9rem; background: var(--bg-light); cursor: pointer; }
.search-btn { padding: 0.875rem 2rem; background: var(--primary-color); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
.search-btn:hover { background: var(--primary-dark); }

/* Categories */
.categories { padding: 2rem; background: var(--bg-light); }
.categories-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; }
.category-card { background: var(--card-bg); border-radius: 12px; padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.3s; box-shadow: var(--card-shadow); }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.category-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; color: white; font-size: 1.5rem; }
.category-name { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); display: block; margin-bottom: 0.5rem; }
.category-count { background: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* Documents Section */
.documents-section { padding: 2rem; background: var(--bg-light); }
.documents-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .documents-container { grid-template-columns: 1fr; } }
.documents-column { background: var(--card-bg); border-radius: 12px; padding: 1.5rem; box-shadow: var(--card-shadow); }
.section-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.section-title i { color: var(--primary-color); }
.documents-list { display: flex; flex-direction: column; gap: 0.5rem; }
.document-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.document-item:hover { background: var(--bg-light); }
.document-number { width: 32px; height: 32px; background: var(--primary-color); color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; flex-shrink: 0; }
.document-title { font-size: 0.875rem; color: var(--text-dark); line-height: 1.4; }

/* Footer */
.footer { background: var(--accent-color); color: white; padding: 1.5rem 2rem; text-align: center; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer p { opacity: 0.8; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 768px) {
    .header-container { padding: 0.75rem 1rem; }
    .nav-links { display: none; }
    .hero { padding: 2rem 1rem; }
    .hero-title { font-size: 1.5rem; }
    .search-box { flex-direction: column; }
    .categories-container { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .category-card { padding: 1rem 0.5rem; }
    .category-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .category-name { font-size: 0.7rem; }
}
