/*=====================================================
   ROOT VARIABLES
===================================================== */
:root {
  --primary: #00b3ff;
  --accent: #fe0cb1;
  --glow: rgb(163, 252, 247);
  --neon: #ffb95e;

  /* Zen Chat Theme Variables (were missing before) */
  --zen-bg-main: #f5fbff;
  --zen-bg-soft: #eaf6ff;
  --zen-blue-soft: #cceeff;
  --zen-blue-deep: #003366;
  --zen-green-soft: #e0fff5;
  --zen-green-dark: #004d40;
  --zen-text-main: #1a1a1a;
}

/* =====================================================
   GLOBAL RESET
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(90deg, #0c81ff, #fff530, #e70196);
  color: #610039;
  height: 100vh;
  overflow: visible;
}

/* =====================================================
   NAVIGATION – MATCH HERO AESTHETIC
===================================================== */

nav {
  width: 100%;
  padding: 18px 20px;
  text-align: center;

  /* Dark cosmic style like hero */
  background: linear-gradient(135deg, #006511, #000d61);
  border-bottom: 1px solid rgba(255,255,255,0.08);

  position: relative;
  z-index: 1000;
}

/* Button Base */
nav button {
  margin: 0 10px;
  padding: 12px 24px;

  border-radius: 40px;
  border: 1px solid rgb(0, 123, 19);

  background: rgb(210, 255, 163);
  color: #005201;

  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;

  cursor: pointer;
  transition: 0.3s ease;
}

/* Hover stays your original gradient */
nav button:hover {
  background: linear-gradient(45deg, #ff0066, #ff00aa);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,0,150,0.4);
}

/* Active Page Indicator (Optional Enhancement) */
nav button.active {
  background: linear-gradient(45deg, #74e2fb, #fdc27e);
  color: #064420;
  box-shadow: 0 0 20px rgba(116,226,251,0.4);
}

/* Responsive */
@media (max-width: 768px) {

  nav {
    padding: 15px 10px;
  }

  nav button {
    display: block;
    width: 100%;
    margin: 8px 0;
  }

}

/* =====================================================
   SECTION CONTROL
===================================================== */
section {
  height: calc(100vh - 74px);
  overflow-y: auto;
  display: none;
  padding: 10px;
}

section.active {
  display: block;
}

/* =====================================================
   INTRO SECTION – CLEAN HERO (MILESWEB SAFE)
===================================================== */

#intro {
  width: 100%;
}

.hero-container {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* BACKGROUND WRAPPER */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ===== CORRECT IMAGE PATH ===== */
/* Because CSS is inside /assets/ */
.bg-image {
  width: 100%;
  height: 100%;

  background-image: url('/image/nakshatra4.jpg'); 
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* DARK OVERLAY */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.50);
  z-index: 2;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding: 20px;
}
/* ================= TYPOGRAPHY ================= */

.site-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #eeff9b;
  text-shadow: 0 0 30px #e3fb6f;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 2rem;
  color: #ffccff;
  margin-bottom: 20px;
  text-shadow: 0 0 20px #ff00ff;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #ffff99;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow: 0 0 15px #ffff00aa;
}

/* ================= VIDEO ================= */

.intro-video-box {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
}

.intro-video-box video {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ================= SOCIAL BUTTONS ================= */

.social-links-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.social-links-bottom a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 40px;
  text-decoration: none;
  background: linear-gradient(45deg,#74e2fb,#fdc27e);
  color: #064420;
  transition: 0.3s ease;
}

.social-links-bottom a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */

@media (max-width: 1200px) {
  .site-title { font-size: 3rem; }
}

@media (max-width: 992px) {
  .site-title { font-size: 2.5rem; }
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {

  .hero-container {
    padding: 70px 20px;
  }

  .site-title { font-size: 2rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .social-links-bottom a {
    font-size: 0.9rem;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {

  .site-title { font-size: 1.6rem; }
  .hero-title { font-size: 1.2rem; }
  .hero-subtitle { font-size: 1rem; }

}

/* =====================================================
   DISCLAIMER SECTION
===================================================== */

#disclaimer {
  width: 100%;
  padding: 90px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
}

/* Container */
.disclaimer-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Heading */
#disclaimer h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 1px;
  color: #facc15;
}

/* Paragraphs */
#disclaimer p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 25px;
  text-align: justify;
  color: #cbd5e1;
}

/* Subtle divider effect */
#disclaimer p:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 20px;
}

/* Optional soft card effect */
.disclaimer-container {
  background: rgba(255,255,255,0.02);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

  #disclaimer {
    padding: 70px 20px;
  }

  #disclaimer h2 {
    font-size: 1.8rem;
  }

  .disclaimer-container {
    padding: 40px;
  }
}

@media (max-width: 768px) {

  #disclaimer {
    padding: 60px 15px;
  }

  #disclaimer h2 {
    font-size: 1.6rem;
  }

  #disclaimer p {
    font-size: 0.95rem;
  }

  .disclaimer-container {
    padding: 30px;
  }
}

@media (max-width: 480px) {

  #disclaimer h2 {
    font-size: 1.4rem;
  }

  #disclaimer p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .disclaimer-container {
    padding: 20px;
  }
}

/* =====================================================
   BLOG SECTION
===================================================== */
#blogs {
  position: relative;
  max-width: 100%;
  padding: 60px 20px;
  color: white;
}

/* Background Image Layer */
#blogs::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/image/11.png') center/cover no-repeat;
  z-index: -2;
}

/* Dark Overlay for readability */
#blogs::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

#add-article-form {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: 24px;
  border: 2px solid #00ffff66;
  box-shadow: 0 0 40px #00ffff44;
  margin-bottom: 50px;
}

#add-article-form input,
#add-article-form button {
  margin: 12px 0;
  padding: 14px;
  border-radius: 12px;
  font-size: 1.1rem;
}

#blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(360px,1fr));
  gap: 32px;
}

.blog-card {
  background: linear-gradient(90deg,#ff64ea,#96ff33);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px #ff006644, inset 0 0 20px #ff00aa44;
  transition: all .4s;
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 70px #ff0066aa, 0 0 60px #ff00ff66;
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: fill;
  cursor: pointer;
  transition: transform .5s;
}

.blog-card img:hover {
  transform: scale(1.12);
}

.blog-card h3 {
  padding: 20px;
  font-size: 1rem;
  color: #005118;
  text-shadow: 0 0 30px #0d2b00;
}

/* =====================================================
   CATEGORY BAR
===================================================== */

#category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 40px 0;
  justify-content: center;
}

/* Base Button */
.category-btn {
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid rgba(0,255,200,0.5);

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);

  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;

  cursor: pointer;
  transition: all 0.3s ease;

  box-shadow: 0 0 15px rgba(0,255,200,0.15);
}

/* Hover — Same Glow Feel */
.category-btn:hover {
  background: linear-gradient(45deg,#74e2fb,#fdc27e);
  color: #064420;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,255,200,0.4);
}

/* Active State */
.category-btn.active {
  background: linear-gradient(45deg,#00ffea,#ff00aa);
  color: #000;
  box-shadow: 0 0 25px rgba(255,0,150,0.6);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  #category-bar {
    gap: 10px;
  }

  .category-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* =====================================================
   BOOKS SECTION – MATCH BLOG GRID
===================================================== */
#books {
  position: relative;
  max-width: 100%;
  padding: 60px 20px;
  color: white;
}

/* Background Image */
#books::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/image/VEDIC TIME8.png') center/cover no-repeat;
  z-index: -2;
}

/* Overlay */
#books::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* IMPORTANT: must match your HTML id */
#books-container {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
  gap: 32px;
}

.book-card {
  background: linear-gradient(90deg,#ff64ea,#96ff33);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px #ff006644, inset 0 0 20px #ff00aa44;
  transition: all .4s;
}

.book-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 70px #ff0066aa, 0 0 60px #ff00ff66;
}

.book-card img {width: 100%;
  height: 240px;
  object-fit: fill;
  cursor: pointer;
  transition: transform .5s;
}

.book-card img:hover {
  transform: scale(1.12);
}

.book-info {
  padding: 20px;
}

.book-info h3 {
  font-size: 1rem;
  color: #005118;
  text-shadow: 0 0 30px #0d2b00;
  margin-bottom: 8px;
}

.book-info div {
  font-weight: 600;
  margin-bottom: 8px;
}

.book-info p {
  font-size: 0.9rem;
  line-height: 1.4;
}
/* =====================================================
   BOOKS ADMIN PANEL – MATCH ARTICLE PANEL STYLE
===================================================== */

#add-book-form {
  display: none; /* keep admin controlled */
  max-width: 1200px;
  margin: 60px auto;
  padding: 50px;
  border-radius: 30px;

  background: linear-gradient(135deg,#1e3a8a,#065f46);
  border: 2px solid rgba(0,255,200,0.4);

  box-shadow:
    0 0 40px rgba(0,255,200,0.25),
    0 0 80px rgba(255,0,150,0.15);
}

/* Title */
#add-book-form h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg,#f9a8d4,#fde047);
  -webkit-background-clip: text;
  color: transparent;
}

/* Form structure */
#add-book-form input[type="text"],
#add-book-form textarea,
#add-book-form select {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 22px;
  border-radius: 18px;
  border: 2px solid #00ffff88;
  background: #0b001a;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.3s ease;
}

#add-book-form textarea {
  min-height: 140px;
  resize: vertical;
}

#add-book-form input:focus,
#add-book-form textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 20px #00ffff66;
}

/* File inputs */
#add-book-form input[type="file"] {
  margin-bottom: 20px;
  color: white;
}

/* Publish button */
#publish-book-btn {
  margin-top: 15px;
  padding: 18px;
  width: 100%;
  border-radius: 20px;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;

  background: linear-gradient(45deg,#00ffea,#ff00aa);
  color: #000;

  box-shadow: 0 0 30px rgba(0,255,234,0.5);
  transition: 0.3s ease;
}

#publish-book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0,255,234,0.8);
}

/* Books container below 
#books-container {
  max-width: 350px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
} */

.loading-books {
  text-align: left;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
  #add-book-form {
    padding: 30px 20px;
  }
}
/* =====================================================
   CHAT SYSTEM – FIXED FOR YOUR EXACT HTML STRUCTURE
===================================================== */

#chat {
  height: calc(100dvh - 74px);   /* dynamic viewport height */
  display: flex;
}

.container {
  flex: 1;
  display: flex;
  min-height: 0;
}
/* ================= SIDEBAR ================= */

.sidebar {
  width: clamp(180px, 22vw, 320px);
  background: linear-gradient(180deg,#0d001a,#1a0033);
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px #ff00aaaa;
}

.room-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.room-item {
  padding: 12px 15px;
  margin-bottom: 12px;
  background: linear-gradient(45deg,#ff00aa,#6600ff);
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.room-item:hover {
  transform: translateX(6px);
}

/* ================= CHAT AREA ================= */

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg,#ffffff,var(--zen-bg-main));
}

/* Header */
.chat-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg,#facc15,#fb7185);
  flex-shrink: 0;
}

.chat-actions button {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(45deg,#a855f7,#ec4899);
  color: white;
}

/* ================= MESSAGES (ONLY THIS SCROLLS) ================= */

.messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 15px;
}

/* Message bubble */
.message {
  margin-bottom: 16px;
  display: flex;
}

.message-content {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg,#ecfeff,var(--zen-green-soft));
  word-break: break-word;
}

.message-content img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 8px;
}

/* ================= INPUT AREA ================= */

.input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: white;
  border-top: 2px solid #eee;
  flex: 0 0 auto;
}

/* textarea */
#messageInput {
  flex: 0 0 auto;       /* prevents shrinking */
  position: relative;
  z-index: 5;
  resize: none;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  max-height: 120px;
  overflow-y: auto;
}

/* buttons */
.input-area button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg,#facc15,#fb7185);
}

#send-btn {
  width: 55px;
  height: 55px;
  background: linear-gradient(45deg,#86efac,#60a5fa);
  font-size: 1.2rem;
}

/* ================= MEMBERS PANEL ================= */

.members-panel {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg,#1a0033,#330066);
  color: white;
  z-index: 1500;
  transition: left 0.4s ease;
  padding: 20px;
  overflow-y: auto;
}

.members-panel.active {
  left: 0;
}

/* ================= MODAL ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #1a0033;
  color: white;
  padding: 32px;
  border-radius: 24px;
  max-width: 520px;
  width: 90%;
}
@media (max-width: 768px) {
  #chat {
    height: 100vh;
  }

  .container {
    height: 100%;
  }
}   
        