/* Elite Ads CMS — Public Theme v1.0.0
   Developed by Svounk | svounk.com
   Dark / Minimal / Editorial */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:      #080808;
  --surface: #0f0f0f;
  --border:  #1e1e1e;
  --border2: #2a2a2a;
  --text:    #e4e4e4;
  --muted:   #666;
  --accent:  #ffffff;
  --mono:    'Space Mono', monospace;
  --sans:    'DM Sans', sans-serif;
  --max-w:   1120px;
  --prose-w: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 2px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

/* ─── HERO ─── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--accent);
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .15s;
  border-radius: 1px;
}
.hero-cta:hover { background: #d4d4d4; }

/* ─── SECTIONS ─── */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── ARTICLE GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

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

.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card-img img { transform: scale(1.04); }

.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.article-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  border: 1px solid var(--border2);
  padding: 2px 8px;
  border-radius: 20px;
}
.article-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.article-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text);
  transition: color .15s;
}
.article-card:hover .article-title { color: var(--accent); }

.article-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-read {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.article-card:hover .article-read { color: var(--accent); }

/* ─── FEATURED ARTICLE ─── */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 32px;
}

.article-featured .feat-img {
  aspect-ratio: auto;
  min-height: 360px;
  overflow: hidden;
  background: var(--border);
}
.article-featured .feat-img img { width: 100%; height: 100%; object-fit: cover; }

.article-featured .feat-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feat-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--accent);
}

.feat-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ─── SINGLE ARTICLE ─── */
.article-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }

.article-h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--accent);
  max-width: var(--prose-w);
  margin-bottom: 20px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.byline-avatar {
  width: 36px; height: 36px;
  background: var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.byline-name { font-size: 13px; font-weight: 500; }
.byline-date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.byline-views { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }

.article-featured-img {
  margin: 40px 0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }

/* ─── PROSE ─── */
.prose {
  max-width: var(--prose-w);
  margin: 48px auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 600;
  letter-spacing: -.5px;
  margin: 36px 0 16px;
  color: var(--accent);
  line-height: 1.25;
}
.prose h1 { font-size: 32px; }
.prose h2 { font-size: 24px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.prose h3 { font-size: 19px; }
.prose h4 { font-size: 16px; color: var(--text); }

.prose p { margin-bottom: 20px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: .7; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 28px 0;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
}

.prose code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 2px;
  color: #e0e0e0;
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 2px;
  overflow-x: auto;
  margin: 24px 0;
}
.prose pre code { background: none; border: none; padding: 0; }

.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: 2px; margin: 24px 0; border: 1px solid var(--border); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.prose strong { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th { background: var(--surface); border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.prose td { border: 1px solid var(--border); padding: 10px 14px; }

/* ─── TAGS ─── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 4px 10px;
  border-radius: 20px;
  transition: .15s;
  text-transform: uppercase;
}
.tag:hover { color: var(--text); border-color: var(--text); }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 1px solid var(--border2);
  color: var(--muted);
  transition: .15s;
  border-radius: 1px;
}
.page-btn:hover { color: var(--text); border-color: var(--text); }
.page-btn.current { background: var(--accent); color: #000; border-color: var(--accent); }

/* ─── SIDEBAR ─── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-widget { margin-bottom: 28px; }
.widget-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget-link {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.widget-link:hover { color: var(--text); }
.widget-link:last-child { border-bottom: none; }

/* ─── FOOTER ─── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-copy a { color: var(--muted); transition: color .15s; }
.footer-copy a:hover { color: var(--text); }
.footer-brand {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-brand a { color: var(--muted); transition: color .15s; }
.footer-brand a:hover { color: var(--text); }

/* ─── 404 / MAINTENANCE ─── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-code {
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 700;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 16px;
}
.error-msg { font-size: 18px; color: var(--muted); margin-bottom: 24px; }

/* ─── SEARCH ─── */
.search-form { display: flex; gap: 0; }
.search-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  border-right: none;
  border-radius: 2px 0 0 2px;
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--muted);
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  transition: .15s;
  border-radius: 0 2px 2px 0;
}
.search-btn:hover { background: var(--border2); color: var(--text); }

/* ─── EMPTY ─── */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 16px; opacity: .2; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-featured { grid-template-columns: 1fr; }
  .article-featured .feat-img { min-height: 220px; }
  .article-featured .feat-body { padding: 24px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .feat-title { font-size: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .article-header { padding: 48px 0 32px; }
}
