/* ==========================================================================
   FOOTER COMPONENT STYLES - EUROVISION 2027 BURGAS
   ========================================================================== */

.site-footer {
  background: var(--bg-frame);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: auto;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--euro-spectrum);
  opacity: 0.85;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--space-xs);
  text-decoration: none;
}

.footer-brand-logo-heart {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand-logo-text {
  height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand-logo-heart.logo-blue,
.footer-brand-logo-text.logo-blue {
  display: block;
}

.footer-brand-logo-heart.logo-white,
.footer-brand-logo-text.logo-white {
  display: none;
}

.footer-photo-credit {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.footer-desc {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}

.footer-partner-box {
  margin-top: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--euro-accent-start);
  max-width: 320px;
  font-size: var(--font-size-xs);
}

.footer-partner-box p {
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.footer-partner-link {
  color: var(--euro-accent-end);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-partner-link:hover {
  color: var(--euro-accent-start);
}

.footer-heading {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  /* 5.45:1 on --bg-frame. --text-muted is 4.48:1 there, marginally under AA,
     but it is also used on the dark countdown strip so the token is not
     changed globally. */
  color: #4d5972;
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--euro-accent-start);
  text-decoration: underline;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.newsletter-lead {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.newsletter-input-group {
  display: flex;
  gap: 0.4rem;
}

.newsletter-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-main);
  font-size: var(--font-size-xs);
  flex: 1;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--border-focus);
}

.newsletter-note {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--euro-accent-start);
  text-decoration: underline;
}
