/* Policy Pages 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);
  }
}

/* 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;
}

/* Lists */
.list-disc.list-inside {
  animation: slideInFromRight 0.6s ease-out;
}

.list-disc.list-inside li {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.list-disc.list-inside li:hover {
  color: var(--sqube-red);
  transform: translateX(5px);
}

/* Tables */
table {
  animation: fadeInUp 0.6s ease-out;
}

table th {
  background-color: var(--sqube-cream);
  color: var(--sqube-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

table td {
  transition: all 0.3s ease;
}

table tr:hover td {
  background-color: #f9f9f9;
  color: var(--sqube-red);
}

/* Alert Boxes */
.bg-yellow-50,
.bg-red-50,
.bg-blue-50,
.bg-green-50 {
  animation: slideInFromLeft 0.6s ease-out;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.bg-yellow-50:hover,
.bg-red-50:hover,
.bg-blue-50:hover,
.bg-green-50:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Process Steps */
.flex.items-start.space-x-4 {
  animation: slideInFromLeft 0.6s ease-out;
  animation-fill-mode: both;
}

.flex.items-start.space-x-4:nth-child(1) {
  animation-delay: 0.1s;
}
.flex.items-start.space-x-4:nth-child(2) {
  animation-delay: 0.2s;
}
.flex.items-start.space-x-4:nth-child(3) {
  animation-delay: 0.3s;
}
.flex.items-start.space-x-4:nth-child(4) {
  animation-delay: 0.4s;
}
.flex.items-start.space-x-4:nth-child(5) {
  animation-delay: 0.5s;
}

/* Step Numbers */
.w-8.h-8.bg-primary {
  transition: all 0.3s ease;
}

.w-8.h-8.bg-primary:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(138, 0, 0, 0.3);
}

/* Grid Cards */
.grid.grid-cols-1.md\\:grid-cols-2 > div {
  animation: fadeInUp 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) {
  animation-delay: 0.1s;
}
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(2) {
  animation-delay: 0.2s;
}

.grid.grid-cols-1.md\\:grid-cols-2 > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Contact Information */
.bg-background.rounded-lg {
  animation: slideInFromRight 0.6s ease-out;
  transition: all 0.3s ease;
}

.bg-background.rounded-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Icons */
i[data-lucide] {
  transition: all 0.3s ease;
}

i[data-lucide]:hover {
  transform: scale(1.1);
}

/* Links */
a {
  transition: all 0.3s ease;
}

a:hover {
  color: var(--sqube-red);
  text-decoration: underline;
}

/* Paragraphs */
p {
  transition: all 0.3s ease;
}

p:hover {
  color: #4a4a4a;
}

/* Effective Date */
.border-t.border-gray-200 {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid.grid-cols-1.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .flex.items-start.space-x-4 {
    flex-direction: column;
    text-align: center;
  }

  .flex.items-start.space-x-4 .flex-shrink-0 {
    margin-bottom: 1rem;
  }

  table {
    font-size: 0.875rem;
  }

  .text-2xl.font-bold.text-secondary {
    font-size: 1.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bg-background {
    background-color: #1a1a1a;
  }

  .bg-background {
    background-color: #2d2d2d;
    color: #ffffff;
  }

  .text-text {
    color: #a0a0a0;
  }

  .border-gray-200 {
    border-color: #4a4a4a;
  }

  table th {
    background-color: #3a3a3a;
    color: #ffffff;
  }

  table tr:hover td {
    background-color: #3a3a3a;
  }
}

/* Print Styles */
@media print {
  .bg-primary {
    background: var(--sqube-red) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bg-background.rounded-2xl.shadow-lg {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .flex.items-start.space-x-4 {
    break-inside: avoid;
  }

  table {
    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);
  }
}
