/* ==========================================================================
   Frontiers of Physical Chemistry 2026 (SNBNCBS, Kolkata)
   A4 Portrait Flyer Stylesheet - Clean Light Theme & Print / Social Media Ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Conference identity — sampled from FPC2026_Poster.pdf (23 Aug 2026). */
  --ink:          #1e1e1e;
  --paper:        #f2f2f0;
  --teal:         #0b4557;
  --teal-deep:    #072f3c;
  --magenta:      #b3145f;
  --rule:         #d8d8d4;

  --primary-900: var(--teal-deep);
  --primary-800: var(--teal);
  --primary-700: var(--teal);
  --primary-600: var(--teal);

  --accent-teal:       var(--teal);
  --accent-teal-dark:  var(--teal-deep);
  --accent-teal-light: #12657d;
  --accent-gold:       var(--magenta);
  --accent-gold-dark:  #8d0f4a;

  --bg-page:         #e6e6e2;
  --bg-sheet:        #ffffff;
  --bg-surface-alt:  var(--paper);
  --bg-accent-soft:  rgba(11, 69, 87, 0.05);

  --text-main:   var(--ink);
  --text-muted:  #4a4a48;
  --text-subtle: #6b6b68;

  --border-light: var(--rule);
  --border-dark:  #c4c4bf;
  --border-teal:  rgba(11, 69, 87, 0.28);
  --border-gold:  rgba(179, 20, 95, 0.30);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Source Serif 4', 'Source Serif Pro', Charter, Georgia, 'Times New Roman', serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.35;
  font-size: 9pt;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Screen Toolbar (No Print)
   ========================================================================== */
.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(7, 19, 38, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toolbar-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-badge {
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-print {
  background: var(--magenta);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.btn-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
}

.btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-gold);
}

/* ==========================================================================
   A4 Flyer Sheet Container (210mm x 297mm)
   ========================================================================== */
.flyer-wrapper {
  display: flex;
  justify-content: center;
  padding: 80px 1rem 3rem 1rem;
}

.flyer-sheet {
  width: 210mm;
  min-height: 297mm;
  max-height: 297mm;
  background: var(--bg-sheet);
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10mm 12mm 9mm 12mm;
  box-sizing: border-box;
}

/* Background Subtle Gradient Accents */
.flyer-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-900) 0%, var(--accent-teal) 50%, var(--accent-gold) 100%);
}

.flyer-corner-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   1. Header: Dual Logos & Institution
   ========================================================================== */
.flyer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 7px;
  margin-bottom: 8px;
}

.header-logo-left {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  flex-shrink: 0;
}

.header-center-text {
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.header-inst-name {
  font-family: var(--font-heading);
  font-size: 11.5pt;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.header-inst-sub {
  font-size: 7.5pt;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.header-announce-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 7pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-teal-dark);
  background: rgba(13, 148, 136, 0.08);
  padding: 1.5px 8px;
  border-radius: 999px;
  margin-top: 3px;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.header-logo-right {
  height: 52px;
  width: auto;
  border-radius: 4px;
  border: 1.5px solid var(--accent-teal);
  padding: 1px 3px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* ==========================================================================
   2. Main Conference Title & Banner
   ========================================================================== */
.flyer-title-section {
  text-align: center;
  margin-bottom: 7px;
}

.flyer-main-title {
  font-family: var(--font-heading);
  font-size: 18.5pt;
  font-weight: 900;
  color: var(--primary-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.flyer-title-acronym {
  color: var(--accent-teal-dark);
}

.flyer-subtitle {
  font-family: var(--font-heading);
  font-size: 10.5pt;
  font-weight: 700;
  color: var(--accent-gold-dark);
  margin-bottom: 2px;
}

.flyer-tagline {
  font-size: 8.5pt;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

/* Dates & Venue Highlight Box */
.flyer-meta-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 6px 0 9px 0;
  box-shadow: 0 3px 8px rgba(7, 19, 38, 0.15);
}

.meta-banner-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5pt;
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.meta-banner-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   3. Scientific Scope & Themes Grid (8 Compact Themes)
   ========================================================================== */
.section-heading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.section-heading-title {
  font-family: var(--font-heading);
  font-size: 9.5pt;
  font-weight: 800;
  color: var(--primary-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-heading-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.themes-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.theme-compact-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 5px 6px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  border-left: 2.5px solid var(--accent-teal);
}

.theme-compact-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-teal-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.theme-compact-title {
  font-size: 7.2pt;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.25;
}

/* ==========================================================================
   4. Middle Split Section: Milestone Dates & Registration Fees
   ========================================================================== */
.middle-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  margin-bottom: 8px;
}

.flyer-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 7px 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.card-box-header {
  font-family: var(--font-heading);
  font-size: 8.5pt;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-light);
}

.box-header-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-gold-dark);
}

/* Dates Table / List */
.dates-compact-list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.date-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5pt;
  padding: 1.5px 0;
}

.date-compact-label {
  color: var(--text-muted);
  font-weight: 500;
}

.date-compact-val {
  font-weight: 700;
  color: var(--primary-900);
  background: var(--bg-surface-alt);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.date-compact-row.highlight .date-compact-val {
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent-gold-dark);
  border-color: var(--border-gold);
}

/* Pricing Table */
.fee-compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.2pt;
}

.fee-compact-table th {
  background: var(--primary-900);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 5px;
  text-align: left;
}

.fee-compact-table td {
  padding: 3.5px 5px;
  border-bottom: 1px solid var(--border-light);
}

.fee-compact-table tr:last-child td {
  border-bottom: none;
}

.fee-badge-sm {
  font-weight: 800;
  color: var(--accent-teal-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.fee-badge-sm.gold {
  color: var(--accent-gold-dark);
  background: rgba(217, 119, 6, 0.12);
}

.fee-inclusions-note {
  font-size: 6.5pt;
  color: var(--text-subtle);
  margin-top: 4px;
  line-height: 1.3;
}

/* ==========================================================================
   5. Signature Poster & Highlights Strip
   ========================================================================== */
.signature-callout {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px dashed var(--accent-teal);
  border-radius: 5px;
  padding: 5px 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-star-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.callout-text {
  font-size: 7.2pt;
  color: var(--primary-900);
  line-height: 1.3;
}

/* ==========================================================================
   6. Committees & Leadership Strip
   ========================================================================== */
.committees-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr;
  gap: 6px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.comm-col-title {
  font-family: var(--font-heading);
  font-size: 7.5pt;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.comm-col-list {
  font-size: 7pt;
  color: var(--text-muted);
  line-height: 1.35;
}

.comm-col-list strong {
  color: var(--primary-900);
}

/* ==========================================================================
   7. Footer: QR Code, Web, Email & Venue
   ========================================================================== */
.flyer-footer {
  margin-top: auto;
  border-top: 1.5px solid var(--primary-900);
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-qr-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-qr-img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px;
  background: #ffffff;
}

.footer-qr-label {
  font-size: 6.8pt;
  color: var(--text-muted);
  line-height: 1.2;
}

.footer-qr-label strong {
  color: var(--primary-900);
  font-size: 7.5pt;
  display: block;
}

.footer-contact-center {
  text-align: center;
}

.footer-web-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11pt;
  font-weight: 800;
  color: var(--accent-teal-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-email-tag {
  font-size: 7.5pt;
  color: var(--text-main);
  font-weight: 600;
  margin-top: 1px;
}

.footer-address-right {
  text-align: right;
  font-size: 6.8pt;
  color: var(--text-subtle);
  line-height: 1.25;
}

.footer-address-right strong {
  color: var(--primary-900);
}

/* ==========================================================================
   Print Optimization (@page A4 Portrait)
   ========================================================================== */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .flyer-wrapper {
    padding: 0 !important;
  }

  .flyer-sheet {
    width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10mm 12mm 8mm 12mm !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
}


/* ==========================================================================
   Identity alignment — flat planes and hairline rules, as on the poster.
   ========================================================================== */
.flyer-sheet, .flyer-sheet * { text-shadow: none !important; }
[class*="flyer"] { box-shadow: none !important; }
.flyer-sheet { box-shadow: 0 2px 10px rgba(30,30,30,0.10) !important; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.005em; }

/* ==========================================================================
   Closing call to action (mirrors the conference poster)
   ========================================================================== */
.flyer-cta {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-top: 2px solid var(--magenta);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.flyer-cta-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--magenta);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.flyer-cta-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  max-width: 46ch;
}
.flyer-cta-sub strong { color: var(--teal); }
.flyer-cta-note {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--teal);
  margin: 0;
  text-align: right;
  max-width: 26ch;
  flex: none;
}
@media print {
  .flyer-cta { break-inside: avoid; }
}
