:root {
    --blue: #1e40af;
    --blue-light: #3b82f6;
    --blue-dark: #172554;
    --orange: #f97316;
    --orange-light: #fb923c;
    --orange-dark: #c2410c;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Top Bar */
.top-bar { background: var(--blue); color: white; font-size: 12px; padding: 6px 20px; }
.top-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; }
.top-bar span:last-child { color: #fdba74; font-style: italic; }

/* Header */
header { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text h1 { font-size: 18px; color: var(--blue); line-height: 1.1; }
.logo-text p { font-size: 11px; color: var(--orange); font-weight: 600; margin-top: -2px; }

nav { display: flex; gap: 4px; }
nav a { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text); transition: all 0.2s; }
nav a:hover { background: var(--bg-gray); color: var(--blue); }
nav a.active { background: #eff6ff; color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; transition: all 0.2s; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline { border: 1px solid var(--border); background: white; color: var(--text); }
.btn-outline:hover { background: var(--bg-gray); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #991b1b; }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.mobile-menu { display: none; background: white; border-top: 1px solid var(--border); padding: 10px 20px; }
.mobile-menu a { display: block; padding: 10px; border-radius: 6px; font-size: 14px; }
.mobile-menu a:hover { background: var(--bg-gray); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: white; padding: 50px 20px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 32px; margin-bottom: 12px; line-height: 1.2; }
.hero p { color: #dbeafe; font-size: 17px; margin-bottom: 16px; }
.hero-meta { display: flex; gap: 20px; font-size: 13px; color: #bfdbfe; margin-bottom: 20px; }
.hero-img { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.hero-img img { width: 100%; height: 280px; object-fit: cover; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-header h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.section-icon { padding: 8px; border-radius: 8px; }
.icon-blue { background: #eff6ff; color: var(--blue); }
.icon-orange { background: #fff7ed; color: var(--orange); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card-img { position: relative; height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-news { background: var(--blue); color: white; }
.badge-blog { background: var(--orange); color: white; }
.badge-featured { background: #eab308; color: white; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.card-body h3:hover { color: var(--blue); }
.card-body p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 12px; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }

/* Featured Grid */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }

/* Page Header */
.page-header { padding: 40px 20px; color: white; }
.page-header-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.page-header-orange { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); }
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: 32px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.page-header p { opacity: 0.9; max-width: 600px; }

/* Search */
.search-box { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; }
.search-box input { width: 100%; max-width: 400px; padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.search-box svg { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-light); }

/* Article Page */
.article-page { max-width: 800px; margin: 0 auto; padding: 30px 20px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }
.article-page h1 { font-size: 32px; margin-bottom: 12px; line-height: 1.3; }
.article-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.article-img { border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.article-img img { width: 100%; height: 350px; object-fit: cover; }
.article-excerpt { font-size: 18px; color: var(--text-light); margin-bottom: 20px; font-weight: 500; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--text); white-space: pre-line; }

/* Admin */
.admin-body { background: var(--bg-gray); min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--blue-dark); color: white; position: fixed; height: 100vh; padding: 20px; }
.admin-sidebar .logo { margin-bottom: 30px; }
.admin-sidebar .logo img { height: 50px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar a { padding: 12px 14px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #93c5fd; transition: all 0.2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: white; }
.admin-main { margin-left: 260px; padding: 30px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-header h1 { font-size: 24px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; border-radius: 10px; padding: 24px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon.blue { background: #eff6ff; color: var(--blue); }
.stat-icon.orange { background: #fff7ed; color: var(--orange); }
.stat-icon.green { background: #f0fdf4; color: #16a34a; }
.stat-icon.gray { background: #f3f4f6; color: #6b7280; }
.stat-info p:first-child { font-size: 28px; font-weight: 700; }
.stat-info p:last-child { font-size: 13px; color: var(--text-light); }

/* Table */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
th { text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); background: #fafafa; }
td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
tr:hover td { background: #fafafa; }
td a { color: var(--blue); font-weight: 500; }
td a:hover { text-decoration: underline; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-published { background: #f0fdf4; color: #16a34a; }
.status-draft { background: #f3f4f6; color: #6b7280; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Login */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: white; border-radius: 16px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-card .logo { justify-content: center; margin-bottom: 24px; }
.login-card h2 { text-align: center; font-size: 20px; margin-bottom: 8px; }
.login-card p { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.login-card .form-group input { padding: 12px 14px; }
.login-card button { width: 100%; padding: 12px; font-size: 15px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Empty State */
.empty { text-align: center; padding: 60px 20px; }
.empty svg { width: 48px; height: 48px; color: #d1d5db; margin-bottom: 16px; }
.empty p { color: var(--text-light); font-size: 16px; }

/* Footer */
footer { background: var(--blue-dark); color: white; padding: 50px 20px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer .logo img { height: 50px; }
footer h3 { font-size: 18px; margin-bottom: 12px; }
footer p, footer a { color: #93c5fd; font-size: 14px; line-height: 1.7; }
footer a:hover { color: var(--orange-light); }
footer .tagline { color: var(--orange-light); font-style: italic; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 20px; text-align: center; font-size: 13px; color: #93c5fd; }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    nav { display: none; }
    .mobile-toggle { display: block; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 24px; }
    .article-page h1 { font-size: 24px; }
}
