/* style.css */

:root {
  /* Global Colors - Yaha change karega toh sab jagah change hoga */
  --bg-color: #0f172a;       /* Deep Slate Background */
  --text-color: #e2e8f0;     /* Off-white Text */
  --accent-color: #38bdf8;   /* Electric Blue (Links/Buttons) */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace; /* For formulas/numbers */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Glassmorphism Card Style */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for Cards */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Technical Font for Headers & Formulas */
h1, h2, h3, .formula {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Buttons */
.btn {
  background-color: var(--accent-color);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

/* --- ADD TO BOTTOM OF style.css --- */

/* Layout Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Grid Layout for Modules */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Module Lists inside Cards */
.module-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.module-list li {
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

.module-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

/* Badge for Higher Tier */
.badge-higher {
  background-color: #f43f5e; /* Rose color for warning/attention */
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  float: right;
}

/* Progress Bar Styles */
.progress-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 10px;
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  width: 0%; /* JS will change this */
  transition: width 0.5s ease;
}

/* Checkbox alignment */
input[type="checkbox"] {
  accent-color: var(--accent-color);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* --- ADD THIS TO THE BOTTOM OF YOUR STYLE.CSS --- */

/* Interactive Accordion (Drop-down content) */
details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

details[open] {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter when open */
  border-color: var(--accent-color);
}

summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hides default triangle */
}

summary::after {
  content: '+'; 
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg); /* Turns + into x */
}

/* The Content inside the dropdown */
.details-content {
  padding: 20px;
  border-top: 1px solid var(--glass-border);
  line-height: 1.8;
}

/* Comparison Tables */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.compare-table th, .compare-table td {
  padding: 12px;
  border: 1px solid var(--glass-border);
  text-align: left;
}

.compare-table th {
  background: rgba(56, 189, 248, 0.2); /* Accent header */
}

/* Quiz / Interaction Box */
.quiz-box {
  background: #1e293b;
  border-left: 4px solid var(--accent-color);
  padding: 15px;
  margin-top: 20px;
  border-radius: 0 8px 8px 0;
}

.reveal-btn {
  background: var(--glass-border);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 0.9rem;
}

.reveal-btn:hover {
  background: var(--accent-color);
  color: #000;
}

.answer {
  display: none; /* Hidden by default */
  margin-top: 10px;
  font-weight: bold;
  color: #4ade80; /* Green text for correct answer */
}

/* Key Definition Box */
.def-box {
  background: rgba(255, 215, 0, 0.1); /* Gold tint */
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}
/* Compact Intro Section Styles */
.compact-card {
  padding: 15px !important; /* Kam padding */
  font-size: 0.9rem;        /* Thoda chota text */
}

.compact-card h3 {
  font-size: 1.1rem;        /* Heading bhi choti */
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 5px;
}

.simple-list {
  list-style-type: disc;    /* Normal bullet points */
  padding-left: 20px;       /* Thoda indent */
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.simple-list li {
  margin-bottom: 4px;       /* Kam gap items ke beech */
}

/* Fix for "Tede Mede" Labels in Accordion */
summary span {
  margin-left: auto;   /* Ye label ko right side push karega */
  margin-right: 15px;  /* Plus icon se thoda gap dega */
  opacity: 0.8;        /* Thoda halka dikhega, professional look ke liye */
  font-size: 0.85rem;
}

/* Higher Tier Badge styling tweak */
.badge-higher {
  float: none;         /* Purana float hata denge */
  background-color: #f43f5e;
  padding: 4px 8px;
}

/* --- Add to bottom of style.css --- */

/* Fix alignment of labels inside Accordion */
summary span {
  margin-left: auto;    /* Pushes label to the right */
  margin-right: 15px;   /* Gap between label and (+) icon */
  opacity: 0.6;         /* Subtle look */
  font-size: 0.85rem;
  font-weight: normal;
}

/* Intro Section Compact Style */
.compact-card {
  padding: 15px !important;
  font-size: 0.95rem;
}
.simple-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.8);
}
.simple-list li {
  margin-bottom: 5px;
}

/* Final Navigation Buttons Styling */
.nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.nav-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.nav-btn.secondary-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.nav-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}