/**
 * Footer Styles - Politécnico Central Colombiano
 *
 * Custom footer design for the Edumart Child theme
 * Scroll-to-top button positioned on the left side
 *
 * @package Edumart Child
 * @version 1.1.0
 */

/* ============================================
   FOOTER MAIN CONTAINER
   ============================================ */
.policentral-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 60px 0 0;

  position: relative;
  overflow: hidden;
}

.policentral-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #00a8ff);
}

/* ============================================
   FOOTER LOGO (Inside Contact Section)
   ============================================ */
.footer-logo-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  margin-top: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s ease-out;
  display: inline-block;
  width: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* ============================================
   FOOTER CONTENT LAYOUT
   ============================================ */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
  padding: 0 20px;
}

/* ============================================
   FOOTER SECTIONS
   ============================================ */
.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-title {
  font-family: var(--font-heading, "Arial", sans-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #00a8ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #00a8ff, transparent);
}

/* ============================================
   CONTACT INFORMATION
   ============================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  color: #00a8ff;
  font-size: 18px;
  min-width: 20px;
  margin-top: 3px;
}

.contact-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #00a8ff;
}

/* ============================================
   SOCIAL MEDIA LINKS
   ============================================ */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.social-link i {
  font-size: 22px;
  min-width: 25px;
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.2);
}

.social-link span {
  font-size: 14px;
  font-weight: 500;
}

/* Social Media Brand Colors */
.social-link.facebook:hover {
  border-left-color: #1877f2;
}

.social-link.facebook:hover i {
  color: #1877f2;
}

.social-link.instagram:hover {
  border-left-color: #e4405f;
}

.social-link.instagram:hover i {
  color: #e4405f;
}

.social-link.tiktok:hover {
  border-left-color: #00f2ea;
}

.social-link.tiktok:hover i {
  color: #00f2ea;
}

.social-link.youtube:hover {
  border-left-color: #ff0000;
}

.social-link.youtube:hover i {
  color: #ff0000;
}

/* ============================================
   FOOTER BOTTOM - COPYRIGHT
   ============================================ */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  text-align: center;
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.8;
}

.copyright p {
  margin: 5px 0;
}

.developer-credit {
  font-size: 13px;
  margin-top: 10px;
}

.developer-credit a {
  color: #00a8ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.developer-credit a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================
   SCROLL TO TOP BUTTON (LEFT SIDE)
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0066cc, #00a8ff);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

.scroll-top i {
  font-size: 18px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
  .policentral-footer {
    padding: 50px 0 0;
  }

  .footer-logo-wrapper {
    padding: 10px;
    margin-top: 20px;
  }

  .footer-logo {
    max-width: 180px;
  }

  .footer-content {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .footer-title {
    font-size: 18px;
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  .policentral-footer {
    padding: 40px 0 0;
    margin-top: 50px;
  }

  .footer-logo-wrapper {
    padding: 10px;
    margin-top: 18px;
  }

  .footer-logo {
    max-width: 150px;
  }

  .footer-content {
    gap: 35px;
    padding: 0 15px;
  }

  .footer-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .contact-item,
  .social-link {
    font-size: 14px;
  }

  .social-link {
    padding: 10px 15px;
  }

  .footer-bottom {
    padding: 25px 15px;
  }

  .copyright {
    font-size: 13px;
  }

  .developer-credit {
    font-size: 12px;
  }

  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    left: 20px;
  }

  .scroll-top i {
    font-size: 16px;
  }
}

/* Small mobile phones */
@media (max-width: 480px) {
  .footer-logo-wrapper {
    padding: 8px;
    margin-top: 15px;
  }

  .footer-logo {
    max-width: 130px;
  }

  .footer-content {
    gap: 30px;
  }

  .social-link span {
    font-size: 13px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-item i {
    font-size: 16px;
  }
}
