/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a1a2e;
    --accent: #c0392b;
    --text: #2c3e50;
    --light: #ecf0f1;
    --white: #fff;
    --border: #ddd;
    --gray: #7f8c8d;
    --bg: #f5f5f5;
    --font: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--primary); color: var(--white); border-bottom: 4px solid var(--accent); }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 10px; }
.logo { color: var(--white); font-size: 28px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-family: var(--sans); }
.logo:hover { text-decoration: none; color: var(--white); }
.header-search { display: flex; }
.header-search input { padding: 6px 12px; border: none; font-size: 14px; font-family: var(--sans); width: 220px; border-radius: 2px 0 0 2px; }
.header-search button { padding: 6px 12px; background: var(--accent); color: var(--white); border: none; cursor: pointer; font-size: 14px; border-radius: 0 2px 2px 0; }
.header-search button:hover { opacity: 0.9; }
.header-date { color: #95a5a6; font-size: 13px; font-family: var(--sans); }
.main-nav { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); padding: 0; overflow-x: auto; }
.main-nav a { color: #bdc3c7; font-size: 13px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 14px; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); text-decoration: none; }

/* Main content */
main { padding: 30px 0; }

/* Article list */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.article-item:first-child { padding-top: 0; }
.article-thumb { width: 200px; min-width: 200px; height: 130px; object-fit: cover; background: #ddd; }
.article-body { flex: 1; }
.article-category { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-family: var(--sans); font-weight: 700; }
.article-title { font-size: 20px; line-height: 1.3; margin: 4px 0 8px; }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--accent); text-decoration: none; }
.article-meta { font-size: 13px; color: var(--gray); font-family: var(--sans); margin-bottom: 6px; }
.article-excerpt { font-size: 15px; color: #555; line-height: 1.5; }

/* Featured/hero */
.hero-article { margin-bottom: 30px; border-bottom: 3px solid var(--primary); padding-bottom: 25px; }
.hero-article .article-title { font-size: 30px; }
.hero-article .article-thumb { width: 100%; height: 350px; margin-bottom: 15px; }
.hero-article .article-body { width: 100%; }

/* Single article */
.single-article { max-width: 760px; margin: 0 auto; }
.single-article h1 { font-size: 32px; line-height: 1.2; margin-bottom: 10px; }
.single-article .article-meta { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.single-article .article-content { font-size: 17px; line-height: 1.8; }
.single-article .article-content p { margin-bottom: 18px; }
.single-article .article-content h2, .single-article .article-content h3 { margin: 25px 0 12px; font-family: var(--sans); }
.single-article .article-content blockquote { border-left: 4px solid var(--accent); padding: 10px 20px; margin: 20px 0; background: var(--white); font-style: italic; }
.single-article .article-image { width: 100%; margin-bottom: 20px; }

/* Embeds */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 20px 0; background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.tweet-embed { margin: 20px auto; max-width: 550px; }
.tweet-embed blockquote { border: 1px solid var(--border); padding: 16px; border-radius: 8px; background: var(--white); }
.single-article .article-content figure { margin: 20px 0; text-align: center; }
.single-article .article-content figure img { border-radius: 4px; }
.instagram-media { margin: 20px auto !important; }

.article-tags { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border); font-family: var(--sans); font-size: 13px; }
.article-tags a { background: var(--light); padding: 3px 10px; margin: 2px; display: inline-block; color: var(--text); border-radius: 2px; }
.article-tags a:hover { background: var(--accent); color: var(--white); text-decoration: none; }

/* Schema breadcrumb */
.breadcrumb { font-size: 13px; font-family: var(--sans); color: var(--gray); margin-bottom: 15px; }
.breadcrumb a { color: var(--gray); }

/* Sidebar */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.sidebar { font-family: var(--sans); }
.sidebar-widget { background: var(--white); padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
.sidebar-widget h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 12px; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.sidebar-widget li:last-child { border: none; }
.sidebar-widget li a { color: var(--text); }
.trending-num { color: var(--accent); font-weight: 700; margin-right: 8px; }

/* Pagination */
.pagination { display: flex; gap: 5px; justify-content: center; padding: 30px 0; font-family: var(--sans); }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); color: var(--text); font-size: 14px; }
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination a:hover { background: var(--light); text-decoration: none; }

/* Category header */
.category-header { border-bottom: 3px solid var(--primary); padding-bottom: 10px; margin-bottom: 20px; }
.category-header h1 { font-size: 24px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 1px; }

/* Search */
.search-form { display: flex; margin-bottom: 20px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); font-size: 15px; font-family: var(--sans); }
.search-form button { padding: 10px 20px; background: var(--primary); color: var(--white); border: none; cursor: pointer; font-family: var(--sans); }

/* Footer */
.site-footer { background: var(--primary); color: #bdc3c7; padding: 40px 0 20px; margin-top: 40px; font-family: var(--sans); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.site-footer h4 { color: var(--white); margin-bottom: 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: #95a5a6; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; text-align: center; color: #7f8c8d; font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
    .content-layout { grid-template-columns: 1fr; }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; height: 180px; }
    .hero-article .article-title { font-size: 22px; }
    .hero-article .article-thumb { height: 200px; }
    .single-article h1 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-top { flex-direction: column; gap: 8px; align-items: center; }
    .header-search input { width: 180px; }
}

/* Admin */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 20px; }
.admin-nav { background: var(--primary); padding: 10px 20px; margin: -30px -20px 20px; }
.admin-nav a { color: #bdc3c7; margin-right: 15px; font-family: var(--sans); font-size: 14px; }
.admin-nav a:hover { color: var(--white); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border); font-size: 15px; font-family: var(--sans); }
.form-group textarea { min-height: 300px; font-family: var(--font); }
.btn { display: inline-block; padding: 10px 24px; background: var(--accent); color: var(--white); border: none; cursor: pointer; font-size: 14px; font-family: var(--sans); }
.btn:hover { opacity: 0.9; text-decoration: none; color: var(--white); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: #e74c3c; }
.btn-success { background: #27ae60; }
.table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.table th, .table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--light); font-weight: 600; }
.alert { padding: 12px 16px; margin-bottom: 15px; font-family: var(--sans); font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card { background: var(--white); padding: 20px; border: 1px solid var(--border); text-align: center; }
.stat-card .num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--gray); text-transform: uppercase; }
