/* ================================================================
   footer.css — PVPSIT Department of CSE (AI & ML)
   Usage: <link rel="stylesheet" href="../css/footer.css">
   Requires: Font Awesome 6+
   ================================================================ */

:root {
  --footer-bg-1: #0a1628;
  --footer-bg-2: #0f2044;
  --footer-bg-3: #111827;
  --footer-gold: #f5b800;
  --footer-gold-dim: rgba(245, 184, 0, 0.75);
  --footer-gold-line: rgba(245, 184, 0, 0.25);
  --footer-text: rgba(255, 255, 255, 0.62);
  --footer-text-dim: rgba(255, 255, 255, 0.38);
  --footer-white: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.09);
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.pvp-footer {
  background: linear-gradient(
    160deg,
    var(--footer-bg-1) 0%,
    var(--footer-bg-2) 55%,
    var(--footer-bg-3) 100%
  );
  border-top: 3px solid var(--footer-gold);
  padding: 3.5rem 0 0;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--footer-text);
}

/* ── 3-column grid ───────────────────────────────────────────── */
.pvp-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .pvp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .pvp-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .pvp-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Section headings ────────────────────────────────────────── */
.pvp-footer__heading {
  color: var(--footer-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--footer-gold-line);
}

/* ── Column 1 · Brand ────────────────────────────────────────── */
.pvp-footer__logo-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.pvp-footer__logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--footer-gold-line);
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.pvp-footer__dept-name {
  color: var(--footer-white);
  font-weight: 700;
  font-size: 0.87rem;
  line-height: 1.35;
}

.pvp-footer__inst-name {
  color: var(--footer-gold-dim);
  font-size: 0.71rem;
  margin-top: 0.2rem;
}

.pvp-footer__tagline {
  font-size: 0.78rem;
  color: var(--footer-text);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

/* Social icons */
.pvp-footer__social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pvp-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}

.pvp-footer__social a:hover {
  background: var(--footer-gold);
  color: var(--footer-bg-1);
  border-color: var(--footer-gold);
  transform: translateY(-2px);
}

/* ── Column 2 · Contact ──────────────────────────────────────── */
.pvp-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pvp-footer__contact-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.pvp-footer__contact-list i {
  color: var(--footer-gold);
  font-size: 0.78rem;
  width: 15px;
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.pvp-footer__contact-list span,
.pvp-footer__contact-list a {
  font-size: 0.8rem;
  color: var(--footer-text);
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s;
}

.pvp-footer__contact-list a:hover {
  color: var(--footer-gold);
}

/* ── Column 3 · Map ──────────────────────────────────────────── */
.pvp-footer__map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 10px;
  filter: grayscale(15%) brightness(0.88);
  display: block;
  transition: filter 0.3s;
}

.pvp-footer__map iframe:hover {
  filter: grayscale(0%) brightness(1);
}

/* ── Bottom bar ──────────────────────────────────────────────── */
.pvp-footer__bottom {
  margin-top: 2.8rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.pvp-footer__bottom p {
  font-size: 0.71rem;
  color: var(--footer-text-dim);
  margin: 0;
}

@media (max-width: 576px) {
  .pvp-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Back-to-top button (injected by footer.js) ──────────────── */
#pvp-back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--footer-gold);
  color: var(--footer-bg-1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(245, 184, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.2s;
  z-index: 999;
  pointer-events: none;
}

#pvp-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#pvp-back-to-top:hover {
  background: #ffd740;
}
