/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-light: #fef2f2;
  --bg: #f1f5f9;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'Inter', sans-serif;
  --max-width: 1280px;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary: #f8fafc;
  --primary-light: #e2e8f0;
  --bg: #0f172a;
  --white: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --accent-light: #1c1517;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: var(--font); outline: none; border: none; }
button { cursor: pointer; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary);
  color: var(--bg);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--bg); opacity: 0.8; }
.top-bar a:hover { opacity: 1; color: var(--accent); }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-social { display: flex; gap: 10px; }
.top-social a { font-size: 14px; }

/* Breaking News Ticker */
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}
.ticker-label {
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.ticker {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker span { padding: 0 40px; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.logo span { color: var(--text); }

/* Header Search */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.header-search input:focus {
  border-color: var(--accent);
  background: var(--white);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.header-search button:hover { background: var(--accent-hover); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}
.header-btn:hover { background: var(--accent-light); color: var(--accent); }
.header-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-login {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-login:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== NAVIGATION ===== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-light);
}
.nav-list a i { font-size: 13px; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.active .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close {
  background: none;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 20px;
}
.mobile-nav-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: var(--accent-light);
  color: var(--accent);
}
.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* ===== HERO / FEATURED ===== */
.hero {
  padding: 24px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
}
.hero-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.hero-overlay h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.hero-overlay p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.75;
}
.hero-side {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 232px;
}
.hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-side .hero-overlay { padding: 20px; }
.hero-side .hero-overlay h2 { font-size: 18px; }

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { gap: 8px; }

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.articles-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.articles-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-img .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.card-img .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.card:hover .play-btn { background: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.card-body { padding: 16px; }
.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover .card-body h3 { color: var(--accent); }
.card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.card-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Horizontal Card */
.card-horizontal {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card-horizontal:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.card-horizontal .card-img {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}
.card-horizontal .card-body { padding: 0; flex: 1; }
.card-horizontal .card-body h3 { font-size: 15px; }
.card-number {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  padding: 30px 0;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget-title i { color: var(--accent); }
.trending-list { display: flex; flex-direction: column; gap: 16px; }
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trending-item .card-img {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}
.trending-item .card-body { padding: 0; }
.trending-item h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.trending-item:hover h4 { color: var(--accent); }

/* Tags Cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
  padding: 6px 14px;
  background: var(--bg);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.tag-link:hover { background: var(--accent); color: #fff; }

/* Social Widget */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.social-item:hover { transform: translateY(-2px); filter: brightness(1.1); }
.social-item i { font-size: 20px; }
.social-fb { background: #1877f2; }
.social-tw { background: #1da1f2; }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-yt { background: #ff0000; }

/* ===== SINGLE POST ===== */
.single-post { max-width: 100%; }
.single-header {
  margin-bottom: 24px;
}
.single-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.single-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.single-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.single-author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.single-featured {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.single-content p { margin-bottom: 20px; }
.single-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.single-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px;
}
.single-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 16px;
}
.single-content ul, .single-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.single-content li {
  margin-bottom: 8px;
  list-style: disc;
}
.single-content ol li { list-style: decimal; }
.single-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  margin: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-bar span { font-weight: 600; font-size: 14px; }
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-link { background: var(--text-muted); }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 30px 0;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Comments */
.comments-section { margin: 30px 0; }
.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.comment-name { font-weight: 600; font-size: 15px; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.comment-reply {
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  padding: 0;
}
.comment-reply:hover { text-decoration: underline; }

/* Related Posts */
.related-posts {
  margin: 40px 0;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.form-input:focus { border-color: var(--accent); background: var(--white); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 120px; resize: vertical; }
select.form-input { cursor: pointer; }
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .logo { justify-content: center; margin-bottom: 16px; }
.auth-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: var(--text-muted); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-auth { display: flex; flex-direction: column; gap: 10px; }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}
.btn-social:hover { border-color: var(--accent); background: var(--accent-light); }
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ===== SEARCH PAGE ===== */
.search-header {
  padding: 40px 0 20px;
  text-align: center;
}
.search-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.search-big {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-big input {
  width: 100%;
  padding: 16px 60px 16px 24px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.search-big input:focus { border-color: var(--accent); }
.search-big button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.search-results-info {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.search-results-info strong { color: var(--text); }

/* ===== VIDEO PAGE ===== */
.video-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  aspect-ratio: 16/9;
}
.video-featured img { width: 100%; height: 100%; object-fit: cover; }
.video-featured .play-btn {
  width: 70px;
  height: 70px;
  font-size: 24px;
}
.video-featured .hero-overlay h2 { font-size: 24px; }
.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== AUTHOR PAGE ===== */
.author-header-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}
.author-header-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  flex-shrink: 0;
}
.author-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.author-info .author-role { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.author-info p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.author-stats {
  display: flex;
  gap: 24px;
}
.author-stat {
  text-align: center;
}
.author-stat-num { font-size: 22px; font-weight: 700; color: var(--accent); }
.author-stat-label { font-size: 12px; color: var(--text-muted); }

/* ===== ARCHIVE PAGE ===== */
.archive-month {
  margin-bottom: 30px;
}
.archive-month-title {
  font-size: 18px;
  font-weight: 700;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== LANGUAGE PAGE ===== */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 30px 0;
}
.lang-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.lang-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.lang-card.active { border-color: var(--accent); background: var(--accent-light); }
.lang-flag { font-size: 48px; margin-bottom: 12px; }
.lang-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.lang-native { font-size: 13px; color: var(--text-muted); }

/* ===== POST NEWS PAGE ===== */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 2px solid var(--border);
  border-bottom: none;
  flex-wrap: wrap;
}
.editor-toolbar button {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.editor-toolbar button:hover { background: var(--white); color: var(--text); }
.editor-area {
  min-height: 300px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 15px;
  line-height: 1.7;
  background: var(--white);
  color: var(--text);
  resize: vertical;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: var(--bg);
  padding-top: 50px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about .logo { margin-bottom: 16px; }
.footer-about .logo-icon { background: var(--accent); }
.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--accent); padding-left: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.4s ease;
  min-width: 280px;
  border-left: 4px solid var(--accent);
}
.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: #ef4444; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
}
.no-results i { font-size: 64px; color: var(--border); margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 360px; grid-row: auto; }
  .hero-side { min-height: 220px; }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .author-header-card { flex-direction: column; text-align: center; }
  .author-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-search { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav { display: none; }
  .hero-main { min-height: 280px; }
  .hero-overlay h2 { font-size: 20px; }
  .hero-side .hero-overlay h2 { font-size: 16px; }
  .articles-grid,
  .articles-grid-2 { grid-template-columns: 1fr; }
  .articles-grid-4 { grid-template-columns: 1fr; }
  .single-title { font-size: 24px; }
  .single-content { font-size: 15px; }
  .share-bar { flex-wrap: wrap; }
  .author-box { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .search-header h1 { font-size: 22px; }
  .card-horizontal { flex-direction: column; }
  .card-horizontal .card-img { width: 100%; min-width: auto; aspect-ratio: 16/10; }
  .auth-card { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo { font-size: 22px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .hero-grid { gap: 12px; }
  .section-title { font-size: 17px; }
  .card-body h3 { font-size: 15px; }
  .lang-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 220px; }
  .pagination { gap: 4px; }
  .page-btn { width: 36px; height: 36px; font-size: 13px; }
}