/* =====================================================
   BLOG POST FOOTER - BRAND DESIGN
   Poppins Font, Teal #17D2C2, Dark Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables - Brand Tokens */
:root {
  --brand: #17D2C2;
  --brand-300: #47E0D2;
  --brand-600: #12B7AB;
  --brand-gradient: linear-gradient(135deg, #12B7AB 0%, #17D2C2 50%, #47E0D2 100%);
  --bg-900: #0A0A0A;
  --bg-800: #121212;
  --surface-700: #1C1C1E;
  --border-600: #2A2A2C;
  --text: #FFFFFF;
  --text-2: #C7C7CC;
  --muted: #8E8E93;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =====================================================
   FOOTER CONTAINER
   ===================================================== */
.mainfooter-container {
  background: var(--bg-800);
  border-top: 1px solid var(--border-600);
  padding: 64px 0 0;
  margin-top: 80px;
  font-family: var(--font-sans);
}

.mainfooter-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   MAIN FOOTER CONTENT
   ===================================================== */
.mainfooter-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-600);
}

/* =====================================================
   BRAND SECTION
   ===================================================== */
.mainfooter-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mainfooter-logo {
  display: inline-block;
  transition: transform 0.2s ease;
}

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

.mainfooter-logo-img {
  height: 40px;
  width: auto;
}

.mainfooter-tagline {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

/* Social Links */
.mainfooter-social-links {
  display: flex;
  gap: 12px;
}

.mainfooter-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-700);
  border: 1px solid var(--border-600);
  border-radius: 10px;
  color: var(--text-2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.mainfooter-social-link:hover {
  background: var(--bg-900);
  border-color: var(--brand-300);
  color: var(--brand-300);
  transform: translateY(-2px);
}

.mainfooter-social-link svg {
  width: 20px;
  height: 20px;
}

/* =====================================================
   FOOTER LINKS
   ===================================================== */
.mainfooter-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mainfooter-column h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mainfooter-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mainfooter-column li {
  margin: 0;
}

.mainfooter-column a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-block;
}

.mainfooter-column a:hover {
  color: var(--brand-300);
}

/* =====================================================
   FOOTER BOTTOM
   ===================================================== */
.mainfooter-bottom {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-600);
}

.mainfooter-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mainfooter-copyright {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Badges */
.mainfooter-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mainfooter-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(23, 210, 194, 0.1);
  border: 1px solid rgba(23, 210, 194, 0.3);
  border-radius: 6px;
  color: var(--brand-300);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =====================================================
   SUB-FOOTER (CCBILL REQUIRED)
   ===================================================== */
.mainfooter-subfooter {
  padding: 24px 0;
  background: var(--bg-900);
}

.mainfooter-subfooter-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.mainfooter-company-info,
.mainfooter-support-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mainfooter-company-info strong,
.mainfooter-support-info strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.mainfooter-company-info span,
.mainfooter-support-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mainfooter-company-info a,
.mainfooter-support-info a {
  color: var(--brand-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mainfooter-company-info a:hover,
.mainfooter-support-info a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 1023px) {
  .mainfooter-container {
    padding: 48px 0 0;
    margin-top: 64px;
  }

  .mainfooter-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 32px;
  }

  .mainfooter-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .mainfooter-bottom-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .mainfooter-subfooter-content {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .mainfooter-wrapper {
    padding: 0 20px;
  }

  .mainfooter-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mainfooter-column h3 {
    font-size: 13px;
  }

  .mainfooter-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .mainfooter-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}
