/* Typography System - Cuttack Shanti Committee */
/* Modern typography with Google Fonts and cultural support */

/* ===== FONT IMPORTS ===== */
/* Import Google Fonts for optimal performance */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

/* ===== HEADING STYLES ===== */
h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-lg);
  color: var(--neutral-black);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--neutral-black);
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark-gray);
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark-gray);
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-dark-gray);
}

h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-dark-gray);
}

/* ===== HEADING VARIANTS ===== */
.heading--primary {
  color: var(--primary-red);
  text-shadow: var(--hero-text-shadow);
}

.heading--secondary {
  color: var(--primary-maroon);
}

.heading--accent {
  color: var(--accent-gold);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.heading--center {
  text-align: center;
}

.heading--decorative {
  font-family: var(--font-secondary);
  position: relative;
}

.heading--decorative::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
  border-radius: var(--border-radius-sm);
}

/* ===== BODY TEXT STYLES ===== */
p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
  color: var(--neutral-black);
}

.text-large {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.text-small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.text-xs {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
}

/* ===== TEXT COLORS ===== */
.text-primary {
  color: var(--primary-red);
}

.text-secondary {
  color: var(--primary-maroon);
}

.text-accent {
  color: var(--accent-gold);
}

.text-muted {
  color: var(--neutral-gray);
}

.text-light {
  color: var(--neutral-white);
}

.text-dark {
  color: var(--neutral-black);
}

/* ===== TEXT ALIGNMENT ===== */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

/* ===== FONT WEIGHTS ===== */
.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}

/* ===== FONT FAMILIES ===== */
.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

.font-bengali {
  font-family: var(--font-bengali);
}

/* ===== SPECIAL TEXT ELEMENTS ===== */
.lead {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-relaxed);
  color: var(--neutral-dark-gray);
  margin-bottom: var(--spacing-lg);
}

.subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  color: var(--neutral-gray);
  margin-bottom: var(--spacing-md);
}

.caption {
  font-size: var(--font-size-sm);
  color: var(--neutral-gray);
  font-style: italic;
}

.overline {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  margin-bottom: var(--spacing-sm);
}

/* ===== CULTURAL TEXT STYLES ===== */
.bengali-text {
  font-family: var(--font-bengali);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.sanskrit-text {
  font-family: var(--font-secondary);
  font-style: italic;
  color: var(--primary-maroon);
  font-weight: var(--font-weight-medium);
}

.festival-greeting {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-gold);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: var(--spacing-lg) 0;
}

/* ===== LINKS AND INTERACTIVE TEXT ===== */
.link {
  color: var(--primary-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-all);
}

.link:hover,
.link:focus {
  color: var(--primary-maroon);
  border-bottom-color: var(--primary-maroon);
}

.link--external::after {
  content: '↗';
  font-size: 0.8em;
  margin-left: 0.2em;
  opacity: 0.7;
}

.link--accent {
  color: var(--accent-gold);
  font-weight: var(--font-weight-medium);
}

.link--accent:hover,
.link--accent:focus {
  color: var(--primary-yellow);
}

/* ===== EMPHASIS AND FORMATTING ===== */
strong,
.font-strong {
  font-weight: var(--font-weight-bold);
  color: var(--neutral-black);
}

em,
.font-italic {
  font-style: italic;
}

.highlight {
  background-color: var(--primary-yellow);
  color: var(--neutral-black);
  padding: 0.1em 0.3em;
  border-radius: var(--border-radius-sm);
}

.quote {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--neutral-dark-gray);
  border-left: 4px solid var(--primary-red);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

/* ===== LIST STYLES ===== */
.list-styled {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.list-styled ul {
  list-style-type: disc;
  margin-bottom: var(--spacing-md);
}

.list-styled ol {
  list-style-type: decimal;
  margin-bottom: var(--spacing-md);
}

.list-styled li {
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-relaxed);
}

.list-custom {
  list-style: none;
  padding-left: 0;
}

.list-custom li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.list-custom li::before {
  content: '•';
  color: var(--primary-red);
  font-weight: var(--font-weight-bold);
  position: absolute;
  left: 0;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
/* Mobile adjustments */
@media (max-width: 767px) {
  h1 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  h3 {
    font-size: var(--font-size-xl);
  }
  
  .lead {
    font-size: var(--font-size-lg);
  }
  
  .festival-greeting {
    font-size: var(--font-size-xl);
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
}

/* Large screen adjustments */
@media (min-width: 1280px) {
  h1 {
    font-size: var(--font-size-6xl);
  }
  
  h2 {
    font-size: var(--font-size-5xl);
  }
  
  .festival-greeting {
    font-size: var(--font-size-3xl);
  }
}

/* ===== PRINT TYPOGRAPHY ===== */
@media print {
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }
  
  .text-primary,
  .text-secondary,
  .text-accent {
    color: #000 !important;
  }
  
  .highlight {
    background-color: #f0f0f0 !important;
    color: #000 !important;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-muted {
    color: var(--neutral-black);
  }
  
  .link {
    text-decoration: underline;
  }
}

/* Large text preferences */
@media (prefers-reduced-motion: no-preference) {
  .heading--decorative::after {
    animation: fadeInUp 0.6s ease-out 0.3s both;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}