/*
Theme Name: Teral Theme
Theme URI: https://teral.com
Author: Algorisys Development Team
Author URI: https://www.algorisys.com
Description: A custom theme for Teral with modern design and Tailwind CSS integration
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teral-theme
*/

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap");

/* Navigation animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes fadeInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleY(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeInFromLeft {
  animation: fadeInFromLeft 0.8s ease-out forwards;
}

.animate-fadeInFromTop {
  animation: fadeInFromTop 0.8s ease-out forwards;
}

/* Base font styles */
body {
  font-family: "Roboto", "Helvetica Neue", "Comfortaa", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.4px;
  line-height: 1.8;
  font-weight: 500;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: "Comfortaa", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; */
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Add soft transitions */
a,
button {
  transition: all 0.3s ease;
}

.container {
  position: relative;
  margin-inline: auto;
}
/* Header */
header .custom-logo {
  width: auto;
  height: 7.4rem !important;
  position: relative;
  left: -30px;
}
/* Soften existing elements */
#network-child-pages li.page_item {
  /* border-radius: 12px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#network-child-pages li.page_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#products-grid {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Network page - Modern Tab Design */
#network-child-pages {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  /* padding: 1rem; */
}

#network-child-pages li.page_item {
  background: #f0f4ff;
  padding: 0;
  margin: 0;
  color: #1d2992;
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(29, 41, 146, 0.1);
}

#network-child-pages li.page_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 41, 146, 0.15);
  border-color: #93c5fd;
  background: #dbeafe;
}

#network-child-pages li.page_item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  color: #1d2992;
  font-weight: 500;
  letter-spacing: 0.025em;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
  min-height: 60px;
  line-height: 1.4;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#network-child-pages li.page_item:hover a {
  color: #1e40af;
  transform: none;
}

#network-child-pages li.page_item.current_page_item {
  background: #1d2992;
  border-color: #1d2992;
  box-shadow: 0 4px 12px rgba(29, 41, 146, 0.25);
  transform: translateY(-1px);
}

#network-child-pages li.page_item.current_page_item a {
  color: #ffffff;
  font-weight: 600;
}

#network-child-pages li.page_item.current_page_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 41, 146, 0.3);
  background: #1e40af;
}

/* Active state to prevent flickering on click */
#network-child-pages li.page_item:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

#network-child-pages li.page_item:active a {
  transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  #network-child-pages {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  #network-child-pages li.page_item {
    min-width: 100%;
    max-width: none;
    flex: none;
  }

  #network-child-pages li.page_item a {
    padding: 1.25rem 1rem;
    font-size: 1rem;
    min-height: 70px;
  }
}

@media (max-width: 480px) {
  #network-child-pages {
    padding: 0.75rem;
    border-radius: 12px;
  }

  #network-child-pages li.page_item {
    border-radius: 8px;
  }

  #network-child-pages li.page_item a {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    min-height: 60px;
  }
}

/* Tablet Design */
@media (min-width: 769px) and (max-width: 1024px) {
  #network-child-pages {
    gap: 0.75rem;
  }

  #network-child-pages li.page_item {
    min-width: 140px;
    max-width: 180px;
  }

  #network-child-pages li.page_item a {
    padding: 1.125rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Large Screen Enhancements */
@media (min-width: 1025px) {
  #network-child-pages li.page_item {
    min-width: 150px;
    max-width: 220px;
  }

  #network-child-pages li.page_item a {
    padding: 1.25rem 1.75rem;
    font-size: 0.9375rem;
    min-height: 70px;
  }
}

/* Focus states for accessibility */
#network-child-pages li.page_item a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #network-child-pages li.page_item,
  #network-child-pages li.page_item a {
    transition: none;
    animation: none;
  }

  #network-child-pages li.page_item:hover,
  #network-child-pages li.page_item:active {
    transform: none;
  }

  #network-child-pages li.page_item:hover a,
  #network-child-pages li.page_item:active a {
    transform: none;
  }
}
