/* Enhanced Footer Styles for Teatar za tebe - Three Section Layout */

/* Main Footer Container */
.site-footer {
  width: 100%;
  background: linear-gradient(135deg, #ffe6fa 0%, #e0f7fa 50%, #fff0e6 100%);
  color: #1e2c74;
  font-family: var(--font-body);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -4px 32px rgba(215,38,61,0.08), 0 2px 24px rgba(30,44,116,0.07);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  /* Hardware acceleration for smoother scrolling */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Create new stacking context to isolate footer rendering */
  isolation: isolate;
  z-index: 1; /* Lower than modal */
}

/* ===== TOP SECTION: CALL-TO-ACTION ===== */
.footer-cta-section {
  background: linear-gradient(135deg, #d7263d 0%, #ff6b6b 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
  /* animation: float 20s ease-in-out infinite; Removed - causes jitter on scroll */
  /* Use will-change only when animating */
  will-change: auto;
}

/* @keyframes float - Removed for performance */

.footer-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.footer-cta-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  /* animation: sparkle 2s ease-in-out infinite; Removed - causes jitter */
}

/* @keyframes sparkle - Removed for performance */

.footer-cta-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-cta-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.footer-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Specific properties */
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button-primary {
  background: linear-gradient(135deg, #ebcc34 0%, #ffd700 100%);
  color: #1e2c74;
  box-shadow: 0 4px 15px rgba(235,204,52,0.3);
}

.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235,204,52,0.4);
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-button-secondary:hover {
  background: white;
  color: #d7263d;
  transform: translateY(-2px);
}

.cta-button-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-button-icon {
  transform: scale(1.2);
}

/* ===== MIDDLE SECTION: CONTENT GRID ===== */
.footer-content-grid {
  padding: 3rem 2rem;
  background: rgba(255,255,255,0.5);
}

.footer-content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-brand-logo {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  /* filter: drop-shadow() removed - very expensive, causes jitter */
  /* Use box-shadow instead for better performance */
  box-shadow: 0 4px 12px rgba(235,204,52,0.3), 0 2px 4px rgba(215,38,61,0.2);
}

.footer-column-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #d7263d;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-brand-description {
  font-size: 1rem;
  color: #1e2c74;
  opacity: 0.8;
  line-height: 1.5;
  max-width: 280px;
}

/* Navigation Links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: #1e2c74;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.3s ease, transform 0.3s ease; /* Specific properties instead of 'all' */
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d7263d, #ebcc34);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #d7263d;
  transform: translateX(5px);
}

.footer-link:hover::after {
  width: 100%;
}

/* Contact Information */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-icon {
  font-size: 1.2rem;
  opacity: 0.8;
  /* filter: drop-shadow() removed - expensive */
  /* box-shadow: 0 2px 4px rgba(235,204,52,0.3); Use if shadow needed */
}

.footer-contact-link {
  color: #1e2c74;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease; /* Specific properties */
}

.footer-contact-link:hover {
  color: #d7263d;
  transform: scale(1.05);
}

/* Social Links */
.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e2c74;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Specific properties */
}

.footer-social-link:hover {
  background: rgba(215,38,61,0.1);
  color: #d7263d;
  transform: translateX(5px);
}

.footer-social-icon {
  font-size: 1.2rem;
  /* filter: drop-shadow() removed - expensive */
  transition: transform 0.3s ease;
}

.footer-social-link:hover .footer-social-icon {
  transform: scale(1.2) rotate(5deg);
}

.footer-social-description {
  font-size: 0.9rem;
  color: #1e2c74;
  opacity: 0.7;
  line-height: 1.4;
}

/* ===== BOTTOM SECTION: COPYRIGHT AND LANGUAGE ===== */
.footer-bottom-section {
  background: rgba(30,44,116,0.05);
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(215,38,61,0.1);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #1e2c74;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-language-selector {
  display: flex;
  gap: 0.5rem;
}

.footer-lang-link {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e2c74;
  background: rgba(215,38,61,0.1);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Specific properties */
  border: 1px solid transparent;
}

.footer-lang-link:hover,
.footer-lang-link.active {
  background: #d7263d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215,38,61,0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .footer-cta-section {
    padding: 2rem 1rem;
  }
  
  .footer-cta-title {
    font-size: 2rem;
  }
  
  .footer-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .footer-content-grid {
    padding: 2rem 1rem;
  }
  
  .footer-content-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-nav {
    align-items: center;
  }
  
  .footer-contact-info,
  .footer-social-links {
    align-items: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-language-selector {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-cta-title {
    font-size: 1.8rem;
  }
  
  .footer-cta-description {
    font-size: 1rem;
  }
  
  .footer-brand-logo {
    font-size: 2.5rem;
  }
  
  .footer-column-title {
    font-size: 1.2rem;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .footer-cta-icon,
  .footer-social-icon,
  .cta-button-icon {
    animation: none;
  }
  
  .cta-button:hover,
  .footer-link:hover,
  .footer-social-link:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.cta-button:focus,
.footer-link:focus,
.footer-contact-link:focus,
.footer-social-link:focus,
.footer-lang-link:focus {
  outline: 3px solid #ebcc34;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .site-footer {
    background: white;
    border: 2px solid #1e2c74;
  }
  
  .footer-cta-section {
    background: #d7263d;
  }
  
  .footer-link,
  .footer-contact-link,
  .footer-social-link {
    color: #1e2c74;
    font-weight: 700;
  }
}

