@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a14;
  color: #d0d0e0;
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
a { text-decoration: none; color: #7c5cfc; transition: color .3s; }
a:hover { color: #a78bfa; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #12121f 0%, #1a1a2e 100%);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(124,92,252,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c5cfc, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
nav { display: flex; gap: 8px; align-items: center; }
nav a {
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .3s;
}
nav a:hover { color: #fff; background: rgba(124,92,252,0.1); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,92,252,0.12) 0%, transparent 70%);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,252,0.3), transparent);
}
.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #7c5cfc 50%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.hero p {
  color: #777;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===== ARTICLES GRID ===== */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  padding: 50px 20px 10px;
}
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.card {
  background: linear-gradient(145deg, #141425, #1a1a30);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(124,92,252,0.08);
  transition: all .4s cubic-bezier(.25,.8,.25,1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c5cfc, #00d2ff);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,92,252,0.25);
  box-shadow: 0 20px 40px rgba(124,92,252,0.1);
}
.card:hover::before { opacity: 1; }
.card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124,92,252,0.1);
  color: #7c5cfc;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #eee;
  margin-bottom: 10px;
  line-height: 1.4;
}
.card p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.6;
}
.card .read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #7c5cfc, #6c4cec);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .3s;
}
.card .read-btn:hover {
  background: linear-gradient(135deg, #6c4cec, #5c3cdc);
  transform: translateX(3px);
}

/* ===== ARTICLE CONTENT PAGE ===== */
.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px 120px;
}
.article-page .breadcrumb {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 30px;
}
.article-page .breadcrumb a { color: #7c5cfc; }
.article-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.article-page .meta {
  display: flex;
  gap: 20px;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.article-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e0e0f0;
  margin: 35px 0 16px;
}
.article-page h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #c8c8e0;
  margin: 28px 0 12px;
}
.article-page p {
  color: #aab;
  font-size: 1.02rem;
  margin-bottom: 18px;
  line-height: 1.9;
}
.article-page ul, .article-page ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-page li {
  color: #aab;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.8;
}
.article-page blockquote {
  border-left: 3px solid #7c5cfc;
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(124,92,252,0.05);
  border-radius: 0 10px 10px 0;
  color: #bbc;
  font-style: italic;
}

/* ===== POLICY PAGES ===== */
.policy-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px;
}
.policy-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.policy-page .updated {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.policy-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #d0d0e0;
  margin: 30px 0 12px;
}
.policy-page p {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.8;
}
.policy-page ul { padding-left: 24px; margin-bottom: 16px; }
.policy-page li { color: #999; font-size: 0.95rem; margin-bottom: 6px; }

/* ===== TIMER BOX ===== */
.timer-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #12121f, #1a1a2e);
  border-top: 2px solid #7c5cfc;
  padding: 18px 20px;
  text-align: center;
  z-index: 999;
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.timer-box .countdown {
  font-size: 1.2rem;
  color: #7c5cfc;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.timer-box .progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(124,92,252,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.timer-box .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c5cfc, #00d2ff);
  border-radius: 4px;
  transition: width 1s linear;
  width: 0%;
}
.timer-box .next-btn {
  display: none;
  padding: 14px 36px;
  background: linear-gradient(135deg, #7c5cfc, #00d2ff);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  animation: glow 2s infinite;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.timer-box .next-btn:hover {
  transform: scale(1.05);
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(124,92,252,0.4); }
  50% { box-shadow: 0 0 25px rgba(124,92,252,0.6), 0 0 50px rgba(0,210,255,0.2); }
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #0d0d18, #12121f);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(124,92,252,0.1);
}
footer .footer-links { margin-bottom: 16px; }
footer .footer-links a {
  color: #666;
  margin: 0 10px;
  font-size: 0.85rem;
  transition: color .3s;
}
footer .footer-links a:hover { color: #7c5cfc; }
footer .copyright {
  color: #444;
  font-size: 0.8rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 14px 20px; }
  header .logo { font-size: 1.25rem; }
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #12121f;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(124,92,252,0.15);
    gap: 4px;
  }
  nav.active { display: flex; }
  nav a { padding: 10px 16px; font-size: 0.95rem; }

  .hero { padding: 60px 20px 50px; }
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }

  .articles {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }
  .card { padding: 24px 20px; }

  .article-page { padding: 30px 18px 130px; }
  .article-page h1 { font-size: 1.6rem; }
  .article-page h2 { font-size: 1.25rem; }
  .article-page p { font-size: 0.95rem; }

  .policy-page { padding: 30px 18px; }
  .policy-page h1 { font-size: 1.5rem; }

  .section-title { font-size: 1.4rem; }

  .timer-box { padding: 14px 16px; }
  .timer-box .countdown { font-size: 1rem; }
}

@media (max-width: 480px) {
  header .logo { font-size: 1.1rem; }
  .hero h2 { font-size: 1.6rem; }
  .articles { padding: 16px 12px; }
  .card { padding: 20px 16px; }
  .card h3 { font-size: 1.05rem; }
  .article-page { padding: 24px 14px 130px; }
  .article-page h1 { font-size: 1.4rem; }
  footer { padding: 30px 16px; }
  footer .footer-links a { display: block; margin: 6px 0; }
}

/* ===== AD CONTAINERS ===== */
.ad-container { text-align: center; margin: 24px auto; padding: 12px 0; max-width: 100%; overflow: hidden; min-height: 50px; }
.articles .ad-container { grid-column: 1 / -1; margin: 8px auto; }
