/* ============================================================================
   MODERN FOOTER STYLES
   ============================================================================ */

.footer {
  background-color: #ffffff;
  border-top: 2px solid #e9ecef;
  color: #6c757d;
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.footer-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  padding: 0 !important;
}

.footer-section p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-section svg {
  width: 20px;
  height: 20px;
  stroke: #007bff;
  flex-shrink: 0;
}

.footer-center {
  justify-content: center;
  text-align: center;
}

.footer-right {
  justify-content: flex-end;
  text-align: right;
}

.footer-section h6 {
  color: var(--page-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  margin: 0;
  color: var(--page-text-secondary);
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: #007bff;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.footer-section a:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  text-decoration: none;
}

/* Footer Links List */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 500;
}

.footer-links a::before {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--primary);
}

.footer-social a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

.footer-credit {
  text-align: center;
  flex: 1;
}

.footer-credit a {
  color: var(--primary);
  font-weight: 600;
}

/* Footer Payment Methods */
.footer-payments {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.footer-payments img {
  height: 24px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-payments img:hover {
  opacity: 1;
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  padding: var(--spacing-2xl) 0;
}

.content-wrapper {
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Global Layout with Sticky Footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.footer {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-section,
  .footer-center,
  .footer-right {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-credit {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-section {
    justify-content: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

@media (max-width: 576px) {
  .footer {
    padding: var(--spacing-lg) 0;
  }

  .footer-content {
    gap: var(--spacing-md);
  }

  .footer-section {
    gap: var(--spacing-md);
  }

  .footer-section h6 {
    margin-bottom: var(--spacing-sm);
  }

  .footer-links {
    gap: var(--spacing-sm);
  }

  .footer-social {
    gap: var(--spacing-sm);
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }

  .footer-bottom {
    font-size: var(--font-size-xs);
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
  }
}

/* Dark Mode Adjustments */
body.inverted .footer {
  background-color: var(--dark-surface);
  border-top-color: var(--gray-700);
}

body.inverted .footer-section {
  color: var(--dark-text-secondary);
}

body.inverted .footer-section p {
  color: var(--dark-text-secondary);
}

body.inverted .footer-section svg {
  stroke: #60a5fa;
}

body.inverted .footer-section a {
  color: var(--dark-text-secondary);
}

body.inverted .footer-section a:hover {
  color: #60a5fa;
}

body.inverted .footer-section h6 {
  color: var(--dark-text);
}

body.inverted .footer-bottom {
  border-top-color: var(--gray-700);
  color: var(--dark-text-secondary);
}

body.inverted .footer-social a {
  background-color: var(--dark-surface-light);
  color: var(--primary-light);
}

body.inverted .footer-social a:hover {
  background-color: var(--primary);
  color: var(--dark-bg);
}

/* Print Styles */
@media print {
  .footer {
    border-top: 2px solid var(--black);
  }

  .footer-section a {
    color: var(--black);
    text-decoration: underline;
  }

  .footer-social {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .footer-section a::before,
  .footer-social a,
  .footer-payments img {
    transition: none;
  }
}

/* Focus States for Keyboard Navigation */
.footer-section a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading State */
.footer.loading {
  opacity: 0.5;
  pointer-events: none;
}
