/* ==========================================================================
   eboibd.site - Global Core Styles
   All visible text in Bangla:
   - Headings: 'Anek Bangla'
   - Body: 'Hind Siliguri'
   Mobile-First, Ultra-Fast, Warm Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-page: #fbfaf7;
  --bg-card: #ffffff;
  --bg-card-alt: #f6f5f0;
  --bg-dark: #121826;
  
  --text-main: #19202e;
  --text-muted: #5a6578;
  --text-light: #8e9bb0;
  --text-inverse: #ffffff;
  
  --border-light: #ece9df;
  --border-focus: #e11d2e;
  
  /* Brand Colors */
  --brand-red: #e11d2e;
  --brand-purple: #6d3df0;
  --brand-gradient: linear-gradient(135deg, #e11d2e 0%, #6d3df0 100%);
  --yellow-marker: #ffe14d;
  
  /* Default Book Theme (Red) */
  --theme-color: #e11d2e;
  --theme-light: rgba(225, 29, 46, 0.08);
  --theme-border: rgba(225, 29, 46, 0.2);
  --theme-gradient: linear-gradient(135deg, #e11d2e 0%, #b31020 100%);
  
  /* Typography */
  --font-heading: 'Anek Bangla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(18, 24, 38, 0.04), 0 1px 2px rgba(18, 24, 38, 0.02);
  --shadow-md: 0 6px 18px rgba(18, 24, 38, 0.06), 0 2px 6px rgba(18, 24, 38, 0.03);
  --shadow-lg: 0 14px 34px rgba(18, 24, 38, 0.08), 0 4px 12px rgba(18, 24, 38, 0.04);
  --shadow-hover: 0 20px 40px rgba(18, 24, 38, 0.12), 0 6px 16px rgba(18, 24, 38, 0.06);
  --shadow-glow: 0 0 30px rgba(225, 29, 46, 0.25);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-max: 1140px;
  --header-height: 72px;
  --mobile-bar-height: 68px;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::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-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

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

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

button {
  cursor: pointer;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 840px;
}

/* Decorative Blurred Blobs */
.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--theme-color) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #6d3df0 0%, transparent 70%);
  top: 150px;
  left: -120px;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 233, 223, 0.8);
  z-index: 100;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--brand-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-red);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  gap: 5px;
}

@media (min-width: 820px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 250, 247, 0.98);
  backdrop-filter: blur(16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 99;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-item a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

/* Sections */
.section {
  padding-top: clamp(48px, 8vw, 84px);
  padding-bottom: clamp(48px, 8vw, 84px);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 6vw, 56px) auto;
}

/* Pill Section Label */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--theme-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.pill-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--theme-color);
  display: inline-block;
}

.section-title {
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Highlighted Words & Underlines */
.theme-highlight {
  color: var(--theme-color);
  display: inline-block;
  position: relative;
}

.marker-highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.marker-highlight::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 12px;
  background-color: var(--yellow-marker);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #c9d2e0;
  padding-top: 60px;
  padding-bottom: 30px;
  margin-top: 40px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 14px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Payment Methods Labels in Footer */
.payment-methods-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.payment-pill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Utility Helpers */
.text-center { text-align: center; }
.bold { font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
