/* =========================================
   Page Specific Styles: do_for_others.html
   Theme: The Boomerang of Happiness
   ========================================= */

/* Zero-Based Hero Redesign: The Glass Boomerang */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    margin: -2rem -2rem 4rem -2rem; /* Bleed into container padding */
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 50%, #fdf4ff 100%);
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(251, 113, 133, 0.1);
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-interaction-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.boomerang-target-hero {
    font-size: 4rem;
    color: #fb7185;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 15px rgba(251, 113, 133, 0.3));
    position: absolute;
    top: -2rem;
    right: 2rem;
}

.boomerang-target-hero:hover {
    transform: scale(1.2) rotate(15deg);
    color: #f43f5e;
}

@keyframes mega-boomerang {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(40vw, -20vh) rotate(360deg) scale(0.5);
    }
    50% {
        transform: translate(-40vw, -40vh) rotate(720deg) scale(1.5);
    }
    75% {
        transform: translate(-20vw, 20vh) rotate(1080deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(1440deg) scale(1);
    }
}

.boomerang-fly-hero {
    animation: mega-boomerang 2.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

/* Float Animation for Background */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-bg-heart {
    position: absolute;
    color: rgba(251, 113, 133, 0.1);
    font-size: 2rem;
    pointer-events: none;
}

/* Kindness Flip Cards */
.kindness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  perspective: 1000px; /* Essential for 3D flip */
}

.kindness-card-container {
  background-color: transparent;
  height: 250px; /* Fixed height for consistent flip */
  perspective: 1000px;
}

.kindness-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

.kindness-card-container:hover .kindness-card {
  transform: rotateY(180deg);
}

/* Front & Back Common Styles */
.kindness-card .front,
.kindness-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid #f8fafc;
}

/* Front Styling */
.kindness-card .front {
  background-color: white;
}

.kindness-card .front i {
  font-size: 3rem;
  color: #f472b6; /* Pink accent */
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.kindness-card-container:hover .front i {
  transform: scale(1.1);
}

.kindness-card .front p {
  font-weight: bold;
  color: #475569;
  font-size: 1.1rem;
  margin: 0;
}

/* Back Styling */
.kindness-card .back {
  background: linear-gradient(
    135deg,
    #fff1f2,
    #fdf4ff
  ); /* Soft pink/purple gradient */
  transform: rotateY(180deg); /* Start flipped */
  border: 2px solid #fbcfe8;
}

.kindness-card .back p {
  color: #db2777; /* Deep pink text */
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.kindness-card .back .reward-icon {
  font-size: 2rem;
  color: #f59e0b; /* Golden reward */
  margin-bottom: 0.5rem;
}

/* Donation Button Breathing Animation */
@keyframes breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.7);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(219, 39, 119, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(219, 39, 119, 0);
  }
}

.breathe-btn {
  animation: breathe 3s infinite;
}

/* Styling for Content Readability over White Canvas */
h1 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 2rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  text-align: left;
}

.section-title .line {
    margin: 0;
    width: 100px;
}

.content-body {
    margin-top: 2rem;
}

p {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Specific component tweaks */
.donation-recommendation-box {
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
  padding: 2.5rem;
  background: #fffcf0;
  border-radius: 16px;
  border: 2px solid #fde68a;
  text-align: center;
}

.donation-recommendation-box h4 {
    color: #d97706;
    margin-bottom: 1rem;
}

.donation-recommendation-box .recommendation-tag {
    background: #db2777;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem; /* Space between tag and button */
    z-index: 1;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.donation-recommendation-box .donation-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.donation-recommendation-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(253, 230, 138, 0.2) 0%,
    transparent 70%
  );
  animation: rotate-bg 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.donation-recommendation-box .btn.breathe-btn {
    background: #db2777;
    width: 100%;
    max-width: 300px;
}

.donation-recommendation-box .btn.other-sites {
    background: #f59e0b;
    width: 100%;
    max-width: 300px;
}

.donation-recommendation-box .separator {
    width: 100%;
    height: 1px;
    background: #fde68a;
    margin: 0.5rem 0;
}

.donation-recommendation-box .footer-note {
    font-size: 0.85rem;
    color: #92400e;
    max-width: 500px;
}

@keyframes rotate-bg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.donation-recommendation-box > * {
  position: relative;
  z-index: 1; /* Keep content above background */
}

/* Method Navigation moved to global layout.css */

.summary-message {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: #1e293b;
}

.back-to-list {
    margin-top: 2rem;
    text-align: center;
}
