/* ============================================================================
   MAIN APP FOOTER COMPONENT
   Used on: All main app pages (Articles, Categories, Profiles, Search, etc.)
   ============================================================================ */

/* ============================================================================
   NEWSLETTER CTA SECTION
   ============================================================================ */

.newsletter-section {
  background: var(--color-bg-secondary);
  padding: var(--space-16) 0;
}

.newsletter-card {
  background-color: var(--color-forest);
  background-image: url('../images/newsletter-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for better text readability */
.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 48, 45, 0.3);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-sand);
  margin-bottom: var(--space-3);
  text-align: center;
}

@media (max-width: 768px) {
  .newsletter-title {
    font-size: var(--font-size-xl);
  }
}

.newsletter-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-sand-dark);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--color-forest-light);
  border-radius: var(--radius-lg);
  background: var(--color-forest-light);
  color: var(--color-sand);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  transition: var(--transition-all);
}

.newsletter-input::placeholder {
  color: var(--color-sand-darker);
  font-family: var(--font-family-body);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-coral);
  background: var(--color-forest);
}

.newsletter-submit {
  padding: var(--space-4) var(--space-6);
  background: var(--color-coral);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-all);
}

.newsletter-submit:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral);
}

.newsletter-submit:active {
  transform: translateY(0);
}

.newsletter-submit:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 2px;
}

/* Success Message */
.newsletter-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(56, 161, 105, 0.2);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  color: var(--color-success);
  font-size: var(--font-size-base);
  margin-top: var(--space-4);
}

.newsletter-success.show {
  display: flex;
}

.newsletter-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================================
   FOOTER NAVIGATION LINKS
   ============================================================================ */

.footer-nav {
  background: var(--color-forest);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-forest-light);
}

.footer-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .footer-nav-list {
    gap: var(--space-4);
  }
}

.footer-nav-link {
  color: var(--color-sand-dark);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: var(--transition-all);
}

.footer-nav-link:hover {
  color: var(--color-sand);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.footer-nav-link:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

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

.footer-bottom {
  background: var(--color-forest);
  padding: var(--space-6) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--color-sand-darker);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .footer-actions {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-forest-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  transition: var(--transition-all);
}

.social-link:hover {
  background: var(--color-coral);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-forest-light);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-sand);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: var(--transition-all);
  text-decoration: none;
}

.language-toggle:hover {
  background: var(--color-forest-lighter);
  text-decoration: none;
}

.language-toggle:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.language-toggle svg {
  width: 16px;
  height: 16px;
}
