/* ═══════════════════════════════════════
   footer.css — Минимальный подвал Picturium
   ========================================== */

.footer {
  position: relative;
  margin-top: 64px;
  padding: 24px 20px;
  text-align: left;
}

/* ── Градиентная полоса вместо border-top ── */
.footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #c44536,
    #e67e22,
    #d4a574,
    #e74c3c,
    #c44536
  );
  background-size: 200% 100%;
  animation: accent-flow 8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes accent-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

html[data-theme="dark"] .footer__accent {
  opacity: 0.5;
}

/* ── Одна строка: лого · CTA · копирайт ── */
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Лого ── */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__logo-img {
  height: 24px;
  width: auto;
}

.footer__logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(
    90deg,
    #c44536,
    #e67e22,
    #d4a574,
    #e74c3c,
    #c44536
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-shimmer 6s ease-in-out infinite;
}

html[data-theme="dark"] .footer__logo-text {
  background: linear-gradient(
    90deg,
    #e07060,
    #f0943a,
    #e6b880,
    #f06050,
    #e07060
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-shimmer 6s ease-in-out infinite;
}

/* ── Gradient CTA ── */
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #c44536, #e67e22, #e74c3c);
  background-size: 150% 100%;
  background-position: 0% 50%;
  padding: 8px 18px 8px 12px;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  box-shadow: 0 2px 8px rgba(196, 69, 54, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer__cta:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 69, 54, 0.3);
}

.footer__cta:active {
  transform: translateY(0) scale(0.98);
}

.footer__cta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

html[data-theme="dark"] .footer__cta {
  box-shadow: 0 2px 10px rgba(196, 69, 54, 0.25);
}

html[data-theme="dark"] .footer__cta:hover {
  box-shadow: 0 4px 20px rgba(196, 69, 54, 0.4);
}

/* ── Копирайт (мелкий, прижат вправо) ── */
.footer__copy {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-4);
  white-space: nowrap;
}

html[data-theme="dark"] .footer__copy {
  color: #6b625a;
}

/* ── Мобильный ── */
@media (max-width: 767px) {
  .footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .footer__copy {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ── Safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
