/* Tailwind CSS CDN - loaded via HTML */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.nav-links li {
  margin-bottom: 0 !important;
}
body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1f2937;
  background-color: #f3f4f6;
}

/* Headers */
h1 {
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
  color: #111827 !important;
}

h2 {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
  color: #1f2937 !important;
}

h3 {
  font-size: 1.75rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  color: #374151 !important;
}

p {
  margin-bottom: 1.25rem;
  font-size: 18px;
  line-height: 1.8;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-bottom: 2px solid #8b5cf6;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

nav ul::before,
nav ul::after {
  display: none !important;
}

nav li {
  list-style: none !important;
}

nav li::before,
nav li::after {
  display: none !important;
  content: none !important;
}

nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 17px;
}

nav a:hover {
  color: #8b5cf6;
}

/* Mobile menu toggle */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-button span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #374151;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f3f4f6;
    border-top: 1px solid #d1d5db;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative !important;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fae8ff 100%) !important;
  padding: 5rem 2rem !important;
  overflow: hidden !important;
  min-height: 500px !important;
}

.hero-section::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  right: -10% !important;
  width: 600px !important;
  height: 600px !important;
  background: rgba(139, 92, 246, 0.1) !important;
  border-radius: 50% !important;
  z-index: 0 !important;
}

.hero-section::after {
  content: '' !important;
  position: absolute !important;
  bottom: -30% !important;
  left: -5% !important;
  width: 400px !important;
  height: 400px !important;
  background: rgba(196, 181, 253, 0.15) !important;
  border-radius: 40% 60% 50% 50% !important;
  z-index: 0 !important;
}

.hero-content {
  position: relative !important;
  z-index: 1 !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.hero-section h1 {
  color: #1f2937 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

.hero-section p {
  color: #374151 !important;
  font-size: 1.25rem !important;
  margin-bottom: 2rem !important;
}

/* Table of Contents */
.toc-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 2rem auto;
  max-width: 1200px;
}

.toc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.toc-button {
  padding: 0.875rem 1.5rem;
  border: 2px solid #8b5cf6;
  background: white;
  color: #8b5cf6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.toc-button:hover {
  background: #8b5cf6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Conversion Buttons */
.cta-button {
  display: inline-block !important;
  padding: 1rem 2.5rem !important;
  background: #8b5cf6 !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.cta-button:hover {
  background: #7c3aed !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4) !important;
}

.cta-nav {
  background: #8b5cf6 !important;
  color: white !important;
  padding: 0.75rem 1.75rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.cta-nav:hover {
  background: #7c3aed !important;
  color: white !important;
}

/* Content Sections */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border-left: 4px solid #8b5cf6;
}

.card-highlight {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-left: 6px solid #8b5cf6;
}

/* Lists */
ul, ol {
  margin-left: 0 !important;
  padding-left: 2rem !important;
  margin-bottom: 1.5rem !important;
  list-style: none !important;
}

ul li, ol li {
  position: relative !important;
  margin-bottom: 0.75rem !important;
  padding-left: 1.5rem !important;
  line-height: 1.8 !important;
  font-size: 18px !important;
}

ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.65rem !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid #8b5cf6 !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
}

ul li::marker {
  display: none !important;
  content: none !important;
}

ol {
  counter-reset: item !important;
}

ol li {
  counter-increment: item !important;
}

ol li::before {
  content: counter(item) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: #8b5cf6 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  border: none !important;
}

ol li::marker {
  display: none !important;
  content: none !important;
}

/* Nested lists */
ul ul, ol ul, ul ol, ol ol {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

/* Remove markers from nav and footer */
nav ul,
nav ul li,
footer ul,
footer ul li {
  list-style: none !important;
  padding-left: 0 !important;
}

nav ul li::before,
nav ul li::after,
nav ul li::marker,
footer ul li::before,
footer ul li::after,
footer ul li::marker {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* Tables */
.table-container {
  overflow-x: auto !important;
  margin: 2rem 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  background: white !important;
}

table {
  width: 100% !important;
  border-collapse: collapse !important;
  min-width: 600px !important;
  font-size: 17px !important;
}

thead {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
}

th {
  padding: 1.25rem 1rem !important;
  text-align: left !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  border-bottom: 3px solid #6d28d9 !important;
}

td {
  padding: 1.25rem 1rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  font-size: 17px !important;
}

tbody tr:hover {
  background-color: #faf5ff !important;
}

tbody tr:last-child td {
  border-bottom: none !important;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

picture {
  display: inline-block;
}

/* Icons */
.material-icons {
  color: #8b5cf6;
  vertical-align: middle;
  font-size: 24px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #e5e7eb;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer ul::before,
footer ul::after {
  display: none !important;
}

footer li {
  margin-bottom: 0.75rem !important;
  list-style: none !important;
  padding-left: 0 !important;
}

footer li::before,
footer li::after,
footer li::marker {
  display: none !important;
  content: none !important;
}

footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
}

footer a:hover {
  color: #a78bfa;
}

footer h4 {
  color: #f3f4f6;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 1.875rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  .hero-section {
    padding: 3rem 1.5rem !important;
    min-height: 400px !important;
  }

  .content-section {
    padding: 2rem 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .toc-buttons {
    flex-direction: column;
  }

  .toc-button {
    width: 100%;
    text-align: center;
  }

  .cta-button {
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.625rem !important;
  }

  h3 {
    font-size: 1.375rem !important;
  }

  p, ul li, ol li {
    font-size: 16px !important;
  }

  .hero-section {
    padding: 2.5rem 1rem !important;
  }

  .content-section {
    padding: 1.5rem 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
