/* Support page specific layout tweaks and enhanced design */

/* ====== HERO SECTION ====== */
.hero-support {
  position: relative;
  overflow: hidden;
}

.hero-support::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ====== STATUS INDICATORS ====== */
.status-online {
  color: #22c55e;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ====== SUPPORT CARDS WITH HOVER EFFECTS ====== */
.support-card {
  border-radius: 16px;
  border: 2px solid transparent;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.support-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 60, 48, 0.15) !important;
  border-color: var(--color-primary);
}

.support-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
}

.support-card .card-title {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.support-card .card-body {
  padding: 1rem;
}

/* Icon pulse animation on hover */
.support-card:hover i {
  animation: iconPulse 0.6s ease;
}

/* Prevent rotation on already rotated phone icons */
.support-card:hover .fa-phone-alt {
  animation: iconPulseNoRotate 0.6s ease;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes iconPulseNoRotate {
  0%, 100% { transform: rotate(90deg) scale(1); }
  50% { transform: rotate(90deg) scale(1.1); }
}

/* ====== FAQ ENHANCEMENTS ====== */
.nav-pills .nav-link {
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
}

.nav-pills .nav-link:hover {
  background: var(--surface-green-50);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.nav-pills .nav-link.active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: white !important;
}

.input-group-lg .form-control {
  border-radius: 0 50px 50px 0 !important;
  padding: 0.75rem 1.5rem;
}

.input-group-lg .input-group-text {
  border-radius: 50px 0 0 50px !important;
  padding: 0.75rem 1rem;
}

/* FAQ Card Styling */
.faq-card {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.faq-card:hover {
  box-shadow: 0 4px 12px rgba(0, 60, 48, 0.1);
  border-color: var(--color-primary);
}

/* Position badge absolutely to not affect card height */
.faq-card .badge {
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  z-index: 1;
  background: #22c55e !important;
}

.faq-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  flex: 1;
  padding-right: 1rem;
  line-height: 1.5;
}

.faq-btn {
  border: none;
  background: var(--color-primary);
  color: white;
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-btn:hover {
  transform: rotate(90deg);
  background: var(--color-primary-dark);
}

.faq-card .collapse p {
  color: #4b5563;
  line-height: 1.6;
}

.faq-card .badge {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
}

/* ====== LEGACY CARD STYLES (keeping for compatibility) ====== */
.card.custom-card {
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
}

.card.custom-card .py-4 {
  padding-top: 2px;
  padding-bottom: 2px;
}

.card.custom-card .py-4 img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.card.custom-card .card-body {
  padding-top: 2px;
  padding-bottom: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.card.custom-card .card-text {
  margin-top: 2px;
  margin-bottom: 2px;
  line-height: 1.02;
  font-size: 0.98rem;
}

.card.custom-card .card-body a {
  margin-top: 0;
  font-size: 0.95rem;
  display: inline-block;
  color: var(--color-primary);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 768px) {
  .hero-support h1 {
    font-size: 2rem;
  }
  
  .hero-support .lead {
    font-size: 1rem;
  }
  
  .support-card {
    margin-bottom: 1rem;
  }
  
  .nav-pills {
    justify-content: center !important;
  }
  
  .nav-pills .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    margin: 0.25rem;
  }
  
  /* Hide Billing pill on mobile */
  .nav-pills .nav-link[data-category="billing"] {
    display: none !important;
  }
  
  .faq-card {
    padding: 1rem !important;
    margin-bottom: 0.75rem;
  }
  
  .faq-title {
    font-size: 0.9rem;
    padding-right: 0.75rem;
    line-height: 1.4;
  }
  
  .faq-btn {
    min-width: 28px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  .faq-card .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .faq-card .collapse p {
    font-size: 0.9rem;
  }
  
  .input-group-lg .form-control {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .input-group-lg .input-group-text {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .card.custom-card {
    padding: 6px;
  }
  
  .card.custom-card .py-4 img {
    height: 40px;
    width: 40px;
  }
  
  .card.custom-card .card-text {
    font-size: 0.98rem;
  }
  
  .support-card:hover {
    transform: translateY(-4px);
  }
}