/* footer_style.css */
:root {
  --footer-bg: #f8fafc;
  --footer-bg-dark: #020617;
  --footer-text: #475569;
  --footer-text-dark: #cbd5e1;
  --footer-heading: #0f172a;
  --footer-heading-dark: #ffffff;
  --footer-border: #e2e8f0;
  --footer-border-dark: rgba(30, 41, 59, 0.5);
  
  --color-blue: #3b82f6;
  --color-teal: #14b8a6;
  --color-purple: #a855f7;
  --color-rose: #f43f5e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --footer-bg: var(--footer-bg-dark);
    --footer-text: var(--footer-text-dark);
    --footer-heading: var(--footer-heading-dark);
    --footer-border: var(--footer-border-dark);
  }
}

.footer-main {
  margin-top: auto;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid var(--footer-border);
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
}

.footer-decor-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #6366f1, #a855f7, #34d399);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.footer-decor-blob {
  position: absolute;
  top: -400px;
  right: -400px;
  width: 800px;
  height: 800px;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0.5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

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

.footer-heading {
  color: var(--footer-heading);
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.footer-about-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-about-brand:hover .footer-brand-logo {
  transform: rotate(6deg);
}

.footer-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(to bottom right, #2563eb, #9333ea);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.footer-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.footer-brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--footer-heading);
  line-height: 1;
  transition: color 0.3s ease;
}

.footer-about-brand:hover .footer-brand-title {
  color: var(--color-blue);
}

.footer-brand-subtitle {
  font-size: 0.625rem;
  color: var(--footer-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 0.25rem;
}

.footer-about-desc {
  line-height: 1.625;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-about-desc a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.3);
  font-weight: 700;
  transition: text-decoration-color 0.2s ease;
}

.footer-about-desc a:hover {
  text-decoration-color: var(--color-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-item a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.footer-link-icon {
  color: rgba(148, 163, 184, 0.8);
  transition: color 0.3s ease;
}

/* Specific Hover Colors for columns */
.links-teal a:hover { color: var(--color-teal); }
.links-teal a:hover .footer-link-icon { color: var(--color-teal); }

.links-purple a:hover { color: var(--color-purple); }
.links-purple a:hover .footer-link-icon { color: var(--color-purple); }

.links-rose a:hover { color: var(--color-rose); }
.links-rose a:hover .footer-link-icon { color: var(--color-rose); }

.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--footer-border), transparent);
  margin: 2.5rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.footer-bottom-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-bottom-text {
    text-align: left;
  }
}

.footer-heart {
  color: #ef4444;
  margin: 0 0.25rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-license {
  font-size: 0.75rem;
}

.footer-license a {
  color: var(--footer-text);
  transition: color 0.3s ease;
}

.footer-license a.license-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.footer-license a:hover {
  color: var(--footer-heading);
  text-decoration-color: var(--footer-heading);
}

.footer-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFDD00;
  color: #000;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: 'Cookie', cursive;
  font-size: 1.125rem;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(255, 221, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.coffee-btn:hover {
  background-color: #ffe44d;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(255, 221, 0, 0.5);
}

.coffee-icon {
  height: 1.25rem;
  width: 1.25rem;
}
