/* Fonts (ensure files are at public_html/fonts/) */
@font-face {
  font-family: "FuturaHeavy";
  src: url("fonts/FuturaHeavy.otf") format("opentype");
}
@font-face {
  font-family: "FuturaMedium";
  src: url("fonts/FuturaMedium.otf") format("opentype");
}
@font-face {
  font-family: "FuturaBold";
  src: url("fonts/FuturaBold.otf") format("opentype");
}

/* Root vars */
:root{
  --card-w: 420px;
  --bg: #f6f6f6;
  --card-bg: #fff;
  --accent: #2d8f3a;
  --muted: #bdbdbd;
  --radius: 16px;

  /* thickness of white in-stroke around GoFundMe iframe */
  --gfm-instroke: 1px;
}

/* Base reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "FuturaMedium", Arial, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
  display:flex;
  justify-content:center;
  align-items:flex-start; /* ensure page starts from top */
  padding: 18px;
  min-height:100vh;
  -webkit-overflow-scrolling: touch;
}

/* Center on wide screens horizontally only */
.page-bg{ width:100%; display:flex; justify-content:center; }

/* container/card */
.card{
  width:100%;
  max-width: var(--card-w);
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  border:6px solid #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  overflow: visible;
}

/* media 1 */
.media-1{ border-radius:12px; overflow:hidden; }
.media-1 img{ width:100%; height:auto; display:block; }

/* title */
.title{
  text-align:center;
  font-family: "FuturaHeavy";
  color: var(--accent);
  font-size: 20px;
  margin: 14px 0;
}

/* Description */
.description-area{ position:relative; margin-bottom:18px; }
.desc-inner{
  background: #fff;
  border-radius:12px;
  padding:16px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
  overflow:hidden;
  transition: max-height 420ms cubic-bezier(.22,.9,.25,1);
  max-height: 190px; /* collapsed height */
}
.desc-inner.expanded{ max-height: 2000px; }

.desc-heading{
  font-family: "FuturaMedium";
  line-height:1.2;
  margin:0 0 8px;
  font-size:15px;
}
.desc-content{
  font-family:"FuturaMedium";
  line-height:1.55;
  color:#111;
  font-size:15px;
}

/* fade overlay */
.desc-fade{
  position:absolute;
  left:0;
  right:0;
  bottom:0; /* as requested */
  height:110px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%);
  transition: opacity 200ms ease;
  opacity:1;
}

/* Read More button area */
.desc-control-wrap{
  position:absolute;
  left:0;
  right:0;
  bottom:10px;
  display:flex;
  justify-content:center;
  z-index:5;
}

.read-btn{
  font-family:"FuturaMedium";
  background:#111;
  color:#fff;
  border:none;
  padding:8px 16px;
  border-radius:999px;
  cursor:pointer;
  transform:translateY(8px);
  transition:transform 260ms cubic-bezier(.2,.9,.25,1), opacity 200ms;
}

/* fade disappears first (Style B), button rises */
.desc-inner.expanded ~ .desc-fade {
  opacity:0;
}
.desc-inner.expanded ~ .desc-control-wrap .read-btn {
  transform:translateY(-6px);
}

/* MEDIA SOURCE 2 */
.media-2{
  text-align:center;
  margin:18px 0;
}

/* ------------------------------------------ */
/* ✔ WHITE IN-STROKE (NO CROPPING) FIX        */
/* ------------------------------------------ */
/* Cover GoFundMe iframe outline by drawing a white outline INSIDE */
.gfm-embed iframe {
  outline: var(--gfm-instroke) solid #fff !important;   /* white mask */
  outline-offset: calc(-1 * var(--gfm-instroke)) !important; /* pull inside */
  border-radius: 12px !important;
  border:none !important;
  display:block !important;
  width:100% !important;
}

/* donations title row */
.donations-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.donations-title{
  font-family:"FuturaMedium";
  color:var(--accent);
  margin:6px 0;
  font-size:18px;
}

/* reaction button */
.react-wrap{ display:flex; align-items:center; gap:8px; }
.care-btn{
  border:1px solid #eee;
  background:#fff;
  padding:6px 10px;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-family:"FuturaBold";
  font-size:14px;
}
.care-btn[disabled]{ opacity:0.6; cursor:default; }

.emoji-img {
  width:24px;
  height:24px;
  object-fit:contain;
  display:inline-block;
}

/* donation list */
.donation-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:8px;
  padding-bottom:18px;
}
.donation{
  background:#f3f3f3;
  padding:10px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.d-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.d-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center; /* TRUE VERTICAL + HORIZONTAL CENTER */
  background: transparent;
}

.d-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* no cropping */
  display: block;
  padding: 0; /* prevents weird centering issues */
}

.d-name{
  font-family:"FuturaBold";
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.d-amount{
  font-family:"FuturaBold";
  background:#ddd;
  padding:8px 12px;
  border-radius:10px;
  min-width:74px;
  text-align:center;
}

/* admin panel */
.admin-panel{
  margin-top:14px;
  border-top:1px dashed #eee;
  padding-top:10px;
}
.admin-form{
  display:flex;
  gap:10px;
  flex-direction:column;
  margin-top:8px;
}
.admin-form input[type="text"],
.admin-form input[type="number"]{
  padding:10px;
  border-radius:8px;
  border:1px solid #eaeaea;
  font-family:"FuturaMedium";
}

/* fixed donate button */
.fixed-donate{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:12px;
  z-index:9999;
  width:92%;
  max-width:420px;
  display:flex;
  justify-content:center;
  pointer-events:auto;
}
.donate-fixed-btn{
  display:inline-block;
  width:90%;
  text-align:center;
  background:#274a34;
  color:#ccf88e;
  text-decoration:none;
  padding:16px 20px;
  border-radius:999px;
  font-family:"FuturaHeavy";
  font-size:16px;

}

/* Mobile tweaks */
@media (max-width:640px){
  body{
    align-items:flex-start;
    padding-top:20px;
  }
  :root{ --card-w: 420px; }
  .card{
    padding:14px;
    border-radius:12px;
  }
  .title{ font-size:18px; }
  .desc-inner{ max-height:220px; }
}

/* Hide by default */
#audioToggle.hidden {
  display: none;
}

/* Audio button bubble */
#audioToggle {
  position: fixed;
  bottom: 226px;     /* moved to top-right as requested */
  right: 18px;
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99999;
  user-select: none;
  padding: 0;
  border: none;
}

/* When muted */
#audioToggle.muted {
  opacity: 0.5;
}

/* Audio icon inside bubble */
#audioIcon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
}



/* Pure white bottom fade under donate button */
.bottom-fade {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 130px; /* adjust fade size */
  pointer-events: none;

  /* PURE WHITE FADE */
  background: linear-gradient(
    to top,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.85) 40%,
    rgba(255,255,255,0.45) 70%,
    rgba(255,255,255,0) 100%
  );

  z-index: 9000; /* below donate button (donate button = 9999) */
}

/* ---------------- SPLASH SCREEN ---------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  background: #ffffff; /* pure white background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999; /* above everything */
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-gif {
  width: 130px;
  height: auto;
  object-fit: contain;
}

/* Disable text selection everywhere */
* {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Disable long-press saving/copying images */
img, a {
  -webkit-touch-callout: none !important;
}

/* Disable drag */
* {
  -webkit-user-drag: none !important;
}

/* Anti-select overlay for extra hardness */
#antiInspect {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999998;
}

/* ---------------- Floating Buttons ---------------- */
.float-whatsapp,
.float-faq {
  position: fixed;
  bottom: 90px;
  right: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  cursor: pointer;
}

.float-whatsapp img {
  width: 32px;
  height: 32px;
}

.float-faq {
  bottom: 158px; /* above WhatsApp */
  font-size: 28px;
  font-weight: bold;
  color: #111;
}

.float-faq img.faq-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}


/* ---------------- FAQ POPUP ---------------- */
.faq-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 999999;
}

.faq-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 24px;
  box-shadow: 0 -6px 40px rgba(0,0,0,0.3);
  animation: faqSlideUp 0.35s ease;
}

@keyframes faqSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.faq-title {
  font-family: "FuturaHeavy";
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* Accordion layout */
.faq-item {
  border-bottom: 1px solid #ececec;
  padding: 12px 0;
}

.faq-question {
  font-family: "FuturaHeavy";
  font-size: 16px;
  cursor: pointer;
  position: relative;
  padding-right: 18px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  transition: transform .25s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  font-family: "FuturaMedium";
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease;
  font-size: 15px;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-top: 10px;
}

.faq-close-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  font-family: "FuturaHeavy";
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}
.media-2 {
  position: relative;
}

/* Guaranteed iframe blocker */
.gfm-overlay {
  position: absolute;
  top: 0;
  right: 0;

  width: 30%;    /* block right 30% */
  height: 50%;   /* block top 50% */

  background: rgba(255, 0, 0, 0); /* invisible */

  pointer-events: auto;   /* <-- IMPORTANT: BLOCKS CLICKS */
  z-index: 999999;        /* <-- FORCE ABOVE GoFundMe iframe */
}
.media-2 {
  position: relative;
}

/* TOP 50% BLOCKER */
.gfm-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;       /* full width */
  height: 50%;       /* top half only */
  background: rgba(255,255,255,0); /* transparent */
  z-index: 999999;
  pointer-events: auto;
}

/* RIGHT 30% BLOCKER */
.gfm-overlay-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;        /* right side band */
  height: 100%;      /* entire height */
  background: rgba(255,255,255,0); /* transparent */
  z-index: 999999;
  pointer-events: auto;
}

