@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  scroll-behavior: smooth;
}

.custom-markdown {
  padding-left: 1rem;
  padding-right: 2rem;
  line-height: 1.8;
  color: #1f2937; /* Tailwind slate-800 */
  font-family: 'Inter', sans-serif;
}

/* Headings */
.custom-markdown h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.2;
}

.custom-markdown h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  color: #111827; /* Tailwind gray-900 */
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.custom-markdown h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

/* Paragraphs */
.custom-markdown p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 200;
  color: #374151; /* Tailwind gray-700 */
}

/* Lists */
.custom-markdown ul,
.custom-markdown ol {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  font-weight: 200;
  padding-left: 0.25rem;
}

.custom-markdown ul {
  list-style-type: disc;
}

.custom-markdown ol {
  list-style-type: decimal;
}

.custom-markdown li {
  margin-bottom: 0.75rem;
}

/* Links */
.custom-markdown a {
  color: #3b82f6; /* Tailwind blue-500 */
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.2s ease;
}

.custom-markdown a:hover {
  color: #2563eb; /* Tailwind blue-600 */
}

/* Tables */
.custom-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.custom-markdown th,
.custom-markdown td {
  border: 1px solid #e5e7eb;
  text-align: left;
  padding: 0.75rem;
}

.custom-markdown th {
  background-color: #f9fafb;
  font-weight: 600;
}

.custom-markdown tr:nth-child(even) {
  background-color: #f3f4f6;
}

/* Blockquotes */
.custom-markdown blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280; /* Tailwind gray-600 */
}

/* Code blocks */
.custom-markdown pre {
  background-color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.custom-markdown code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
}

/* ===================================
   SALESWAVE TEXT TYPOGRAPHY SYSTEM
   =================================== */

/* --- HEADINGS --- */
.sw-h1 {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .sw-h1 {
    font-size: 1.675rem; /* 30px */
  }
}

@media (min-width: 1024px) {
  .sw-h1 {
    font-size: 2.0rem; /* 36px */
  }
}

@media (min-width: 1360px) {
  .sw-h1 {
    font-size: 2.6rem; /* 36px */
  }
}

.swa-h1-lg {
  font-size: 1.8rem; /* 30px */
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.sw-h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.sw-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.sw-h3-blue {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2563eb;
}

/* --- BODY TEXT --- */
.sw-text-lg {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #777980;
  font-weight: 300;
}

.sw-text {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #777980;
  font-weight: 300;
}

.sw-text-sm {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #777980;
  font-weight: 300;
}

/* --- EMPHASIZED TEXT --- */
.sw-text-bold {
  font-weight: 600;
  color: #111827;
}

.sw-text-blue {
  color: #2563eb;
}

.sw-text-italic {
  font-style: italic;
}

/* --- BADGE TEXT --- */
.sw-badge-text {
  font-size: 0.875rem;
  color: #000000;
}

/* --- NUMBERS --- */
.sw-number-display {
  font-size: 3.75rem;
  font-weight: 600;
  color: #dbeafe;
}

@media (min-width: 640px) {
  .sw-number-display {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .sw-number-display {
    font-size: 6rem;
  }
}