/* ============================
   CICADA SCROLLS - STYLESHEET
   ============================ */

:root {
  --black: #0a0a0a;
  --white: #f5f0e8;
  --accent1: #FFD700;
  --accent2: #FF6B35;
  --accent3: #06D6A0;
  --accent4: #F72585;
  --accent5: #4CC9F0;
  --card-bg: #141414;
  --nav-bg: rgba(10,10,10,0.95);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
}

/* ============================
   LOGIN
   ============================ */
.login-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, #1a0a2e 0%, #0a0a0a 70%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: loginFadeIn 0.4s ease;
}

@keyframes loginFadeIn { from { opacity: 0; } to { opacity: 1; } }

.login-box {
  background: #111;
  border: 2px solid var(--accent1);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  text-align: center;
  box-shadow: 0 0 60px rgba(255,215,0,0.15);
  animation: loginSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginSlideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.login-logo {
  font-size: 60px;
  display: block;
  margin-bottom: 8px;
  animation: wiggle 2s infinite;
}

@keyframes wiggle {
  0%,100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.login-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: var(--accent1);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.login-sub {
  color: #888;
  font-size: 13px;
  margin-bottom: 28px;
  font-style: italic;
}

.input-group {
  text-align: left;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent3);
  margin-bottom: 6px;
  font-weight: 700;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1.5px solid #333;
  border-radius: 8px;
  color: var(--white);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.input-group input:focus {
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent1);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.35);
}

.login-btn:active { transform: translateY(0); }

.login-error {
  color: var(--accent4);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  font-family: 'Space Mono', monospace;
}

.login-hint {
  color: #555;
  font-size: 11px;
  margin-top: 16px;
}

/* ============================
   NAV
   ============================ */
.navbar {
  position: sticky; top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  z-index: 100;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--accent1);
  letter-spacing: 2px;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.logout-btn {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.logout-btn:hover { border-color: var(--accent4); color: var(--accent4); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  overflow: hidden;
  padding: 80px 40px 0;
  background: radial-gradient(ellipse at 60% 40%, #1a0a2e 0%, #0a0a0a 65%);
}

.hero-bg-text {
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 20vw, 280px);
  color: rgba(255,215,0,0.04);
  letter-spacing: 20px;
  user-select: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--accent1);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.9;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent1);
  -webkit-text-stroke: 1px var(--accent1);
}

.hero-desc {
  font-size: 18px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent1);
  color: var(--black);
  padding: 14px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,215,0,0.3);
}

/* TICKER */
.hero-ticker {
  width: 100%;
  margin-top: 60px;
  background: var(--accent1);
  color: var(--black);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.hero-ticker span {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: ticker 22s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   SECTIONS SHARED
   ============================ */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 4px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px; height: 4px;
  background: var(--accent1);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ============================
   CATEGORIES
   ============================ */
.categories-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cat-card {
  background: #141414;
  border: 1.5px solid #222;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.cat-icon { font-size: 36px; }
.cat-name { font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.cat-count { font-size: 11px; color: #666; }

.cat-finance:hover { border-color: #FFD700; box-shadow: 0 8px 24px rgba(255,215,0,0.15); }
.cat-politics:hover { border-color: #E63946; box-shadow: 0 8px 24px rgba(230,57,70,0.15); }
.cat-war:hover { border-color: #ff4444; box-shadow: 0 8px 24px rgba(255,68,68,0.15); }
.cat-economics:hover { border-color: #06D6A0; box-shadow: 0 8px 24px rgba(6,214,160,0.15); }
.cat-health:hover { border-color: #F72585; box-shadow: 0 8px 24px rgba(247,37,133,0.15); }
.cat-food:hover { border-color: #FF9F1C; box-shadow: 0 8px 24px rgba(255,159,28,0.15); }
.cat-veg:hover { border-color: #55A630; box-shadow: 0 8px 24px rgba(85,166,48,0.15); }
.cat-religion:hover { border-color: #C9184A; box-shadow: 0 8px 24px rgba(201,24,74,0.15); }
.cat-all:hover { border-color: var(--accent5); box-shadow: 0 8px 24px rgba(76,201,240,0.15); }

/* ============================
   BLOGS
   ============================ */
.blogs-section {
  padding: 60px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.blog-card {
  background: var(--card-bg);
  border: 1.5px solid #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: #333;
}

.blog-card.hidden { display: none; }

.blog-header {
  padding: 24px 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px;
}

.blog-emoji { font-size: 32px; }

.blog-category {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.25);
  padding: 4px 12px;
  border-radius: 100px;
}

.blog-body {
  padding: 20px 20px 16px;
  flex: 1; display: flex; flex-direction: column; gap: 12px;
}

.blog-body h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
}

.blog-excerpt {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  flex: 1;
}

.blog-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}

.read-time { font-size: 12px; color: #555; font-family: 'Space Mono', monospace; }

.read-more {
  background: transparent;
  border: 1px solid #333;
  color: var(--accent1);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.read-more:hover {
  background: var(--accent1);
  color: var(--black);
  border-color: var(--accent1);
}

#filter-tag {
  font-size: 0.5em;
  color: var(--accent3);
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 12px;
  letter-spacing: 1px;
}

/* ============================
   ABOUT
   ============================ */
.about-section {
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 80px 40px;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 20px;
}

.about-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: var(--accent1);
}

.about-inner p {
  color: #888;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-quote {
  font-family: 'Space Mono', monospace;
  font-style: italic;
  color: var(--accent3) !important;
  border-left: 3px solid var(--accent3);
  padding-left: 20px;
  text-align: left;
  font-size: 14px !important;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 40px;
  text-align: center;
  color: #444;
  font-size: 13px;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--accent1);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.footer-links {
  margin-top: 12px;
  display: flex; gap: 20px; justify-content: center;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent1); }

/* ============================
   MODAL
   ============================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  backdrop-filter: blur(6px);
}

.modal-box {
  background: #141414;
  border: 1.5px solid #333;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  animation: loginSlideUp 0.3s ease;
}

.modal-close {
  background: transparent;
  border: 1px solid #333;
  color: #888;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  margin-bottom: 20px;
  transition: all 0.2s;
  display: block;
  margin-left: auto;
}
.modal-close:hover { border-color: #ff4444; color: #ff4444; }

.modal-msg {
  color: #aaa;
  font-size: 16px;
  line-height: 1.7;
}

.modal-msg strong { color: var(--accent1); }

/* ============================
   UTILITIES
   ============================ */
.hidden { display: none !important; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
  .hero { padding: 60px 20px 0; }
  .categories-section, .blogs-section { padding: 60px 20px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .blogs-grid { grid-template-columns: 1fr; }
  .login-box { padding: 36px 24px; margin: 20px; }
}
