@import url("./common.css");

/* ===========================
   Header
=========================== */
header {
  box-shadow: var(--shadow);
}

/* ===========================
   Donate Section
=========================== */
.donate-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===========================
   Footer
=========================== */
footer {
  text-align: center;
  padding: 2rem 0;
  color: white;
  font-size: 0.95rem;
  background-color: var(--dark-light-blue);
  margin-top: 2rem;
}

footer p {
  margin: 0.5rem 0;
}

/* ===========================
   Call-To-Action (CTA) Section
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--dark-light-blue) 0%, var(--main-color) 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 2rem;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* CTA Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  margin: 0.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--dark-light-blue);
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgb(255 255 255 / 10%);
  transform: scale(1.05);
}

/* ===========================
   Info Boxes
=========================== */
.info-box {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--dark-light-blue);
  transition: all 0.3s ease;
}

.info-box:hover {
  box-shadow: 0 4px 12px rgb(90 123 148 / 15%);
  transform: translateX(4px);
}

.info-box h2 {
  color: var(--dark-light-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.info-box p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.location-info p,
.location-note p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.map-info p {
  margin: 0.25rem 0;
  color: var(--text-light);
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Info Box Variants */
.info-box.hours {
  border-left-color: var(--medium-blue);
}

.info-box.hours h2 {
  color: var(--medium-blue);
}

.info-box.highlight {
  border-left-color: var(--medium-blue);
  background: #f0f5fa;
}

.info-box.highlight h2 {
  color: var(--medium-blue);
}

.info-box.warning {
  border-left-color: #A20F0B;
  background: #ffebee;
}

.info-box.warning h2 {
  color: #A20F0B;
}

/* ===========================
   Location Info
=========================== */
.location-info {
  margin-bottom: 1rem;
}

.location-note {
  background: #f0f5fa;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  border-left: 4px solid var(--medium-blue);
}

.location-note p:first-child {
  color: var(--dark-light-blue);
  font-weight: 600;
}

/* Map info text styling */
.map-info {
  padding: 0.75rem 1rem;
  background: #f5f7f9;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  font-size: 0.85rem;
}

.map-info p:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

/* ===========================
   Map Styles
=========================== */
.map-container {
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
  background: white;
}

#map {
  width: 100%;
  height: 350px;
  border-radius: 6px;
  display: block;
  background: #e8f4f8;
  cursor: grab;
  user-select: none;
}

#map:active {
  cursor: grabbing;
}

#map .marker {
  cursor: pointer;
}

#map .marker:hover path {
  filter: brightness(1.2);
}

#map text.zoom-in,
#map text.zoom-out {
  user-select: none;
  transition: all 0.2s ease;
  fill: #333;
  font-family: Arial, Helvetica, sans-serif;
}

#map text.zoom-in:hover,
#map text.zoom-out:hover {
  fill: var(--dark-light-blue);
}

.leaflet-control-attribution {
  font-size: 1rem;
  padding: 8px 14px;
  background: rgb(255 255 255 / 90%);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
}

.gmaps-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.gmaps-link:hover {
  text-decoration: underline;
}

.gmaps-icon {
  width: 20px;
  height: 20px;
}

/* ===========================
   Hours Table
=========================== */
.hours-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.hour-row .day {
  font-weight: 600;
  color: var(--text-dark);
}

.hour-row .time {
  background: var(--medium-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===========================
   Donation List
=========================== */
.donate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.donate-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--text-light);
}

.donate-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dark-light-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

.info-box.warning .donate-list li::before {
  content: "✕";
  color: #A20F0B;
}

/* ===========================
   Responsive Design
=========================== */
@media (width <= 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .donate-section {
    padding: 1rem;
  }

  .info-box {
    padding: 1rem;
  }

  .info-box h2 {
    font-size: 1.1rem;
  }

  .hour-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .hour-row .time {
    align-self: flex-start;
  }

  .cta-section {
    padding: 1.5rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.2rem;
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  #map {
    height: 250px;
  }
}
