/* ==========================================================================
   MADHLYRICS - CSS RESET & TYPOGRAPHY BASELINE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-latin);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface-secondary);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* Malayalam Text Utility */
.malayalam-text {
  font-family: var(--font-malayalam);
  line-height: 1.8;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color, var(--primary-navy));
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-green);
}

ul, ol {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-green { color: var(--primary-green) !important; }
.text-navy { color: var(--heading-color, var(--primary-navy)) !important; }
.text-gold { color: var(--accent-gold) !important; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* Global Dark Mode Inline Color Protection Shield */
[data-theme="dark"] [style*="color: var(--primary-navy)"],
[data-theme="dark"] [style*="color: #0B1F4D"],
[data-theme="dark"] [style*="color: #222222"] {
  color: var(--heading-color, #F8FAFC) !important;
}
