/**
 * Footer styles dari aplikasi utama (v2)
 * Sumber: v2-assets/css/components.css (FOOTER)
 * Dipakai PPID agar ikut Figma tanpa load full components.css
 */

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(to right, #234974 0%, #234974 40%, #359D9E 70%, #4AAC90 100%);
  color: var(--white);
  padding: 48px;
  position: relative;
}

.footer .container-fluid {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  color: var(--white);
}

/* Kolom 1: Branding & Kontak */
.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-logo-full {
  width: 130px;
  height: 89px;
  object-fit: contain;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact-item i {
  margin-top: 0.125rem;
  flex-shrink: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Kolom 2: Menu & Social */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.footer-menu a:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer-menu a::before {
  content: '›';
  font-size: 1.3rem;
  line-height: 1;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-social a {
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Kolom 3: Visitor Stats */
.footer-visitor {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}

.visitor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.visitor-item:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.visitor-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.visitor-count {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Kolom 4: App Downloads */
.footer-apps-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.app-download-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-logo-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.app-description {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.app-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-buttons a {
  display: block;
  transition: var(--transition-fast);
}

.app-buttons a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-buttons img {
  width: 130px;
  height: auto;
  display: block;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Responsive Footer */
@media (max-width: 1200px) {
  .footer {
    padding: 40px 32px;
  }

  .footer-content {
    gap: 32px;
    margin-bottom: 32px;
  }
}

@media (max-width: 992px) {
  .footer {
    padding: 40px 24px;
  }

  .footer-section {
    flex: 1 1 calc(50% - 32px);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 20px;
  }

  .footer-content {
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-section {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .footer-logo-full {
    width: 110px;
    height: auto;
  }

  .footer-section h4 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 24px 16px;
  }

  .footer-content {
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-logo-full {
    width: 100px;
    height: auto;
  }
}
