/* ============================================================================
   Footer Component Styles - Materialographic Design
   ============================================================================ */

.main-content {
  flex: 1;
  /* Ensures the main content area takes up available space, pushing the footer down */
}

/* Footer styles */
.footer {
  margin-top: 5rem;
  position: relative;
}

/* Footer Container - Glassmorphic Design */
.footer-container {
  width: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(31, 41, 55, 0.3);
  box-shadow: 0 -20px 25px -5px rgba(0, 0, 0, 0.1), 0 -10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

/* Hexagon Background Pattern */
.footer-hexagons {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  overflow: hidden;
}

.footer-hexagons-svg {
  position: absolute;
  inset: 0;
}

/* Gradient Overlay */
.footer-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.5), rgba(17, 24, 39, 1));
  pointer-events: none;
}

/* Footer Content Wrapper */
.footer-content-wrapper {
  position: relative;
  z-index: 10;
  padding: 4rem 1.25rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-content-wrapper {
    padding: 5rem 1.25rem 5rem;
  }
}

/* Footer Content Grid */
.footer-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }
}

/* Footer Brand Section */
.footer-brand {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 4;
  }
}

.footer-brand-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 8rem;
  width: auto;
}

.footer-brand-description {
  font-size: 1rem;
  color: #d1d5db;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 28rem;
}

.footer-brand-link-wrapper {
  margin-top: 0.5rem;
}

.footer-brand-link {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-brand-link:hover {
  color: #ffffff;
}

/* Footer Column */
.footer-column {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .footer-column {
    grid-column: span 2;
  }
}

.footer-column-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.footer-column-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column-list li {
  line-height: 1.5;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
}

/* Social Section */
.footer-social-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.5);
}

@media (min-width: 768px) {
  .footer-social-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
  margin: 1rem 0 0 0;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.footer-social-link:hover {
  transform: translateY(-3px);
}

.footer-social-link .icon-svg {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.3s ease;
}

.footer-social-link:hover .icon-svg {
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.5);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-bottom-left {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
  }
}

.footer-copyright,
.footer-ownership {
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-separator {
  display: none;
  color: #4b5563;
}

@media (min-width: 768px) {
  .footer-separator {
    display: inline;
  }
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-bottom-link {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.footer-bottom-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ffffff;
}

.footer-bottom-link::after {
  display: none;
}

/* Legacy Support - Keep old classes for backward compatibility */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.footer-logo {
  flex: 1;
  margin-bottom: 20px;
  position: relative;
}

.footer-logo img {
  max-width: 220px;
  height: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-logo img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.footer-columns {
  flex: 3;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f5f5f5;
  font-weight: 600;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

.footer-column h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #f5f5f5 0%, rgba(245, 245, 245, 0.5) 100%);
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 80px;
}

/* Legacy styles - overridden by new .footer-link class */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0;
  position: relative;
}

/* Ensure new footer-link styles take precedence */
.footer-column ul li a.footer-link,
.footer-column-list li a.footer-link {
  color: #9ca3af !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: inline-block !important;
  position: relative !important;
}

.footer-column ul li a.footer-link::after,
.footer-column-list li a.footer-link::after {
  display: none !important;
}

.footer-column ul li a.footer-link:hover,
.footer-column-list li a.footer-link:hover {
  color: #ffffff !important;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875em;
  color: #bbbbbb;
  letter-spacing: 0.3px;
}

.icon-svg {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.3s ease;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(55, 65, 81, 0.5);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-text {
  color: #d1d5db;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: #bfdbfe;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner-accept {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-banner-accept:hover {
  background: #1d4ed8;
}

.cookie-banner-decline {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #4b5563;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cookie-banner-decline:hover {
  color: #d1d5db;
  border-color: #6b7280;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive Styles */
@media (max-width: 640px) {
  .footer-content-wrapper {
    padding: 3rem 1rem 4rem;
  }

  .footer-content-grid {
    gap: 2rem;
  }

  .footer-brand-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-content {
    text-align: center;
  }

  .footer-bottom-left {
    flex-direction: column;
    gap: 0.5rem;
  }
}
