/* ═══════════════════════════════════════════════════
   NaijaEduTools — style.css
   ═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --green:      #047857;
  --green-light:#059669;
  --green-pale: #D1FAE5;
  --gold:       #D97706;
  --gold-light: #FEF3C7;
  --blue:       #1D4ED8;
  --blue-light: #DBEAFE;
  --purple:     #7C3AED;
  --purple-light:#EDE9FE;
  --orange:     #EA580C;
  --orange-light:#FFEDD5;
  --dark:       #111827;
  --grey:       #6B7280;
  --light-grey: #F3F4F6;
  --white:      #FFFFFF;
  --bg:         #F9FAFB;
  --radius:     16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.13);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
}
.logo-accent { color: var(--green); }
.partner-badge {
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--green-light);
  transition: all 0.2s;
}
.partner-badge:hover {
  background: var(--green);
  color: white;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 90px;
  text-align: center;
  background: linear-gradient(160deg, #f0fdf4 0%, #fefce8 50%, #ecfdf5 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.blob1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6EE7B7, #047857);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.blob2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #FDE68A, #D97706);
  top: 0; right: -80px;
  animation-delay: 2s;
}
.blob3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #A7F3D0, #059669);
  bottom: -80px; left: 50%;
  animation-delay: 4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--green-light);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(4,120,87,0.1);
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-highlight {
  color: var(--green);
  position: relative;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  opacity: 0.5;
  z-index: -1;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--grey);
  margin-bottom: 32px;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  animation: fadeUp 0.7s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--grey);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(0,0,0,0.1);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 20px rgba(4,120,87,0.3);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(4,120,87,0.4);
}
.btn-outline {
  background: white;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   TOOLS GRID
══════════════════════════════════════════════════════ */
.tools-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-sub { color: var(--grey); font-size: 0.98rem; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}
.card-green::before { background: var(--green); }
.card-gold::before  { background: var(--gold); }
.card-blue::before  { background: var(--blue); }
.card-purple::before{ background: var(--purple); }
.card-orange::before{ background: var(--orange); }
.card-dark::before  { background: var(--dark); }

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-green:hover  { border-color: var(--green);  background: linear-gradient(135deg, white, #f0fdf4); }
.card-gold:hover   { border-color: var(--gold);   background: linear-gradient(135deg, white, #fefce8); }
.card-blue:hover   { border-color: var(--blue);   background: linear-gradient(135deg, white, #eff6ff); }
.card-purple:hover { border-color: var(--purple); background: linear-gradient(135deg, white, #f5f3ff); }
.card-orange:hover { border-color: var(--orange); background: linear-gradient(135deg, white, #fff7ed); }
.card-dark:hover   { border-color: var(--dark);   background: linear-gradient(135deg, white, #f9fafb); }

.tool-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--light-grey);
}
.tool-info { flex: 1; }
.tool-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.tool-info p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.4;
}
.tool-arrow {
  font-size: 1.2rem;
  color: var(--grey);
  flex-shrink: 0;
}
.tool-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green);
  color: white;
}
.card-purple .tool-badge { background: var(--purple); }
.card-dark .tool-badge   { background: var(--dark); }

/* ══════════════════════════════════════════════════════
   EDUBOT BANNER
══════════════════════════════════════════════════════ */
.edubot-banner {
  background: linear-gradient(135deg, #064E3B, #065F46);
  padding: 60px 0;
  overflow: hidden;
}
.edubot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.edubot-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 260px;
}
.edubot-avatar {
  font-size: 3rem;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.edubot-left h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.edubot-left p {
  color: rgba(255,255,255,0.75);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.edubot-bubbles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}
.bubble {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.83rem;
  animation: float 6s ease-in-out infinite;
}
.b1 { animation-delay: 0s; }
.b2 { animation-delay: 1.5s; }
.b3 { animation-delay: 3s; }

/* ══════════════════════════════════════════════════════
   CHANNELS
══════════════════════════════════════════════════════ */
.channels-section { padding: 80px 0; background: white; }
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.channel-naija { background: linear-gradient(135deg, var(--green-pale), #f0fdf4); border-color: var(--green-light); }
.channel-smart  { background: linear-gradient(135deg, var(--gold-light), #fffbeb); border-color: #FCD34D; }
.channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.channel-icon { font-size: 2rem; flex-shrink: 0; }
.channel-info { flex: 1; }
.channel-name { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 3px; }
.channel-desc { font-size: 0.8rem; color: var(--grey); }
.channel-btn {
  background: var(--green);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.channel-smart .channel-btn { background: var(--gold); }

/* ══════════════════════════════════════════════════════
   RESOURCES
══════════════════════════════════════════════════════ */
.resources-section { padding: 80px 0; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.25s;
}
.resource-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.resource-img { font-size: 2.2rem; flex-shrink: 0; }
.resource-info h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.resource-info p { font-size: 0.8rem; color: var(--grey); margin-bottom: 8px; }
.resource-link { font-size: 0.82rem; font-weight: 600; color: var(--gold); }
.affiliate-note { font-size: 0.75rem; color: var(--grey); text-align: center; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: white; display: block; font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-links h4 { color: white; font-weight: 700; margin-bottom: 12px; font-size: 0.9rem; }
.footer-links a { display: block; font-size: 0.83rem; margin-bottom: 8px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════════════════════
   EDUBOT CHAT WIDGET
══════════════════════════════════════════════════════ */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  background: var(--green);
  color: white;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(4,120,87,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(4,120,87,0.5); }
.fab-label { font-size: 0.85rem; font-weight: 700; }
.fab-ping {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid white;
  animation: ping 2s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 998;
  width: min(380px, calc(100vw - 32px));
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 520px;
}
.chat-widget.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.chat-header {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-avatar { font-size: 1.8rem; }
.chat-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; }
.chat-status { font-size: 0.72rem; opacity: 0.85; }
.chat-close {
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.35); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.87rem; line-height: 1.5; }
.bot-msg {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.user-msg {
  background: var(--green);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.typing-msg { background: white; border: 1px solid rgba(0,0,0,0.08); align-self: flex-start; }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--grey);
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: white;
}
#chatInput {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.12);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
#chatInput:focus { border-color: var(--green); }
#sendBtn {
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
#sendBtn:hover { background: var(--green-light); transform: scale(1.05); }
.chat-powered {
  text-align: center;
  font-size: 0.68rem;
  color: var(--grey);
  padding: 6px;
  background: white;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 70px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .edubot-bubbles { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .chat-fab .fab-label { display: none; }
  .chat-fab { padding: 16px; border-radius: 50%; }
}
