/* UNGHA Mission Guide: Chrzest bez stresu Stylesheet */

#ungha-mission-wrapper {
  color: #2c2523;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  padding-bottom: 50px;
}

/* Progressive enhancement SSR hiding */
#ungha-mission-wrapper.js-interactive-ready .role-content:not(.active) {
  display: none;
}

/* Hero Section */
.mission-hero-banner {
  background: linear-gradient(135deg, #fcfaf7 0%, #f4ede3 100%);
  border: 1px solid #ebdcd0;
  border-radius: 14px;
  padding: 40px 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(179, 139, 89, 0.08);
}
.mission-badge {
  display: inline-block;
  background: #b38b59;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 15px;
}
.mission-h1 {
  font-size: 32px;
  font-weight: 800;
  color: #2c2523;
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.25;
}
.mission-lead {
  font-size: 16px;
  color: #554842;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

/* Emergency Panic Bar */
.panic-bar-container {
  background: #ffffff;
  border: 2px solid #ebdcd0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  text-align: center;
}
.panic-bar-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.btn-panic-calm, .btn-panic-fire {
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-panic-calm {
  background: #fcfaf7;
  color: #554842;
  border-color: #ebdcd0;
}
.btn-panic-calm:hover, .btn-panic-calm.active {
  background: #ede3d8;
  color: #2c2523;
  border-color: #b38b59;
}
.btn-panic-fire {
  background: #fff3ed;
  color: #c0392b;
  border-color: #f5b7a1;
}
.btn-panic-fire:hover, .btn-panic-fire.active {
  background: #c0392b;
  color: #ffffff;
  border-color: #c0392b;
}

/* Panic Express Banner */
.panic-express-banner {
  display: none;
  background: #fff8f5;
  border: 2px dashed #e74c3c;
  border-radius: 10px;
  padding: 18px 24px;
  margin-top: 15px;
  text-align: left;
  color: #2c2523;
}
.panic-express-banner.show {
  display: block;
}

/* Role Selector Tabs */
.role-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 35px;
}
.role-btn {
  flex: 1 1 280px;
  background: #ffffff;
  border: 2px solid #ebdcd0;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.role-btn:hover {
  border-color: #b38b59;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(179, 139, 89, 0.12);
}
.role-btn.active {
  background: #fcfaf7;
  border-color: #b38b59;
  box-shadow: 0 0 0 3px rgba(179, 139, 89, 0.2);
}
.role-btn-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c2523;
  margin-bottom: 4px;
}
.role-btn-sub {
  font-size: 13px;
  color: #7b6d66;
}

/* Narrative Cards */
.narrative-box {
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 14px;
  padding: 32px 30px;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.narrative-quote {
  font-style: italic;
  font-size: 16px;
  color: #6a5e59;
  border-left: 4px solid #b38b59;
  padding: 14px 20px;
  background: #fcfaf7;
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
}
.narrative-quote cite {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #b38b59;
  margin-top: 6px;
  font-style: normal;
}
.narrative-content p {
  font-size: 15px;
  margin-bottom: 16px;
}
.narrative-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2c2523;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Distinctive Points / Strategy Boxes */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.strategy-card {
  background: #fcfaf7;
  border: 1px solid #ebdcd0;
  border-radius: 10px;
  padding: 16px;
}
.strategy-card strong {
  color: #b38b59;
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

/* WhatsApp Share Box */
.whatsapp-box {
  background: #f0fbf4;
  border: 2px solid #99e2b4;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 25px 0;
}
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-block;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.2s;
}
.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  text-decoration: none;
}

/* Liturgical Alert Box */
.liturgical-alert {
  background: #fffcf2;
  border: 2px solid #f1c40f;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 25px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Interactive Size Calculator */
.size-calculator {
  background: #fcfaf7;
  border: 2px solid #ebdcd0;
  border-radius: 12px;
  padding: 22px;
  margin: 25px 0;
}
.size-calc-options label {
  display: block;
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.size-calc-options label:hover, .size-calc-options input:checked + span {
  color: #b38b59;
}
.size-calc-result {
  background: #ffffff;
  border-left: 4px solid #b38b59;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 15px;
  font-size: 15px;
  color: #2c2523;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Live Product Cards */
.products-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c2523;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0e6dc;
  padding-bottom: 8px;
}
.live-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.live-product-card {
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.live-product-card:hover {
  transform: translateY(-4px);
  border-color: #b38b59;
  box-shadow: 0 8px 24px rgba(179, 139, 89, 0.15);
}
.live-product-img-wrap {
  width: 100%;
  height: 220px;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.live-product-img-wrap img {
  max-width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.live-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.live-product-model {
  font-size: 12px;
  color: #8c7d75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.live-product-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c2523;
  margin-bottom: 10px;
  line-height: 1.35;
  min-height: 40px;
}
.live-product-price {
  font-size: 18px;
  font-weight: 800;
  color: #b38b59;
  margin-bottom: 14px;
  margin-top: auto;
}
.btn-live-product {
  background: #b38b59;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-live-product:hover {
  background: #9f7645;
  color: #ffffff;
  text-decoration: none;
}
.fallback-category-links {
  margin-top: 10px;
  font-size: 14px;
  color: #6a5e59;
}
.fallback-category-links a {
  color: #b38b59;
  font-weight: 600;
  text-decoration: underline;
  margin-right: 12px;
}

/* Church Scenario 1:1 */
.church-section-wrapper {
  background: #ffffff;
  border: 2px solid #b38b59;
  border-radius: 16px;
  padding: 35px 30px;
  margin-top: 45px;
  margin-bottom: 40px;
  box-shadow: 0 6px 25px rgba(179, 139, 89, 0.1);
}
.church-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 2px solid #ebdcd0;
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.church-header-bar h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2c2523;
  margin: 0;
}
.btn-church-toggle {
  background: #2c2523;
  color: #ffffff;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-church-toggle:hover {
  background: #b38b59;
  color: #ffffff;
}

.act-title {
  background: #fcfaf7;
  border-left: 5px solid #b38b59;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: 800;
  color: #2c2523;
  margin-top: 35px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
}
.act-desc {
  font-style: italic;
  color: #6a5e59;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Dialogues and Speech Bubbles */
.dialogue-item {
  margin-bottom: 20px;
}
.dialogue-speaker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  color: #7b6d66;
}
.dialogue-speaker.priest-speaker {
  color: #4a4a4a;
}
.dialogue-speaker.response-speaker {
  color: #b38b59;
}
.speech-bubble {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.25s ease;
}
.speech-bubble.priest-bubble {
  background: #f7f5f2;
  border: 1px solid #ebdcd0;
  color: #332d2a;
}
.speech-bubble.role-highlight {
  background: #ffffff;
  border: 2px solid #ebdcd0;
  color: #2c2523;
}
.speech-bubble.role-highlight strong {
  font-size: 17px;
}

/* Interactive Highlighting of Roles */
.speech-bubble.role-highlight.is-target {
  background: #fffcf0;
  border-color: #b38b59;
  box-shadow: 0 3px 12px rgba(179, 139, 89, 0.2);
  transform: scale(1.01);
}
.speech-bubble.role-highlight.is-muted {
  opacity: 0.55;
  background: #faf8f6;
  border-color: #ebdcd0;
}

/* Spotlight boxes for Act IV */
.spotlight-box {
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}
.spotlight-box.godmother-spotlight {
  background: #fdfaf6;
  border: 2px solid #d4a373;
}
.spotlight-box.godfather-spotlight {
  background: #f7f9fa;
  border: 2px solid #4a6fa5;
}
.spotlight-box.is-muted {
  opacity: 0.45;
}

/* Epilogue Prezentowy */
.epilogue-box {
  background: #fcfaf7;
  border: 1px solid #ebdcd0;
  border-radius: 14px;
  padding: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.epilogue-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 12px;
  color: #2c2523;
}

/* Sticky Mobile Church Bar */
.sticky-church-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 420px;
  width: 92%;
  background: #2c2523;
  border-radius: 40px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sticky-church-bar button, .sticky-church-bar a {
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border: none;
  text-decoration: none;
  text-align: center;
}
.btn-sticky-church {
  background: #b38b59;
  color: #ffffff !important;
  flex: 1;
}
.btn-sticky-exit {
  display: none;
  background: #e74c3c;
  color: #ffffff !important;
  flex: 1;
}

/* ------------------------------------------------------------------------- */
/* CHURCH MODE (FULL-SCREEN HIGH-CONTRAST FOR SMARTPHONES INSIDE CHURCH)     */
/* ------------------------------------------------------------------------- */
body.church-mode-on header,
body.church-mode-on nav,
body.church-mode-on #top,
body.church-mode-on footer,
body.church-mode-on .breadcrumb,
body.church-mode-on .mission-hero-banner,
body.church-mode-on .panic-bar-container,
body.church-mode-on .role-tabs-wrapper,
body.church-mode-on .narrative-box,
body.church-mode-on .epilogue-box,
body.church-mode-on .ungha-guide-widget-box {
  display: none !important;
}

body.church-mode-on {
  background: #ffffff !important;
  padding-top: 10px !important;
}
body.church-mode-on .church-section-wrapper {
  border: 3px solid #2c2523 !important;
  box-shadow: none !important;
  padding: 15px !important;
  margin-top: 0 !important;
}
body.church-mode-on .speech-bubble {
  font-size: 19px !important;
  line-height: 1.55 !important;
}
body.church-mode-on .speech-bubble.role-highlight.is-target {
  background: #fff8dc !important;
  border: 3px solid #000000 !important;
  color: #000000 !important;
  font-size: 21px !important;
}
body.church-mode-on .btn-sticky-church {
  display: none;
}
body.church-mode-on .btn-sticky-exit {
  display: block;
}

@media (max-width: 767px) {
  .mission-h1 {
    font-size: 24px;
  }
  .church-section-wrapper {
    padding: 20px 14px;
  }
  .narrative-box {
    padding: 20px 16px;
  }
}
