/* Index Page Custom Styles */

/* ===== STICKY NAVBAR ===== */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-link.topActiveContent,
.navbar-link.active {
  color: var(--primary-500) !important;
  font-weight: var(--font-weight-semibold);
}

/* Mobile Navbar Toggle */
.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--neutral-300);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.navbar-toggler:hover {
  background-color: var(--neutral-50);
  border-color: var(--primary-500);
}

.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--neutral-700);
  position: relative;
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--neutral-700);
  position: absolute;
  left: 0;
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.navbar-toggler-icon::before {
  top: -8px;
}
.navbar-toggler-icon::after {
  bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-xl);
    display: none;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: var(--space-4);
    margin: 0;
  }

  .navbar-menu li {
    width: 100%;
    list-style: none;
  }

  .navbar-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-base) var(--easing-ease-in-out);
  }

  .navbar-link:hover {
    background-color: var(--neutral-50);
  }

  .navbar-brand-subtitle {
    display: none;
  }
}

/* ===== MODERN HERO STYLES ===== */
.hero-modern {
  background: linear-gradient(
    135deg,
    var(--primary-500) 0%,
    var(--secondary-500) 100%
  );
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0 var(--space-20);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: var(--space-12) auto var(--space-10);
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  transition: all var(--transition-base) var(--easing-ease-in-out);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--neutral-600);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--neutral-900);
  line-height: 1;
}

.hero-search {
  max-width: 700px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-full);
  padding: var(--space-2);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.search-wrapper:focus-within {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: var(--space-6);
  color: var(--neutral-400);
  pointer-events: none;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-12);
  font-size: var(--font-size-lg);
  color: var(--neutral-900);
  background: transparent;
}

.search-input::placeholder {
  color: var(--neutral-400);
}

.search-btn {
  background: var(--primary-500);
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base) var(--easing-ease-in-out);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--primary-600);
  transform: scale(1.02);
}

/* ===== SKELETON LOADER ===== */
.skeleton-loader {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.skeleton-card {
  background: linear-gradient(
    90deg,
    var(--neutral-200) 25%,
    var(--neutral-100) 50%,
    var(--neutral-200) 75%
  );
  background-size: 200px 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-lg);
  height: 200px;
}

/* Hero Section Responsive */
@media (max-width: 768px) {
  .hero-modern {
    padding: var(--space-16) 0;
  }

  .hero-title {
    font-size: var(--font-size-2xl) !important;
  }

  .hero-subtitle {
    font-size: var(--font-size-base) !important;
  }

  .hero-badge {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-3);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: var(--space-8) auto;
  }

  .stat-card {
    padding: var(--space-4);
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-value {
    font-size: var(--font-size-2xl);
  }

  .search-wrapper {
    flex-wrap: wrap;
    padding: var(--space-2);
  }

  .search-icon {
    position: static;
    margin: 0 var(--space-2);
  }

  .search-input {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    min-width: 0;
  }

  .search-btn {
    padding: var(--space-3) var(--space-6);
  }

  .skeleton-loader {
    grid-template-columns: 1fr;
  }
}

/* Service Card Hover Effects */
.service-card {
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-card .rightDivServicesContent:hover {
  background-color: var(--primary-600) !important;
}

/* Slideshow Styles */
.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.rslides li {
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
}

.rslides li:first-child {
  position: relative;
  display: block;
  float: left;
}

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
}

/* Fixed Image Responsive */
.fixed-image {
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.fixed-image:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .fixed-image {
    bottom: 10px !important;
    right: 10px !important;
  }

  .fixed-image img {
    width: 80px !important;
    height: 80px !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading State */
.mainIndexContent2 {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Network Type Card Hover */
.homeNetworkType {
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.homeNetworkType:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Service Grid Responsive */
.service-header-mobile {
  flex-direction: row;
}

.service-price-mobile {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .service-header-mobile {
    flex-direction: column;
  }

  .service-price-mobile {
    text-align: left;
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid.grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid.lg\:grid-cols-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Service Panel Layout */

.leftDivServicesContent {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  /* box-shadow: var(--shadow-md); */
  transition: all var(--transition-base) var(--easing-ease-in-out);
}

.rightDivServicesContent {
  padding: var(--space-4);
  min-height: 100px;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
}

.recentProvidersServicesPanelName {
  margin-bottom: var(--space-2);
}

.linkIconServices {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .mainServicePanel {
    width: 100%;
  }
}

/* Filter on services page*/
#filteredProvidersServicesContainer > *:nth-child(-n + 2) {
  grid-column: span 3;
}

@media (min-width: 641px) and (max-width: 1024px) {
  #filteredProvidersServicesContainer > *:nth-child(-n + 2) {
    grid-column: span 2;
  }
}

@media (max-width: 639px) {
  #filteredProvidersServicesContainer > *:nth-child(-n + 2) {
    grid-column: span 1;
  }
}

/* Notification  */
.form-input.error {
  border-color: var(--error);
  animation: shake 0.3s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.subscription-list table tbody tr {
  transition: background-color var(--transition-base);
}

.subscription-list table tbody tr:hover {
  background-color: var(--neutral-50);
}

#subscription-table-body td {
  padding: 1rem;
  font-size: var(--font-size-sm);
  color: var(--neutral-700);
}

#subscription-table-body input {
  margin-bottom: 0.5rem;
}

#subscription-table-body button {
  width: 100%;
}
