/* ============================================
   FOOTER SYSTEM - GraceMe
   Единый источник правды для стилей футера
   Подключается через footer.php на всех публичных страницах
   ============================================ */

/* ====== MAIN FOOTER ====== */

.site-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.site-footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Footer top section */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .footer-brand {
    max-width: 100%;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Footer brand */
.footer-brand {
  flex-shrink: 0;
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-logo-icon {
  font-size: 1.5rem;
  color: var(--primary, #8b5cf6);
  line-height: 1;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text, #1e293b);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
  margin: 0;
}

/* Footer links */
.footer-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
}

@media (max-width: 768px) {
  .footer-links {
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #1e293b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem 0;
}

.footer-link-group a {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-link-group a:hover {
  color: var(--primary, #8b5cf6);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1rem;
}

.footer-bottom-left p {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.footer-bottom-left p + p {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  opacity: 0.7;
  margin-top: 0.15rem;
}

.footer-bottom-center {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-center a {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-center a:hover {
  color: var(--primary, #8b5cf6);
}

.footer-bottom-right {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0;
  }
  .footer-bottom-center {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Footer socials */
.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--text-secondary, #64748b) !important;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.footer-social:hover {
  background: var(--primary, #8b5cf6);
  border-color: var(--primary, #8b5cf6);
  color: #ffffff !important;
}

/* ====== FOOTER LEGAL INFO ====== */
.footer-bottom-content {
  padding: 1.5rem 0;
}

.footer-legal-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-legal-info p {
  margin-bottom: 0.3rem;
}

.footer-legal-info a {
  color: #8b5cf6;
  text-decoration: underline;
}

.footer-legal-info a:hover {
  color: #7c3aed;
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cookie-bg, #1e293b);
  color: var(--cookie-text, #e2e8f0);
  padding: 1rem 2rem;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--cookie-link, var(--primary-light));
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: var(--cookie-link-hover, var(--primary));
}

.cookie-banner-btn {
  background: var(--cookie-btn, var(--primary));
  color: var(--cookie-btn-text, #ffffff);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.cookie-banner-btn:hover {
  background: var(--cookie-btn-hover, var(--primary-dark));
}

.cookie-banner-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 0.875rem 1rem;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner-text {
    min-width: unset;
  }
  .cookie-banner-btn {
    width: 100%;
  }
}
