/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Header === */
.site-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 2px solid #222;
    flex-wrap: wrap;
}
.site-logo { font-size: 18px; font-weight: 700; color: #222; }
.search-box { flex: 1; display: flex; gap: 4px; max-width: 400px; }
.search-box input { flex: 1; padding: 5px 8px; border: 1px solid #ccc; font-size: 14px; }
.search-box button { padding: 5px 12px; background: #0066cc; color: #fff; border: none; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: #0055aa; }
.top-nav { display: flex; gap: 12px; }
.top-nav a { font-size: 14px; }
.nav-disabled { color: #aaa; font-size: 14px; cursor: not-allowed; }

/* === Breadcrumb === */
.breadcrumb { padding: 8px 0; font-size: 12px; color: #666; }
.breadcrumb a { color: #0066cc; }
.breadcrumb span.sep { margin: 0 4px; color: #ccc; }

/* === Layout === */
.layout { display: flex; gap: 20px; padding: 12px 0; }
.sidebar { width: 200px; flex-shrink: 0; }
.main-content { flex: 1; min-width: 0; }

/* === Filters === */
.filters h4 { font-size: 13px; margin: 12px 0 4px; border-bottom: 1px solid #ddd; padding-bottom: 2px; }
.filters ul { list-style: none; }
.filters li { padding: 2px 0; font-size: 13px; }
.filters .count { color: #999; font-size: 12px; }

/* === Entry Cards === */
.entry-card { padding: 10px 0; border-bottom: 1px solid #eee; }
.entry-card h3 { font-size: 15px; margin-bottom: 2px; }
.entry-card h3 a { color: #0066cc; }
.entry-card .location { font-size: 12px; color: #666; }
.entry-card .description { font-size: 13px; color: #444; margin: 4px 0; }
.entry-card .entry-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.entry-card .view-link { font-size: 13px; font-weight: 500; }
.no-results { padding: 40px 0; text-align: center; color: #666; }

/* === Badges === */
.badge { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: #f0f0f0; color: #444; }
.badge-free { background: #e6f9e6; color: #2a7a2a; }
.badge-paid { background: #fef3e6; color: #946014; }
.badge-sponsored { background: #fff3cd; color: #856404; font-weight: 500; }

/* === Tables (licensing, salary) === */
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #ddd; }
th { background: #f5f5f5; font-weight: 600; }
tr:hover { background: #fafafa; }
th a { color: #0066cc; text-decoration: none; }

/* === Pagination === */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 20px 0; }
.pagination a, .pagination span { padding: 4px 10px; border: 1px solid #ddd; }
.pagination .current { background: #0066cc; color: #fff; border-color: #0066cc; }

/* === Detail Page === */
.detail-header { margin: 16px 0; }
.detail-header h1 { font-size: 24px; margin-bottom: 4px; }
.detail-header .type-badge { display: inline-block; font-size: 12px; padding: 2px 8px; background: #e8e8e8; border-radius: 3px; margin-bottom: 8px; }
.detail-attrs { margin: 16px 0; }
.detail-attrs dt { font-weight: 600; margin-top: 8px; font-size: 13px; }
.detail-attrs dd { margin-left: 0; font-size: 13px; color: #444; }
.visit-btn { display: inline-block; padding: 8px 16px; background: #0066cc; color: #fff; border-radius: 4px; font-weight: 500; margin: 12px 0; }
.visit-btn:hover { text-decoration: none; background: #0055aa; }
.related-entries { margin: 24px 0; }
.related-entries h3 { font-size: 16px; margin-bottom: 8px; }

/* === Stat Cards (salary) === */
.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
.stat-card { flex: 1; min-width: 150px; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.stat-card .stat-value { font-size: 22px; font-weight: 700; color: #222; }
.stat-card .stat-label { font-size: 12px; color: #666; text-transform: uppercase; }

/* === Guides === */
.guide-content { margin: 16px 0; line-height: 1.7; font-size: 15px; }
.guide-content h2 { margin: 16px 0 8px; }
.guide-content p { margin: 8px 0; }
.guide-content ul { margin: 8px 0 8px 20px; }

/* === Sort Bar === */
.sort-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; }
.sort-bar select { padding: 3px 6px; font-size: 13px; }

/* === Ads === */
.ad { margin: 12px 0; text-align: center; min-height: 60px; }
.ad-header { width: 728px; max-width: 100%; margin: 0 auto; }
.ad-sidebar { width: 300px; }
.ad-inline { width: 728px; max-width: 100%; }

/* === Footer === */
.site-footer { border-top: 1px solid #ddd; padding: 12px 0; font-size: 12px; color: #666; margin-top: 20px; }
.site-footer a { color: #0066cc; }

/* === Homepage === */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.home-card { padding: 16px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #222; }
.home-card:hover { text-decoration: none; border-color: #0066cc; background: #f8fbff; }
.home-card h3 { font-size: 16px; margin-bottom: 4px; }
.home-card .count { font-size: 13px; color: #666; }
.home-card.coming-soon { opacity: 0.5; cursor: not-allowed; }
.hero-search { text-align: center; padding: 32px 0; }
.hero-search h1 { font-size: 28px; margin-bottom: 12px; }
.hero-search form { display: flex; gap: 4px; max-width: 500px; margin: 0 auto; }
.hero-search input { flex: 1; padding: 10px 12px; border: 1px solid #ccc; font-size: 16px; }
.hero-search button { padding: 10px 20px; background: #0066cc; color: #fff; border: none; font-size: 16px; cursor: pointer; }

/* === Section === */
.section { margin: 16px 0; }
.section h2 { font-size: 18px; margin-bottom: 8px; }

/* === Responsive === */
@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .search-box { max-width: 100%; }
    .ad-header, .ad-inline { width: 100%; }
    .stat-cards { flex-direction: column; }
}
