/* ==========================================================================
   FOOTER - Premium Compact Design
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.8) 0%, 
    rgba(2, 6, 23, 0.95) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-10) 0 var(--space-6);
}

/* ========================================================================
   FOOTER MAIN - Brand + Links
   ======================================================================== */

.footer-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

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

/* Brand Section */
.footer-brand-wrap {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.footer-logo img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.footer-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-logo__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

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

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.footer-social__link:hover {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.2);
  color: var(--accent-primary);
}

/* Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
  }
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col nav a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col nav a:hover {
  color: var(--accent-primary);
}

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

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

.footer-legal a:hover {
  color: var(--accent-primary);
}

.footer-dot {
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-support-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: #ef4444;
  font-weight: var(--font-semibold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-support-link:hover {
  color: #f87171;
}

.footer-support-link i {
  animation: heartbeat 2s ease-in-out infinite;
}

/* ========================================================================
   LIGHT MODE - Footer
   ======================================================================== */

html.light-theme .site-footer {
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.9) 0%, 
    rgba(241, 245, 249, 0.95) 100%
  );
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

html.light-theme .footer-logo__title {
  color: #1e293b;
}

html.light-theme .footer-logo__subtitle {
  background: linear-gradient(135deg, #4a90e2 0%, #0e7490 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light-theme .footer-social__link {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
}

html.light-theme .footer-social__link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #4a90e2;
}

html.light-theme .footer-col h4 {
  color: #1e293b;
}

html.light-theme .footer-col nav a {
  color: #64748b;
}

html.light-theme .footer-col nav a:hover {
  color: #4a90e2;
}

html.light-theme .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

html.light-theme .footer-legal,
html.light-theme .footer-meta {
  color: #94a3b8;
}

html.light-theme .footer-legal a {
  color: #64748b;
}

html.light-theme .footer-legal a:hover {
  color: #4a90e2;
}

html.light-theme .footer-support-link {
  color: #dc2626;
}

html.light-theme .footer-support-link:hover {
  color: #ef4444;
}
