:root {
  --footer-primary-color: #2ECC71;
  --footer-secondary-color: #27AE60;
  --footer-accent-color: #F1C40F;
  --footer-dark-bg: #2C3E50;
  --footer-light-text: #ECF0F1;
  --footer-shadow-color: rgba(0, 0, 0, 0.2);
  --footer-font-heading: 'Poppins', sans-serif;
  --footer-font-body: 'Open Sans', sans-serif;
}

/* ====================
   FOOTER STYLES
   ==================== */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: rgb(36, 33, 33);
  color: rgb(158, 173, 185);
  padding: 1em;
  opacity: 0.7;
}

.continent {
  width: 100%;
  max-width: 1300px;
  margin-right: auto;
  margin-left: auto;
}

.flex-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
}

#viktorina-link {
  cursor: pointer;
}

/* ====================
   DIALOG STYLES
   ==================== */
dialog {
  --dialog-padding: 1.5rem;
  width: 95%;
  border: none;
  border-radius: 1.5rem;
  padding: var(--dialog-padding);
  max-width: min(90%, 800px);
  background: linear-gradient(145deg, var(--footer-dark-bg) 0%, #34495e 100%);
  color: var(--footer-light-text);
  box-shadow: 0 1rem 3rem var(--footer-shadow-color);
  font-family: var(--footer-font-body);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

dialog h1 {
  font-family: var(--footer-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
  color: var(--footer-primary-color);
  text-shadow: 0 2px 4px var(--footer-shadow-color);
  line-height: 1.3;
}

/* ====================
   ACCORDION STYLES
   ==================== */
.accordion-btn {
  background: linear-gradient(145deg, var(--footer-dark-bg), #34495e);
  color: var(--footer-light-text);
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  margin-top: 1rem;
  border-radius: 1rem;
  font-family: var(--footer-font-heading);
  font-weight: 600;
  box-shadow: 0 4px 10px var(--footer-shadow-color);
  position: relative;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--footer-accent-color);
  font-weight: bold;
}

.accordion-btn.active::after {
  content: '-';
  width: .4em;
  font-size: 2em;
  padding-bottom: .4rem;
  transform: translateY(-50%) rotate(180deg);
  color: var(--footer-accent-color);
  transition: transform 0.3s ease;
  font-weight: bold;
}

.accordion-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  background: rgba(255, 255, 255, 0.05);
  color: var(--footer-light-text);
  border-radius: 0 0 1rem 1rem;
  opacity: 0;
}

.accordion-content.open {
  opacity: 1;
}

.accordion-content p {
  margin: 1rem 0;
  font-family: var(--footer-font-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* ====================
   DONATION STYLES
   ==================== */
.donation-content {
  display: grid;
}

.donation-text {
  display: flex;
  flex-direction: column;
  margin-top: 1.4rem;
}

.donation-text p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  opacity: 0.9;
}

.donation-buttons {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.donation-buttons hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 1rem 0;
}

.donation-buttons h3 {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  margin: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  transition: transform 0.2s ease;
}

.donation-buttons h3:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.donation-button {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: var(--footer-font-heading);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px var(--footer-shadow-color);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  z-index: 0;
}

.donation-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  animation-name: shine;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes shine {
  0% {
    left: -120%
  }
  50% {
    left: 100%
  }
  100% {
    left: 320%
  }
}

#hero-donation::before {
  animation-delay: 0s;
}

#star-donation::before {
  animation-delay: 1s;
  animation-duration: 2.8s;
}

#legend-donation::before {
  animation-delay: 2s;
  animation-duration: 3.2s;
}

.donation-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.donation-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

.donation-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

#hero-donation {
  background: rgba(0, 123, 255, 0.15);
}

#star-donation {
  background: rgba(255, 193, 7, 0.15);
}

#legend-donation {
  background: rgba(155, 89, 182, 0.15);
}

#close-dialog {
  background: #e74c3c;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  margin-top: 2rem;
  transition: all 0.2s ease;
}

#close-dialog:hover {
  background: #c0392b;
  transform: scale(0.98);
}

#close-dialog:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px var(--footer-shadow-color);
}
