/* 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;
}

/* 🔥 REMOVE BLUE MOBILE TOUCH HIGHLIGHT */
* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
}

/* 🔥 Remove focus outline for buttons and links */
button, a {
  outline: none !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}
/* 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:1px 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:#e3e3e3;
  color:##171717;
  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-comment {
  font-family: "FuturaMedium";
  color: #444;
  font-size: 13px;
  margin-left: 54px; /* align under name */
  margin-top: -4px;
}

.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: 1000000;
  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: 10000000; /* 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: 1000000;
  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: 1000001;
}

.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;
}


/* Hide scrollbar for Chrome, Safari, Edge */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
body {
  scrollbar-width: none;
}

/* Hide scrollbar for IE, old Edge */
body {
  -ms-overflow-style: none;
}
/* ============================================
   SMOOTH SCROLLING — iOS / Premium Web Effect
   ============================================ */

/* Enable smooth scroll behavior everywhere */
html {
  scroll-behavior: smooth;
}

/* Enhance kinetic scrolling on mobile */
body {
  -webkit-overflow-scrolling: touch;
}

/* Optional: smoother scroll easing for elements */
.smooth-scroll {
  scroll-behavior: smooth;
}
/* ------------------ DONATION BAR (GoFundMe replica) ------------------ */

.donation-bar-section {
  margin: 22px 0;
  width: 100%;
}

.don-bar {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 22px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.08);
  font-family: "FuturaMedium";
}

.don-title {
  font-family: "FuturaHeavy";
  font-size: 25px;
  margin: 0 0 10px;
  color: #111;
}

.don-progress-wrap {
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 7px;
}

.don-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50 0%, #7ee778 50%, #4caf50 100%);
  background-size: 200% 100%;
  border-radius: 20px;
  animation: waveFlow 6s infinite ease-in-out;
  transition: width 1s ease-out;
}

/* Slow wave motion */
@keyframes waveFlow {
  
  50% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}




/* Stats text */
.don-stats {
  font-size: 15px;
  color: #111;
  margin-bottom: 22px;
}

/* Button + logo row */
.don-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.don-btn {
  display:inline-block;
  width:65%;
  text-align:center;
  background:#274a34;
  color:#ccf88e;
  text-decoration:none;
  padding:16px 20px;
  border-radius:999px;
  font-family:"FuturaHeavy";
  font-size:16px;
}

.don-btn:active {
  transform: scale(0.97);
}

.don-gfm-logo {
  
  width:35%;
}
.don-raised-amount {
  font-family: "FuturaBold";
  font-size: 18px;     /* slightly larger */
  color: #000;         /* true black like screenshot */
}
a.don-btn,
.donate-fixed-btn,
a {
  text-decoration: none !important;
}

/* ============================================================
   PREMIUM UI ENHANCEMENT PACK — SMOOTH, MODERN, HIGH-END
   ============================================================ */

/* 1) Global soft UI shadow + smooth transitions */
* {
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* 2) Card improvement — softer, elevated */
.card {
  background: #ffffff;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.04),
    0 10px 28px rgba(0,0,0,0.05);
  border-radius: 20px;
  border: 1px solid #fafafa;
}

/* 3) Title enhancement */
.title {
  letter-spacing: 0.3px;
  font-size: 18px;
  margin-bottom: 18px;
  color: #274a34;
}

/* 4) Description inner box premium styling */
.desc-inner {
  border: 1px solid #f2f2f2;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.04);
  padding: 20px;
}

/* 5) Read more button upgrade */
.read-btn {
  padding: 7px 17px;
  font-size: 12px;
  border-radius: 10px;
  
  letter-spacing: 0px;
}

.read-btn:active {
  transform: scale(0.95);
}

/* 6) FAQ premium box styling */
.faq-box {
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 32px rgba(0,0,0,0.28);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,0.7);
}

/* FAQ questions hover */
.faq-question:hover {
  color: #2d8f3a;
}

/* FAQ active glow */
.faq-item.active .faq-question {
  color: #2d8f3a;
  text-shadow: 0 0 6px rgba(45,143,58,0.25);
}

/* 8) Donate button enhancements */
.donate-fixed-btn,
.don-btn {
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.3px;
  background:#274a34;
  color:#ccf88e;
  border: none;
}

.donate-fixed-btn:active,
.don-btn:active {
  transform: scale(0.94);
}

/* 9) Donation rows styling */
.donation {
  background: #f7f7f7;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.d-amount {
  background: #eaeaea;
  font-size: 15px;
  font-weight: bold;
}

/* 10) Care button premium look */
.care-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
}

.care-btn:hover {
  transform: scale(0.9);
}

/* 11) Smooth scroll experience */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-overflow-scrolling: touch;
}

/* 12) Section fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.55s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* 13) Soft glow around top donor row */
.donation:first-child {
  background: #f7f7f7;
  border: 1px solid #eee;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 14) Make media 1 look premium */
.media-1 img {
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
}

/* =======================
   PREMIUM LOADING SCREEN
   ======================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000000;
  transition: opacity .7s ease, visibility .7s ease;
}

/* Top “LOADING” text design */
.loading-logo {
  font-family: "FuturaHeavy";
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: 28px;
  color: #222;
}

/* BAR CONTAINER */
.loading-bar {
  width: 72%;
  max-width: 380px;
  height: 18px;
  background: #eaeaea;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

/* FILL — premium smooth animation */
.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2d8f3a, #3cbf50);
  border-radius: 22px;
  transition: width .25s cubic-bezier(.22, .7, .35, 1);
}

/* Glow effect that follows the bar */
.loading-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: rgba(255,255,255,0.5);
  filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

/* LOADING TEXT (pulsing) */
.loading-text {
  font-family: "FuturaMedium";
  font-size: 16px;
  color: #333;
  animation: pulseText 1.6s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulseText {
  0% { opacity: .4; }
  50% { opacity: 1; }
  100% { opacity: .4; }
}

/* Hide when complete */
.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}


