/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #f8fafc; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: linear-gradient(135deg, #1e293b, #3b82f6); color: white; padding: 1rem 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 2rem; }
.logo-text h1 { font-size: 1.5rem; margin: 0; color: white; }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; }
.nav-menu a { color: white; font-weight: 500; }
.mobile-menu-btn { display: none; }

/* Main Content */
.main-content { padding: 2rem 0; min-height: 60vh; }

/* Hero */
.hero-section { text-align: center; padding: 3rem 1rem; background: white; border-radius: 1rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.hero-title { font-size: 2.5rem; color: #1e40af; margin-bottom: 1rem; }
.hero-description { font-size: 1.1rem; color: #64748b; max-width: 700px; margin: 0 auto 2rem; }

/* Search */
.search-section { max-width: 700px; margin: 0 auto 2rem; }
.search-form { display: flex; gap: 10px; margin-bottom: 1rem; }
.search-input { flex: 1; padding: 15px; border: 2px solid #e2e8f0; border-radius: 0.5rem; font-size: 1rem; }
.search-btn { padding: 15px 30px; background: #3b82f6; color: white; border: none; border-radius: 0.5rem; font-size: 1rem; cursor: pointer; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-link { background: #f1f5f9; padding: 8px 16px; border-radius: 20px; color: #475569; border: 1px solid #e2e8f0; }

/* Error Cards */
.errors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.error-card { background: white; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.error-category { background: #f1f5f9; color: #3b82f6; padding: 5px 10px; border-radius: 15px; font-size: 0.85rem; display: inline-block; margin-bottom: 1rem; }
.error-card h3 { margin-bottom: 0.5rem; color: #1e293b; }
.error-description { color: #64748b; font-size: 0.95rem; margin-bottom: 1rem; }
.error-meta { display: flex; justify-content: space-between; color: #94a3b8; font-size: 0.9rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; background: #3b82f6; color: white; border-radius: 0.5rem; font-weight: 500; border: none; cursor: pointer; }
.btn:hover { background: #2563eb; text-decoration: none; }

/* Footer */
.site-footer { background: #1e293b; color: white; padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-links { list-style: none; }
.footer-links a { color: #cbd5e1; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #334155; color: #94a3b8; font-size: 0.9rem; }

/* Error Detail */
.error-detail { background: white; padding: 2rem; border-radius: 0.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.error-meta-detail { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.meta-tag { background: #f1f5f9; padding: 5px 10px; border-radius: 15px; font-size: 0.9rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-input, .form-textarea { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 0.5rem; font-size: 1rem; }
.form-textarea { min-height: 150px; resize: vertical; }

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .nav-menu { flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
    .search-form { flex-direction: column; }
    .search-btn { width: 100%; }
    .errors-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}