/* ═══════════════════════════════════════════════════════════════
   GOCDA FOOTER — Modern Dark Footer for Web Novel Site
   ═══════════════════════════════════════════════════════════════ */

.gd-footer {
  background: linear-gradient(180deg, #0f1923 0%, #0a1218 100%);
  color: #a0aec0;
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}

/* Gradient divider at top */
.gd-footer-divider {
  height: 3px;
  background: linear-gradient(90deg, #ef5350, #ff9800, #4caf50, #2196f3, #9c27b0);
  background-size: 300% 100%;
  animation: gd-gradient-shift 6s ease infinite;
}

@keyframes gd-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Branding ─── */
.gd-footer-brand { margin-bottom: 10px; }

.gd-footer-logo img {
  filter: brightness(1.1);
  transition: filter .3s ease;
}
.gd-footer-logo:hover img { filter: brightness(1.4); }

.gd-footer-logo-text {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ef5350, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gd-footer-desc {
  color: #8899a6;
  font-size: 13px;
  margin: 10px 0 15px;
  max-width: 320px;
}

/* Social icons */
.gd-footer-social {
  display: flex;
  gap: 10px;
}

.gd-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #8899a6;
  font-size: 15px;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.gd-social-icon:hover {
  background: rgba(239,83,80,0.15);
  color: #ef5350;
  border-color: rgba(239,83,80,0.3);
  transform: translateY(-2px);
}

/* ─── Headings ─── */
.gd-footer-heading {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(239,83,80,0.3);
  display: inline-block;
}
.gd-footer-heading i {
  color: #ef5350;
  margin-right: 6px;
  font-size: 14px;
}

/* ─── Tag links (Categories) ─── */
.gd-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gd-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: #a0aec0;
  font-size: 12.5px;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.gd-tag-link:hover {
  background: rgba(239,83,80,0.12);
  border-color: rgba(239,83,80,0.35);
  color: #ef5350;
  transform: translateY(-1px);
}
.gd-tag-count {
  background: rgba(255,255,255,0.08);
  color: #718096;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.gd-tag-link:hover .gd-tag-count {
  background: rgba(239,83,80,0.2);
  color: #ef5350;
}

/* ─── Quick links ─── */
.gd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gd-footer-links li {
  margin-bottom: 8px;
}
.gd-footer-links a {
  color: #8899a6;
  text-decoration: none;
  font-size: 13.5px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gd-footer-links a i {
  width: 16px;
  text-align: center;
  color: #4a5568;
  font-size: 12px;
  transition: color .2s ease;
}
.gd-footer-links a:hover {
  color: #ef5350;
  transform: translateX(3px);
}
.gd-footer-links a:hover i {
  color: #ef5350;
}

/* ─── Stats bar ─── */
.gd-footer-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gd-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 12px 8px;
  position: relative;
}
.gd-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

.gd-stat-item i {
  font-size: 22px;
  color: #ef5350;
  margin-bottom: 4px;
}
.gd-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
}
.gd-stat-label {
  font-size: 11px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Bottom bar ─── */
.gd-footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 14px 0;
  margin-top: 20px;
}

.gd-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #4a5568;
  flex-wrap: wrap;
  gap: 8px;
}

.gd-footer-bottom-inner strong {
  color: #8899a6;
}

.gd-footer-bottom-right {
  color: #4a5568;
}

/* ─── Back to top ─── */
a.gd-backtotop,
a.gd-backtotop.uk-totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 25, 35, 0.95) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
}
a.gd-backtotop svg,
a.gd-backtotop.uk-totop svg { color: #fff !important; }
.gd-backtotop.visible {
  opacity: 1;
  pointer-events: auto;
}
.gd-backtotop:hover {
  background: #ef5350;
  border-color: #ef5350;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(239,83,80,0.4);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .gd-footer-stats {
    flex-wrap: wrap;
  }
  .gd-stat-item {
    flex: 0 0 50%;
  }
  .gd-stat-item:nth-child(2)::after {
    display: none;
  }
  .gd-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
