/* ==========================================================================
   Promptnote Modern Footer Design System
   ========================================================================== */

.main-footer,
.site-footer {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.4) 0%, rgba(2, 6, 18, 0.95) 100%);
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  margin-top: 80px;
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font);
}

/* Ambient Background Glow */
.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(0, 104, 253, 0.12) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.footer-container {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  z-index: 1;
}

/* Top Grid Layout */
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: 56px;
  align-items: start;
}

/* Brand Column */
.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
}

.footer-brand-name img {
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 104, 253, 0.3);
}

.footer-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-brand-text .accent {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8, #0068fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand-desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 380px;
}

/* Platform Status Pill */
.footer-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 500;
  width: fit-content;
  margin-top: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Brand CTA Buttons */
.footer-brand-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-btn-primary {
  background: linear-gradient(135deg, #0068fd, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 104, 253, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-btn-primary:hover {
  background: linear-gradient(135deg, #0a84ff, #38bdf8);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 104, 253, 0.4);
  color: #ffffff;
}

.footer-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid var(--glass-border);
}

.footer-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1.5px);
}

/* Nav Columns Grid */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(56, 189, 248, 0.4);
  border-radius: 1px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list li {
  margin: 0;
  padding: 0;
}

.footer-link-list a {
  display: inline-block;
  color: rgba(235, 235, 245, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.footer-link-list a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Divider */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--glass-border) 20%, var(--glass-border) 80%, transparent 100%);
  margin: 48px 0 24px;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-quick-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.footer-quick-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-bottom-width: 2px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-family: var(--mono, monospace);
  color: #38bdf8;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-soft);
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

  .footer-nav-grid {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .main-footer,
  .site-footer {
    padding: 48px 0 28px;
    margin-top: 50px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-divider {
    margin: 36px 0 20px;
  }
}
