/* Sitemap Page Specific Styles */

/* Hero Section Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Section */
.bg-primary {
  background: var(--primary);
}

/* Content Sections */
.bg-background.rounded-2xl.shadow-lg {
  animation: fadeInUp 0.8s ease-out;
}

/* Section Headers */
.text-2xl.font-bold.text-secondary {
  animation: slideInFromLeft 0.6s ease-out;
  position: relative;
}

.text-2xl.font-bold.text-secondary::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Grid Cards */
.grid.grid-cols-1.md\\:grid-cols-2 > div,
.grid.grid-cols-1.md\\:grid-cols-3 > div {
  animation: scaleIn 0.6s ease-out;
  animation-fill-mode: both;
  transition: all 0.3s ease;
}

.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(1),
.grid.grid-cols-1.md\\:grid-cols-3 > div:nth-child(1) {
  animation-delay: 0.1s;
}
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(2),
.grid.grid-cols-1.md\\:grid-cols-3 > div:nth-child(2) {
  animation-delay: 0.2s;
}
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(3),
.grid.grid-cols-1.md\\:grid-cols-3 > div:nth-child(3) {
  animation-delay: 0.3s;
}
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(4),
.grid.grid-cols-1.md\\:grid-cols-3 > div:nth-child(4) {
  animation-delay: 0.4s;
}

/* Card Hover Effects */
.bg-background.rounded-lg {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bg-background.rounded-lg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: transparent;
  transition: left 0.5s ease;
}

.bg-background.rounded-lg:hover::before {
  left: 100%;
}

.bg-background.rounded-lg:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Links */
a {
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--sqube-red);
  transform: translateX(5px);
}

/* Quick Links */
.bg-primary {
  background: var(--primary);
}

.bg-background\\/20 {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bg-background\\/20::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.bg-background\\/20:hover::before {
  transform: translateX(100%);
}

.bg-background\\/20:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Icons */
i[data-lucide] {
  transition: all 0.3s ease;
}

i[data-lucide]:hover {
  transform: scale(1.1);
}

/* Section Icons */
.text-2xl.font-bold.text-secondary i[data-lucide] {
  animation: slideInFromRight 0.6s ease-out;
  animation-delay: 0.2s;
}

/* Lists */
ul.space-y-2 li {
  transition: all 0.3s ease;
}

ul.space-y-2 li:hover {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid.grid-cols-1.md\\:grid-cols-2,
  .grid.grid-cols-1.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .text-2xl.font-bold.text-secondary {
    font-size: 1.5rem;
  }

  .grid.grid-cols-2.md\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid.grid-cols-2.md\\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bg-background {
    background-color: #1a1a1a;
  }

  .bg-background {
    background-color: #2d2d2d;
    color: #ffffff;
  }

  .text-text {
    color: #a0a0a0;
  }

  .bg-background\\/20 {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Print Styles */
@media print {
  .bg-primary {
    background: var(--sqube-red) !important;
    -webkit-print-color-adjust: exact;
  }

  .bg-background.rounded-2xl.shadow-lg {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .bg-background.rounded-lg {
    break-inside: avoid;
  }
}

/* Accessibility */
.text-2xl.font-bold.text-secondary:focus {
  outline: 2px solid var(--sqube-red);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--sqube-red);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Staggered Animation */
.stagger-animation > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.stagger-animation > *:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-animation > *:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-animation > *:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-animation > *:nth-child(4) {
  animation-delay: 0.4s;
}
.stagger-animation > *:nth-child(5) {
  animation-delay: 0.5s;
}
.stagger-animation > *:nth-child(6) {
  animation-delay: 0.6s;
}
.stagger-animation > *:nth-child(7) {
  animation-delay: 0.7s;
}
.stagger-animation > *:nth-child(8) {
  animation-delay: 0.8s;
}
.stagger-animation > *:nth-child(9) {
  animation-delay: 0.9s;
}
