/* ==========================================================================
   Custom Site Footer - Premium Modern Dark Theme
   ========================================================================== */

.csf-footer {
  --csf-bg: #0b1329;
  --csf-bg-alt: #0f1a36;
  --csf-card-bg: #142247;
  --csf-ink: #ffffff;
  --csf-slate: #94a3b8;
  --csf-slate-hover: #cbd5e1;
  --csf-line: rgba(255, 255, 255, 0.08);
  --csf-line-hover: rgba(255, 255, 255, 0.2);
  --csf-accent: #10B981;
  --csf-accent-hover: #34d399;
  --csf-primary: #3b82f6;

  background: linear-gradient(180deg, #0b1329 0%, #080e1e 100%);
  color: var(--csf-slate);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.csf-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Footer Top Grid */
.csf-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding: 64px 0 48px;
}

/* Brand Column */
.csf-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.csf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 16px;
}

.csf-logo img,
.csf-logo .custom-logo {
  width: auto;
  max-width: 180px;
  max-height: 48px;
}

.csf-brand p {
  color: var(--csf-slate);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 360px;
}

/* Social Buttons */
.csf-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.csf-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--csf-line);
  color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.csf-socials a:hover {
  background: var(--csf-accent);
  border-color: var(--csf-accent);
  color: #0b1329;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.csf-socials svg {
  transition: transform 0.2s ease;
}

/* Footer Column Headings */
.csf-heading,
.csf-widget-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 0 0 20px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.csf-heading::after,
.csf-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--csf-accent);
  border-radius: 2px;
}

/* Footer Links & Menus */
.csf-menu,
.csf-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.csf-menu li {
  margin-bottom: 12px;
}

.csf-menu a,
.csf-legal-menu a {
  color: var(--csf-slate);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.csf-menu a:hover,
.csf-legal-menu a:hover {
  color: var(--csf-accent);
  transform: translateX(3px);
}

/* Article List in Footer */
.csf-article-menu li {
  margin-bottom: 14px;
}

.csf-article-menu a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.csf-article-title {
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.csf-article-menu a:hover .csf-article-title {
  color: var(--csf-accent);
}

.csf-article-menu time {
  color: #64748b;
  font-size: 12px;
}

.csf-view-all {
  color: var(--csf-accent) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.csf-view-all::after {
  content: '→';
  font-size: 15px;
  transition: transform 0.2s ease;
}

.csf-view-all:hover {
  gap: 10px;
}

.csf-view-all:hover::after {
  transform: translateX(3px);
}

/* Widgets & Empty state */
.csf-widget {
  margin: 0;
}

.csf-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.csf-widget li {
  margin-bottom: 10px;
}

.csf-empty {
  border: 1px dashed var(--csf-line);
  border-radius: 8px;
  color: var(--csf-slate);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.csf-empty strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
}

.csf-empty span {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

/* Bottom Bar */
.csf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--csf-line);
  padding: 24px 0 32px;
  font-size: 13px;
  color: #64748b;
  gap: 20px;
  flex-wrap: wrap;
}

.csf-legal-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.csf-legal-menu a {
  font-size: 13px;
  color: #64748b;
}

.csf-legal-menu a:hover {
  color: var(--csf-accent);
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .csf-top {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .csf-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding: 48px 0 36px;
  }
  .csf-brand {
    grid-column: 1 / -1;
  }
  .csf-brand p {
    max-width: 100%;
  }
  .csf-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .csf-legal-menu {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .csf-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
