/* ==========================================================================
   GHASAPHULA LITERARY E-MAGAZINE - THEME & CORE STYLES
   Professional Font: 'Lato' | Aesthetics: Literary Journal & Vintage Editorial
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&family=Noto+Sans+Oriya:wght@400;500;600;700&family=Noto+Serif+Oriya:wght@400;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,900;1,400;1,600&display=swap');

:root {
  /* Color Palette - Derived directly from Ghasaphula Logo (Metallic Gold & Deep Regal Maroon) */
  --bg-body: #FDFBF7;
  --bg-paper: #FFFFFF;
  --bg-surface: #F5EFE4;
  --bg-surface-hover: #EBE0CD;

  --ink-heading: #2C070B;       /* Deep Regal Maroon from logo outline */
  --ink-body: #3B231D;          /* Warm dark chocolate text */
  --ink-muted: #6E534A;         /* Muted editorial text */
  --ink-light: #9E8880;

  --accent-maroon: #4A0E17;     /* Logo primary maroon accent */
  --accent-maroon-dark: #2C070B;
  --accent-gold: #D4AF37;       /* Logo metallic gold */
  --accent-gold-bright: #FFD700;/* Logo bright gold highlight */
  --accent-gold-dark: #AA771C;  /* Logo deep antique gold */
  --accent-sepia: #4A0E17;      /* Primary accent mapped to maroon */
  --accent-sepia-dark: #2C070B;

  --border-vintage: #E6DBC9;
  --border-dark: #4A0E17;
  --border-gold: #D4AF37;
  --shadow-subtle: 0 4px 15px rgba(74, 14, 23, 0.06);
  --shadow-paper: 0 10px 30px rgba(74, 14, 23, 0.12);

  /* Typography Tokens with Odia Font Primacy */
  --font-sans: 'Noto Sans Oriya', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif Oriya', 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;

  /* Layout Spacing */
  --container-max: 1240px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

a, button, input, textarea, select, div, span, img, article, section {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-body);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink-heading);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-sepia);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.main-content {
  flex: 1;
  padding-top: 0.75rem;
  padding-bottom: 4rem;
}

/* Ornamental Rules & Lines */
.editorial-divider {
  border: 0;
  height: 1px;
  background: var(--border-vintage);
  margin: 2.5rem 0;
  position: relative;
}

.editorial-divider.double {
  height: 4px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  background: transparent;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink-heading);
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-heading);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--accent-sepia);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Flash Toast Notifications */
.alert-box {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background-color: #EBF4EC;
  border: 1px solid #C4E2C7;
  color: #1E4620;
}

.alert-dismiss-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  margin-left: 1rem;
}

/* Prevent body scrolling when mobile drawer is open */
body.nav-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .main-content {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }
  .section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    margin-bottom: 1.15rem;
  }
  .section-title {
    font-size: 1.025rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
  }
  .section-subtitle {
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.04em;
  }
  .editorial-divider {
    margin: 1.75rem 0;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 1.2rem;
  }
}

