/* Global footer styles */

.site-footer {
  margin-top: 32px;
  background: var(--footer-bg, var(--card));
  border-top: 1px solid var(--border);
}

.site-footer .container { padding: 28px 15px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 18px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col { min-width: 0; }

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 8px 0; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }

.footer-brand .brand-title { font-size: 18px; font-weight: 700; }
.footer-brand .brand-sub { color: var(--muted); margin-top: 6px; }

.app-badges { display: flex; gap: 10px; margin-top: 12px; }
.badge {
  position: relative;
  width: 140px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
}

.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(77,163,255,0.22), transparent 60%);
  opacity: 0.85;
}

.badge__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.badge-appstore::before,
.badge-play::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-right: 8px;
}

.badge-appstore::before {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.badge-play::before {
  background: conic-gradient(from 45deg, #22c55e, #3b82f6, #eab308, #22c55e);
}

.badge-appstore { background-image: none; }
.badge-play { background-image: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legal { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--accent); }

.social { display: flex; gap: 10px; }
.icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 0%, rgba(77,163,255,0.6), transparent 60%);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.icon::before {
  content: attr(data-label);
  font-weight: 600;
}

.icon.fb::before { content: "f"; }
.icon.ig::before { content: "IG"; font-size: 10px; }
.icon.in::before { content: "in"; font-size: 11px; }

/* Tablet: 768px - 1200px */
@media (min-width: 768px) and (max-width: 1200px) {
  .site-footer .container {
    padding: 20px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    row-gap: 0;
  }
  
  .footer-col {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  
  .footer-col:nth-child(2n) {
    border-right: none;
  }
  
  .footer-col:last-child,
  .footer-col:nth-last-child(2) {
    border-bottom: none;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 0;
  }
  
  .footer-title {
    font-size: 15px;
    margin-bottom: 0;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    transition: background 0.2s;
  }
  
  .footer-title:hover {
    background: var(--muted-bg);
  }
  
  .footer-title::after {
    content: "▼";
    font-size: 10px;
    transition: transform 0.3s;
    color: var(--muted);
  }
  
  .footer-col[aria-expanded="true"] .footer-title::after {
    transform: rotate(180deg);
  }
  
  .footer-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 12px;
  }
  
  .footer-col[aria-expanded="true"] .footer-list {
    max-height: 500px;
    padding: 8px 12px 14px 12px;
  }
  
  .footer-brand .footer-title {
    cursor: default;
    padding: 0 0 12px 0;
  }
  
  .footer-brand .footer-title::after {
    display: none;
  }
  
  .footer-brand .footer-title:hover {
    background: transparent;
  }
  
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }
  
  .legal {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
  }
  
  .social {
    gap: 10px;
  }
}

/* Mobile and Small Tablet: < 768px */
@media (max-width: 767px) {
  .site-footer {
    margin-top: 24px;
  }
  
  .site-footer .container {
    padding: 16px 12px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    row-gap: 0;
    padding-bottom: 16px;
  }
  
  .footer-col {
    margin-top: 0;
    border-bottom: 1px solid var(--border);
  }
  
  .footer-col:last-child {
    border-bottom: none;
  }
  
  .footer-title {
    font-size: 15px;
    margin-bottom: 0;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    transition: background 0.2s;
  }
  
  .footer-title:hover {
    background: var(--muted-bg);
  }
  
  .footer-title::after {
    content: "▼";
    font-size: 10px;
    transition: transform 0.3s;
    color: var(--muted);
  }
  
  .footer-col[aria-expanded="true"] .footer-title::after {
    transform: rotate(180deg);
  }
  
  .footer-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 12px;
  }
  
  .footer-col[aria-expanded="true"] .footer-list {
    max-height: 500px;
    padding: 8px 12px 14px 12px;
  }
  
  .footer-list li {
    margin: 6px 0;
  }
  
  .footer-brand {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 0;
  }
  
  .footer-brand .footer-title {
    cursor: default;
    padding: 0 0 12px 0;
  }
  
  .footer-brand .footer-title::after {
    display: none;
  }
  
  .footer-brand .footer-title:hover {
    background: transparent;
  }
  
  .footer-brand .brand-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .footer-brand .brand-sub {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
  }
  
  .app-badges {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: nowrap;
  }
  
  .badge {
    width: 100%;
    max-width: 100%;
    height: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 16px;
    margin-top: 8px;
  }
  
  .legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    width: 100%;
  }
  
  .legal span {
    margin-bottom: 4px;
  }
  
  .social {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  
  .icon {
    width: 36px;
    height: 36px;
  }
}


