/* Glass Morphism Styles */
.glass-nav {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.glass-island {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  white-space: nowrap;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  transform: translateY(-2px);
}

/* Parallax Background Animation */
.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    animation: parallax 20s ease-in-out infinite;
  }
}

@keyframes parallax {
  0%,
  100% {
    transform: translateY(0) scale(1.1);
  }
  50% {
    transform: translateY(-20px) scale(1.15);
  }
}

/* Marquee Animation */
.marquee-container {
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1rem;
  line-height: 1.75;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.prose-custom ul,
.prose-custom ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-custom li {
  margin-bottom: 0.5rem;
}

.prose-custom a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.2s ease;
}

.prose-custom a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.prose-custom strong {
  font-weight: 700;
  color: #fff;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-custom th,
.prose-custom td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose-custom th {
  font-weight: 700;
  color: #fff;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose-custom {
    font-size: 0.9375rem;
  }
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Animation Performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .glass-nav,
  .glass-island,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
