:root{
  --bg:#f5f7fb; --card:#fff; --text:#0b1220; --muted:#6b7280; --accent:#0073ff;
  --shadow:0 6px 18px rgba(11,18,32,0.08); --active-bg:#eaf2ff;
}
/* ============================================================
   BASE LAYOUT
============================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.wrap {
    width: 100%;
    max-width: 920px;
    text-align: center;
}

h1{margin:0 0 8px;font-size:28px}
.hint{color:var(--muted); margin-bottom:18px}
.search-row{ width:100%; max-width:700px; margin:0 auto; display:flex; gap:10px; align-items:center; justify-content:center; }
.input-wrap { position:relative; flex:1; }
.search-input{ width:100%; padding:14px 14px 14px 14px; font-size:18px; border-radius:10px; border:1px solid #d1d5db; background:var(--card); color:var(--text); box-shadow:var(--shadow); }
.btn{ padding:12px 16px; background:var(--accent); color:#fff; border-radius:10px; border:none; font-weight:600; cursor:pointer; }
.recent-row{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:14px }
.recent-chip{ background:var(--card); padding:6px 10px; border-radius:40px; border:1px solid #e6e9ef; color:var(--muted); cursor:pointer; }
/* =========================================
   Global top progress bar (used by app.js)
========================================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(
    90deg,
    #2563eb,
    #22c55e
  );
  z-index: 99999;
  display: none;
  transition: width 0.35s ease;
}

.mark{ background:#ffd54d; color:inherit; padding:0 2px; border-radius:2px; }
@media (max-width:640px){ .search-row{ max-width:92%; gap:8px; } }
.lang-wrap select {
  height: 42px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  margin-right: 8px;
}
.search-bar {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.lang-select {
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}

/* ============================================================
   HEADER STYLES
============================================================ */
.site-header {
    background: linear-gradient(135deg, #1a2332 0%, #2a3a4a 100%);
    color: #ffffff;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 3px solid #1a73e8;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 10px;
}

.logo-text {
    color: #ffffff;
}

.logo-highlight {
    color: #4fc3f7;
    margin-left: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-list li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.lang-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #2a3a4a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    min-width: 160px;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-dropdown.open {
    display: block;
}

.lang-item {
    display: block;
    padding: 10px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lang-item:last-child {
    border-bottom: none;
}

.lang-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.lang-item.active {
    background: #1a73e8;
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a2332;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.open {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.mobile-nav-list li a:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.mobile-lang-divider {
    padding: 14px 16px 8px 16px;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-lang-item {
    display: block;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mobile-lang-item.active {
    background: rgba(26,115,232,0.3);
    color: #4fc3f7;
}

/* ============================================================
   FOOTER STYLES
============================================================ */
.site-footer {
    background: #0d1a26;
    color: #b0bec5;
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 3px solid #1a73e8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #90a4ae;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links li a {
    color: #90a4ae;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #78909c;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #546e7a;
    text-align: center;
    max-width: 700px;
    line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-container {
        height: 60px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        font-size: 1.4rem;
    }
    
    .lang-toggle span:not(.lang-arrow) {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 12px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}