/* =============================================
   IMPRESSIVE FOOTER - BOLD & IMPACTFUL
   Chess Academy Premium Design
   ============================================= */

/* Base Footer - Rich Background */
.footer-redesigned {
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.98) 0%, 
    rgba(30, 41, 59, 0.98) 50%,
    rgba(15, 23, 42, 0.98) 100%);
  border-top: 3px solid var(--accent-primary);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* Decorative Chess Pattern */
.footer-redesigned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(var(--accent-primary-rgb), 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(var(--accent-primary-rgb), 0.06) 0%, transparent 35%);
  pointer-events: none;
}

/* Main Content Area */
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ===== BRAND SECTION - LARGE & IMPACTFUL ===== */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(var(--accent-primary-rgb), 0.4));
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
  max-width: 340px;
}

/* Social Links - Bold Circles */
.footer-social {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.footer-social a {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 2px solid rgba(var(--accent-primary-rgb), 0.4);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #0f172a;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(var(--accent-primary-rgb), 0.4);
}

/* ===== LINKS GRID - LARGER TEXT ===== */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column ul li {
  line-height: 1.4;
}

.footer-column ul li a {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 0;
}

.footer-column ul li a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  color: var(--accent-primary);
  transition: all 0.2s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
  padding-left: 20px;
}

.footer-column ul li a:hover::before {
  opacity: 1;
  left: 0;
}

/* Contact Column - Rich Icons */
.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.footer-contact ul li i {
  color: var(--accent-primary);
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.footer-contact ul li a,
.footer-contact ul li span {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact ul li a:hover {
  color: var(--accent-primary);
}

/* ===== MAP SECTION - IMPRESSIVE CARD ===== */
.footer-map-section {
  display: none !important;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
  position: relative;
  z-index: 1;
}

.footer-map-section iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 20px;
  filter: brightness(0.9) saturate(0.9);
  transition: all 0.4s ease;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(var(--accent-primary-rgb), 0.2);
}

.footer-map-section iframe:hover {
  filter: brightness(1) saturate(1);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(var(--accent-primary-rgb), 0.4);
  transform: translateY(-4px);
}

/* ===== FOOTER BOTTOM - PREMIUM BAR ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}

/* ===== RESPONSIVE - MAINTAIN IMPACT ===== */
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4rem 2rem 3rem;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    max-width: 480px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links-grid {
    gap: 2rem;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column {
    text-align: center;
  }

  .footer-column ul li a::before {
    display: none;
  }

  .footer-column ul li a:hover {
    padding-left: 0;
    color: var(--accent-primary);
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 3.5rem 1.5rem 2.5rem;
    gap: 3rem;
  }

  .footer-logo img {
    width: 56px;
    height: 56px;
  }

  .footer-logo span {
    font-size: 1.375rem;
  }

  .footer-tagline {
    font-size: 1rem;
  }

  .footer-social a {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .footer-column h4 {
    font-size: 0.9375rem;
  }

  .footer-column ul {
    gap: 0.875rem;
  }

  .footer-column ul li a {
    font-size: 1rem;
  }

  .footer-map-section {
    padding: 0 1.5rem 2rem;
  }

  .footer-map-section iframe {
    height: 220px;
    border-radius: 16px;
  }

  .footer-bottom {
    padding: 1.75rem 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 3rem 1.25rem 2rem;
  }

  .footer-logo {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .footer-map-section {
    padding: 0 1.25rem 1.5rem;
  }

  .footer-map-section iframe {
    height: 180px;
    border-radius: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }

  .footer-legal {
    gap: 1.5rem;
  }

  .footer-bottom p,
  .footer-legal a {
    font-size: 0.9375rem;
  }
}

/* ===== LIGHT MODE - KEEP IMPRESSIVE ===== */
body.light-mode .footer-redesigned {
  background: linear-gradient(135deg, 
    #f8fafc 0%, 
    #f1f5f9 50%,
    #f8fafc 100%);
  border-top-color: var(--accent-primary);
}

body.light-mode .footer-redesigned::before {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(var(--accent-primary-rgb), 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(var(--accent-primary-rgb), 0.03) 0%, transparent 35%);
}

body.light-mode .footer-logo span {
  color: var(--text-primary);
}

body.light-mode .footer-tagline,
body.light-mode .footer-column ul li a,
body.light-mode .footer-contact ul li,
body.light-mode .footer-contact ul li a,
body.light-mode .footer-contact ul li span {
  color: var(--text-secondary);
}

body.light-mode .footer-column ul li a:hover,
body.light-mode .footer-contact ul li a:hover {
  color: var(--accent-primary);
}

body.light-mode .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-bottom p,
body.light-mode .footer-legal a {
  color: var(--text-muted);
}

body.light-mode .footer-legal span {
  color: rgba(0, 0, 0, 0.2);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .footer-column ul li a,
  .footer-map-section iframe {
    transition: none;
  }

  .footer-social a:hover,
  .footer-map-section iframe:hover {
    transform: none;
  }
}

.footer-social a:focus-visible,
.footer-column ul li a:focus-visible,
.footer-legal a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}