/* ── RESET & FONTS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #070a10;
  --ink:       #0a0f18;
  --s1:        #0e1420;
  --s2:        #141c2c;
  --s3:        #1a2438;
  --bd:        #1e2c42;
  --bd-light:  #263550;
  --tx:        #e4ecf7;
  --t2:        #8a9bb8;
  --t3:        #556580;
  --accent:    #00c8ff;
  --accent-d:  #0099cc;
  --accent-15: rgba(0,200,255,0.15);
  --accent-08: rgba(0,200,255,0.08);
  --green:     #00e676;
  --green-15:  rgba(0,230,118,0.15);
  --orange:    #ff6d3a;
  --fb:        #1877f2;
  --wa:        #25d366;
  --x:         #1a1a1a;
  --li:        #0a66c2;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --sh-sm:     0 2px 8px rgba(0,0,0,0.3);
  --sh-md:     0 4px 20px rgba(0,0,0,0.4);
  --sh-lg:     0 8px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-display { font-family: 'Sora', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(0,200,255,0.25); color: #fff; }

/* ── Material Symbols (Google Icons) ── */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
  font-size: inherit;
}
.hero-fb-icon .material-symbols-rounded,
.news-row-fb .material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

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

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 6px;
}

.brand {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
  color: #fff; display: inline-flex; align-items: center; gap: 9px;
}

.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  font-size: 20px;
  color: #000;
  overflow: hidden;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-accent { color: var(--accent); }

.header-date { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 0.02em; }

.tagline { font-size: 13px; color: rgba(255,255,255,0.45); margin: 0 0 12px; }

/* ── Language switch ── */
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.lang-flag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em;
  padding: 4px 9px; background: transparent; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: all 0.2s;
}
.lang-flag.is-active { background: var(--accent); color: #000; }
.lang-flag:hover:not(.is-active) { background: rgba(255,255,255,0.06); color: #fff; }


/* ── Mobile menu toggle ── */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 0; cursor: pointer; z-index: 10;
}

.menu-toggle span {
  display: block; width: 18px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Category nav ── */
.cat-nav {
  display: flex; gap: 4px; border-top: 1px solid rgba(255,255,255,0.04);
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-link {
  flex-shrink: 0; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.4);
  padding: 12px 16px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cat-link:hover { color: #fff; }
.cat-link.is-active { color: #fff; border-bottom-color: var(--cat-color, var(--accent)); }

/* ── MAIN CONTENT ── */
.main-content { padding: 32px 20px 70px; }

/* ── SECTION HEAD ── */
.section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.section-head-inner { display: flex; align-items: center; gap: 14px; }
.section-head-inner .bar { width: 4px; height: 28px; border-radius: 4px; background: var(--accent); }
.section-head-inner h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.section-count {
  font-size: 13px; color: var(--t3); font-weight: 600;
  background: var(--s2); padding: 6px 14px; border-radius: 100px; border: 1px solid var(--bd);
}
.section-count {
  font-size: 13px; color: var(--t3); font-weight: 600;
  background: var(--s2); padding: 6px 14px; border-radius: 100px; border: 1px solid var(--bd);
}
.section-more {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.section-more:hover { color: #fff; }

/* ── HERO ── */
.hero-section { margin-bottom: 40px; }
.hero-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--bd-light); }
.hero-media { min-height: 340px; background-size: cover; background-position: center; position: relative; }
.hero-media-fb {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--s1), var(--s3));
}
.hero-fb-icon { font-size: 80px; opacity: 0.15; }
.hero-body { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-badges { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.hero-badge-cat {
  background: var(--accent-15); color: var(--accent);
  border: 1px solid rgba(0,200,255,0.25); border-radius: 100px;
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-badge-time { font-size: 12px; color: var(--t3); font-weight: 500; }
.hero-title {
  font-size: 26px; font-weight: 800; line-height: 1.3;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 12px;
}
.hero-excerpt { font-size: 14px; color: var(--t2); line-height: 1.65; margin-bottom: 16px; }
.hero-arrow { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ── NEWS SECTION ── */
.news-section {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.news-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
/* subtle top accent line inside section */
.news-section::before {
  content: '';
  position: absolute;
  top: -18px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bd), transparent);
  opacity: 0;
}
.news-section:first-of-type::before { display: none; }

/* ── NEWS LIST (row layout) ── */
.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-row {
  display: flex; align-items: center; gap: 18px; padding: 16px 18px;
  border-radius: var(--radius); transition: background 0.2s ease, transform 0.2s ease;
}
.news-row:hover { background: var(--s1); transform: translateX(4px); }
.news-row-media {
  width: 100px; height: 70px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--s2);
  display: flex; align-items: center; justify-content: center;
}
.news-row-media img { width: 100%; height: 100%; object-fit: cover; }
.news-row-fb { font-size: 28px; opacity: 0.2; }
.news-row-body { flex: 1; min-width: 0; }
.news-row-meta {
  display: flex; gap: 6px; align-items: center; font-size: 11px;
  color: var(--t3); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.news-row-cat { color: var(--accent); }
.news-row-sep { color: var(--bd-light); }
.news-row-body h3 {
  font-size: 15px; font-weight: 700; line-height: 1.4; color: #fff;
  margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-row-desc {
  font-size: 13px; color: var(--t2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row-arrow { font-size: 18px; color: var(--t3); flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.news-row:hover .news-row-arrow { color: var(--accent); transform: translateX(3px); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--t3); font-size: 1.1rem;
  background: var(--s1); border-radius: var(--radius); border: 1px solid var(--bd);
}

/* ── ARTICLE PAGE ── */
.art-top { padding: 32px 20px 0; }
.art-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 20px; transition: opacity 0.2s;
}
.art-back:hover { opacity: 0.75; }
.art-hero-badges { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.art-cat-badge {
  background: var(--accent-15); color: var(--accent);
  border: 1px solid rgba(0,200,255,0.25); border-radius: 100px;
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.art-time { font-size: 12px; color: var(--t3); font-weight: 500; }
.art-title { font-size: 36px; font-weight: 800; line-height: 1.22; letter-spacing: -0.03em; color: #fff; margin-bottom: 12px; }
.art-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--t3); font-weight: 500; margin-bottom: 24px; }
.art-meta-sep { color: var(--bd-light); }
.art-hero-img-card { border-radius: var(--radius-lg); overflow: hidden; max-height: 420px; margin-bottom: 20px; background: var(--s2); }
.art-hero-img-card img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.art-body { padding: 24px 20px 60px; display: flex; gap: 30px; }
.art-main { flex: 1; max-width: 780px; }

/* ── Social bar ── */
.art-social {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: var(--s1); border: 1px solid var(--bd);
  border-radius: var(--radius); margin-bottom: 24px; flex-wrap: wrap;
}
.btn-like {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--s2); border: 1px solid var(--bd); color: var(--t3);
  font-size: 13px; font-weight: 700; padding: 9px 18px;
  border-radius: 100px; cursor: pointer; transition: all 0.2s ease;
}
.btn-like:hover { border-color: #e04060; color: #e05070; }
.btn-like.liked { background: rgba(224,64,96,0.15); border-color: #e04060; color: #e05070; }

/* ── Share row ── */
.share-row { display: flex; align-items: center; gap: 12px; }
.share-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--t3); white-space: nowrap;
}
.share-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent;
  background: var(--s2); color: var(--t3); cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.share-btn:hover { transform: translateY(-1px); }
.share-whatsapp:hover  { background: rgba(37,211,102,0.15); border-color: var(--wa); color: var(--wa); }
.share-facebook:hover  { background: rgba(24,119,242,0.15); border-color: var(--fb); color: var(--fb); }
.share-x:hover         { background: rgba(255,255,255,0.1); border-color: #555; color: #fff; }
.share-linkedin:hover  { background: rgba(10,102,194,0.15); border-color: var(--li); color: var(--li); }
.share-email:hover     { background: rgba(255,255,255,0.08); border-color: #555; color: #fff; }
.share-copy:hover      { background: rgba(0,200,255,0.12); border-color: var(--accent); color: var(--accent); }
.share-copied { background: rgba(0,230,118,0.12) !important; border-color: var(--green) !important; color: var(--green) !important; }

/* ── Article summary card ── */
.art-summary {
  background: var(--s1); border: 1px solid var(--bd); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 20px; font-size: 15px; line-height: 1.8;
  color: var(--t2); border-left: 4px solid var(--accent);
}
.art-summary p { margin-bottom: 14px; }
.art-summary p:last-child { margin-bottom: 0; }

/* ── Source note ── */
.art-source-note {
  font-size: 12px; color: var(--t3); margin-bottom: 20px; padding: 12px 16px;
  background: var(--s1); border-radius: var(--radius-sm); border: 1px solid var(--bd);
  word-break: break-all;
}
.art-source-note a { color: var(--accent); }
.art-source-note a:hover { text-decoration: underline; }

/* ── Action buttons ── */
.art-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.btn-original {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: 14px;
  background: var(--accent); color: #000; text-decoration: none; transition: all 0.2s ease;
}
.btn-original:hover { background: #00aadd; transform: translateY(-1px); }
.btn-back-home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: 14px;
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
  text-decoration: none; transition: all 0.2s ease;
}
.btn-back-home:hover { background: var(--accent-08); transform: translateY(-1px); }



/* ── Related articles ── */
.art-related { padding: 0 20px 50px; }
.art-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.art-related-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--s1); border: 1px solid var(--bd);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.art-related-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--bd-light); }
.art-related-img {
  height: 110px; background-size: cover; background-position: center;
  background-color: var(--s2); position: relative; display: flex;
  align-items: flex-start; padding: 10px 12px;
}
.art-related-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,15,0.7) 0%, rgba(5,5,15,0.08) 100%);
}
.art-related-badge {
  position: relative; z-index: 1; font-size: 10px; font-weight: 700;
  text-transform: uppercase; background: var(--accent); color: #000;
  padding: 3px 8px; border-radius: 100px;
}
.art-related-body { padding: 12px 14px; }
.art-related-body h4 {
  font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-related-body p {
  font-size: 11px; color: var(--t3); text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600;
}

/* ── FOOTER ── */
.site-footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.04); padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand p { font-size: 13px; color: var(--t3); line-height: 1.7; margin-top: 12px; max-width: 300px; }
.footer-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); margin-bottom: 8px; }
.footer-text { font-size: 13px; color: var(--t2); }
.footer-cats { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-cats a { font-size: 13px; color: var(--t2); transition: color 0.2s; }
.footer-cats a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04); padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--t3);
}
.footer-caps { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t3); }

/* ── COPY TOAST ── */
.copy-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px); background: var(--accent);
  color: #000; font-size: 13px; font-weight: 700; padding: 10px 24px;
  border-radius: 100px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease; z-index: 999;
}

/* ── RESPONSIVE ── */
@media (min-width: 900px) { .art-related-grid { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 800px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 200px; }
  .hero-body { padding: 20px; }
  .hero-title { font-size: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .art-title { font-size: 24px; }
  .art-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .cat-nav { display: none; flex-direction: column; padding: 8px 0 14px; }
  .site-header.menu-open .cat-nav { display: flex; }
  .header-date { display: none; }
  .brand-text { display: none; }
  .tagline { display: none; }
  .news-row-media { width: 70px; height: 52px; }
  .news-row-body h3 { font-size: 13px; }
  .news-row-desc { display: none; }
  .news-row { padding: 12px 10px; gap: 12px; }
  .hero-title { font-size: 18px; }
  .art-social { flex-direction: column; align-items: flex-start; }
  .art-title { font-size: 22px; }
  .section-head-inner h2 { font-size: 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
