/* Footer - Clean Modern Design
 * Lighter background, better organization
 */

/* ==========================================================================
   FOOTER BASE STYLES
   ========================================================================== */

.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 5rem 0 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

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

/* ==========================================================================
   FOOTER GRID LAYOUT - 4 columns
   ========================================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-grid-top {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid-bottom {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* ==========================================================================
   BRAND COLUMN
   ========================================================================== */

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

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

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   FOOTER LINKS COLUMNS
   ========================================================================== */

.footer-heading {
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Hide arrows - cleaner look */
.footer-links a .link-arrow {
  display: none;
}

/* External link indicator */
.footer-links a.external::after {
  content: '↗';
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: 0.25rem;
}

/* Footer address */
.footer-address {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ==========================================================================
   NEWSLETTER COLUMN
   ========================================================================== */

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

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.newsletter-input-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.875rem 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
  background: #ffffff;
  border: none;
  padding: 0.875rem 1.25rem;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   FEATURED ARTICLE CARD
   ========================================================================== */

.footer-featured {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 0;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.footer-featured:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-featured-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-featured-title {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

.footer-featured-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  display: block;
}

/* Large featured card for bottom row */
.footer-featured-large {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-featured-large .footer-featured-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-featured-large .footer-featured-desc {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER DIVIDER
   ========================================================================== */

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0 2rem;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

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

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

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-locale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-locale svg {
  opacity: 0.5;
}

.footer-locale select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}

.footer-locale select:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media screen and (max-width: 1023px) {
  .footer-container {
    padding: 0 2rem;
  }

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

  .footer-grid-top {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
  }

  .footer-brand > div:first-child {
    max-width: 300px;
  }

  .footer-social {
    margin-top: 0;
  }

  .footer-grid-bottom .footer-column:nth-child(2),
  .footer-grid-bottom .footer-column:nth-child(3) {
    display: none;
  }

  .footer-grid-bottom .footer-column:last-child {
    grid-column: 2;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media screen and (max-width: 767.98px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-container {
    padding: 0 1.5rem;
  }

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

  .footer-grid-top {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-brand {
    grid-column: span 2;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .footer-brand > div:first-child {
    max-width: 100%;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-heading {
    margin-bottom: 1rem;
    font-size: 0.7rem;
  }

  .footer-links {
    gap: 0.6rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .newsletter-input-wrapper {
    flex-direction: column;
  }

  .newsletter-btn {
    border-radius: 0 0 5px 5px;
  }

  .footer-grid-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid-bottom .footer-column:nth-child(2),
  .footer-grid-bottom .footer-column:nth-child(3) {
    display: none;
  }

  .footer-grid-bottom .footer-column:first-child {
    grid-column: 1;
  }

  .footer-grid-bottom .footer-column:last-child {
    grid-column: 2;
  }

  .footer-featured {
    margin-top: 0;
  }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================================== */

@media screen and (max-width: 479px) {
  .footer-container {
    padding: 0 1rem;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-grid-bottom {
    grid-template-columns: 1fr;
  }

  .footer-grid-bottom .footer-column:nth-child(2),
  .footer-grid-bottom .footer-column:nth-child(3) {
    display: none;
  }

  .footer-grid-bottom .footer-column:first-child,
  .footer-grid-bottom .footer-column:last-child {
    grid-column: 1;
  }

  .footer-legal {
    gap: 0.75rem 1rem;
  }

  .footer-legal a {
    font-size: 0.75rem;
  }
}
