/* ============================
   TecnoBlog.ar — Main Stylesheet
   ============================ */

:root {
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ============================
   HEADER / NAV
   ============================ */

.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.site-logo .logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.site-logo .logo-text span {
  color: var(--accent);
}

.site-logo .logo-tag {
  font-size: .7rem;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

nav.main-nav a {
  color: #cbd5e1;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.2);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: .3rem .75rem; font-size: .8rem; }

.user-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #cbd5e1;
  font-size: .85rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

.avatar-lg {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

/* ============================
   NAV SEARCH
   ============================ */

.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;
  transition: background .2s, border-color .2s;
  flex: 1;
  max-width: 280px;
}

.nav-search:focus-within {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}

.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: .4rem .75rem;
  font-size: .85rem;
  color: #fff;
  font-family: var(--font);
  min-width: 0;
}

.nav-search-input::placeholder { color: #94a3b8; }

.nav-search-input::-webkit-search-cancel-button { display: none; }

.nav-search-btn {
  background: transparent;
  border: none;
  padding: .4rem .65rem;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.nav-search-btn:hover { color: #fff; }

/* ============================
   SEARCH RESULTS PAGE
   ============================ */

.search-header {
  margin-bottom: 1.75rem;
}

.search-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .3rem;
}

.search-header p {
  font-size: .9rem;
  color: var(--text-muted);
}

.search-header strong { color: var(--primary); }

.search-bar-page {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
}

.search-bar-page input {
  flex: 1;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
}

.search-bar-page input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.search-result {
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: box-shadow .2s, transform .2s;
}

.search-result:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.search-result-thumb {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.search-result-thumb-placeholder {
  width: 100px;
  height: 72px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 1.5rem;
}

.search-result-body { flex: 1; min-width: 0; }

.search-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .3rem;
  line-height: 1.4;
}

.search-result-title a { color: inherit; }
.search-result-title a:hover { color: var(--accent); }

.search-result-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-excerpt mark {
  background: #fef08a;
  color: var(--primary);
  border-radius: 2px;
  padding: 0 2px;
}

.search-result-meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: .4rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.no-results .icon { font-size: 2.5rem; margin-bottom: .75rem; }
.no-results p { font-size: .95rem; }

/* ============================
   LAYOUT
   ============================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* ============================
   HERO (home)
   ============================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  padding: 3rem 0 2.5rem;
  color: #fff;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.5px;
}

.hero p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 540px;
}

/* ============================
   ARTICLE CARDS
   ============================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.card-thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e293b 0%, #0f4c75 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 3rem;
}

.card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.card-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--accent);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-date {
  font-size: .78rem;
  color: var(--text-light);
}

.read-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.read-more::after { content: '→'; }
.read-more:hover { color: var(--accent-hover); }

/* ============================
   ARTICLE PAGE
   ============================ */

.article-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-body {
  padding: 2rem 2.5rem 2.5rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-light); }

/* Article typography */
.article-content header { margin-bottom: 2rem; }

.article-content header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary);
  letter-spacing: -.5px;
  margin-bottom: 1rem;
}

.article-content header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.article-content section {
  margin-bottom: 2rem;
}

.article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .9rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--accent-light);
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.article-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .975rem;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { color: var(--accent-hover); }

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: .4rem;
  font-size: .975rem;
  line-height: 1.7;
  color: var(--text);
}

.article-content strong { font-weight: 700; color: var(--primary); }

.article-content figure {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-content figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-content figcaption {
  font-size: .8rem;
  color: var(--text-muted);
  padding: .6rem .9rem;
  background: var(--bg);
  text-align: center;
  font-style: italic;
}

.article-content code {
  font-family: var(--font-mono);
  background: #f1f5f9;
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .875em;
  color: #0f4c75;
}

.article-content pre {
  background: var(--primary);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ============================
   SIDEBAR
   ============================ */

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.widget-header {
  background: var(--primary);
  color: #fff;
  padding: .8rem 1.2rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.widget-body { padding: 1rem 1.2rem; }

.recent-list { list-style: none; }
.recent-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.recent-list li:last-child { border-bottom: none; padding-bottom: 0; }

.recent-list a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-list a:hover { color: var(--accent); }
.recent-list .recent-date { font-size: .73rem; color: var(--text-light); margin-top: .15rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
}
.tag:hover { background: var(--accent); color: #fff; }

/* ============================
   COMMENTS
   ============================ */

.comments-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.comments-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.comments-title .count {
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 20px;
}

.comment-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }

.comment {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.comment-body { flex: 1; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
}

.comment-date {
  font-size: .77rem;
  color: var(--text-light);
}

.comment-text {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text);
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 10px;
  border: 1px dashed var(--border);
  font-size: .9rem;
}

/* Comment form */
.comment-form-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.comment-form-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.login-prompt {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.login-prompt a { font-weight: 600; }

/* ============================
   FORMS
   ============================ */

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .9rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-submit { margin-top: 1.25rem; }

.form-submit .btn {
  padding: .6rem 1.5rem;
  font-size: .9rem;
}

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .4rem;
}

.auth-card .auth-subtitle {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: .7rem;
  font-size: .95rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: .8rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.alert-error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* ============================
   FOOTER
   ============================ */

.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo span { color: var(--accent); }

.footer-copy { font-size: .82rem; }

.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .82rem; color: #94a3b8; transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* ============================
   UTILITIES
   ============================ */

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: .95rem; }

/* ============================
   BANNERS ROTATIVOS
   ============================ */

.banner-rotator {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: .6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.banner-dot.active,
.banner-dot:hover {
  background: var(--accent);
  transform: scale(1.2);
}

/* Admin banners */
.banner-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.banner-table th,
.banner-table td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--border); }
.banner-table th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.banner-table tr:last-child td { border-bottom: none; }
.banner-table tr:hover td { background: var(--bg); }
.banner-thumb { width: 80px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.banner-status { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.banner-status.on  { background: #f0fdf4; color: #16a34a; }
.banner-status.off { background: #f1f5f9; color: #94a3b8; }

/* ============================
   PAGINACIÓN
   ============================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-btn {
  padding: .45rem 1rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.page-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn-disabled { color: var(--text-light); cursor: default; pointer-events: none; }

.page-numbers {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}

.page-num {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.page-num:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.page-num-active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }

.page-ellipsis { color: var(--text-light); padding: 0 .2rem; font-size: .875rem; }

@media (max-width: 480px) {
  .page-numbers { display: none; }
  .pagination { justify-content: space-between; }
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-body { padding: 1.25rem; }
  .article-content header h1 { font-size: 1.4rem; }
  .nav-label { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
