/* css/components/footer.css */

/* ── Footer stripe bar (moved from header) ── */
.footer-stripe-bar {
  height: 12px;
  background: linear-gradient(
    to bottom,
    #CD1025 0%, #CD1025 33.33%,
    #FFFFFF 33.33%, #FFFFFF 66.66%,
    #002A7E 66.66%, #002A7E 100%
  );
}

/* ── Main footer – British Mod aesthetic ── */
.main-footer {
  background: #002A7E;
  border-top: none;
  padding: 0;
  color: #fff;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}


.footer-deco-left {
    left: -90px;
    object-position: left bottom;
}

.footer-deco-left{
    position: absolute;
    bottom: 0;
    height: 100%;
    max-height: 380px;
    width: auto;
    pointer-events: none;
    user-select: none;
}

.footer-deco-right {
    right: -100px;
    object-position: right bottom;
}
.footer-deco-right {
    position: absolute;
    bottom: -50px;
    height: 100%;
    max-height: 480px;
    width: auto;
    pointer-events: none;
    user-select: none;
}

/* Hide decorative footer images on narrow screens to prevent overlapping footer content */
@media (max-width: 900px) {
    .footer-deco-left,
    .footer-deco-right {
        display: none;
    }
}

/* Hide decorative footer images when zoom exceeds 110% to prevent overlapping text */
@media (min-resolution: 1.1dppx) {
    .footer-deco-left,
    .footer-deco-right {
        display: none;
    }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid #CD1025;
}

.footer-col h4 i {
  color: #CD1025;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.footer-col ul li a i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  width: 14px;
  text-align: center;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-col ul li a:hover i {
  color: #CD1025;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* ── Clickable footer column title links ── */
.footer-col h4 a.footer-col-title-link {
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.footer-col h4 a.footer-col-title-link:hover {
  opacity: 0.8;
}

.footer-col h4 a.footer-col-title-link i {
  color: #CD1025;
}



/* Estilos mejorados para botones del exercise-footer */
.exercise-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 2px solid #eef2f6;
  justify-content: center;
}

.exercise-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-width: 140px;
}

@media (max-width: 520px) {
  .exercise-footer {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

.exercise-footer button i {
  font-size: 16px;
}

/* Botón Check Answers */
.btn-check {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
}
.btn-check:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-check:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Botón Explanations */
.btn-explanations {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
}
.btn-explanations:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Botón Toggle answer view — violeta + iconos visibility */
.btn-toggle-answer {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border: none;
}
.btn-toggle-answer:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.btn-toggle-answer .btn-toggle-answer-icon {
  font-size: 1.25rem;
}

/* Botón Reset */
.btn-reset {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
  border: none;
}
.btn-reset:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Botones Previous/Next */
.btn-prev, .btn-next {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
}
.btn-prev:hover, .btn-next:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Finish Section button — green accent */
.btn-finish-section {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}
.btn-finish-section:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

@media (max-width: 768px), (max-height: 520px) and (orientation: landscape) and (max-width: 1024px) {
  .exercise-footer {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 10px max(10px, env(safe-area-inset-bottom));
    border-top: 2px solid #eef2f6;
  }

  .exercise-footer button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    gap: 0;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    justify-content: center;
  }

  .exercise-footer button span:not(.material-symbols-outlined),
  .exercise-footer button .btn-toggle-answer-label {
    display: none !important;
  }

  .exercise-footer button i,
  .exercise-footer button .material-symbols-outlined,
  .exercise-footer button .btn-toggle-answer-icon {
    margin: 0;
    font-size: 1.05rem;
    flex-shrink: 0;
  }
}

