/* ========================================
   TechGyan360 Tools - Footer Styles
   Mirrors the main techgyan360.com footer
   ======================================== */

footer {
  background: #07132A;
  padding: 60px 5% 30px;
  margin-top: var(--space-20);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); margin: 1rem 0 1.5rem; line-height: 1.7; max-width: 280px; }

.footer-logo { font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 800; color: white; }
.footer-logo span { color: var(--teal); }

.social-row { display: flex; gap: 10px; }

.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  text-decoration: none;
}

.social-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }

.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.875rem; font-weight: 700; color: white; margin-bottom: 1rem; }

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a { font-size: 0.855rem; color: rgba(255,255,255,0.45); transition: color 0.2s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 1rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-top .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: #00ddb7;
  box-shadow: 0 12px 24px -8px rgba(0, 201, 167, 0.5);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
  }
}
