@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes parallax-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes frosted-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 216, 234, 0.15); }
  50% { box-shadow: 0 0 24px 8px rgba(168, 216, 234, 0.08); }
}

.hero-spin-motif {
  animation: spin-slow 20s linear infinite;
}

.hero-spin-motif-2 {
  animation: spin-slow 30s linear infinite reverse;
}

.marquee-track {
  animation: marquee 30s linear infinite;
}

.float-anim {
  animation: parallax-float 6s ease-in-out infinite;
}

/* Prose styling for markdown content */
.prose-arctic {
  color: #b8e3f5;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
}

.prose-arctic h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #a8d8ea;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  border-left: 4px solid #6bbdd8;
  padding-left: 0.75rem;
}

.prose-arctic h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #a8d8ea;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose-arctic p {
  margin-bottom: 1.25rem;
  color: #b8e3f5;
}

.prose-arctic a {
  color: #6bbdd8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-arctic a:hover {
  color: #a8d8ea;
}

.prose-arctic ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.prose-arctic ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #b8e3f5;
}

.prose-arctic ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #6bbdd8;
  font-size: 0.9rem;
}

.prose-arctic ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-arctic ol li {
  margin-bottom: 0.5rem;
  color: #b8e3f5;
  padding-left: 0.25rem;
}

.prose-arctic blockquote {
  border-left: 3px solid #6bbdd8;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background-color: rgba(107, 189, 216, 0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #a8d8ea;
  font-style: italic;
}

.prose-arctic table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: rgba(30, 42, 56, 0.6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-arctic table thead tr {
  background-color: rgba(107, 189, 216, 0.15);
}

.prose-arctic table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #a8d8ea;
  white-space: nowrap;
}

.prose-arctic table td {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(107, 189, 216, 0.15);
  color: #b8e3f5;
}

.prose-arctic table tr:nth-child(even) td {
  background-color: rgba(107, 189, 216, 0.04);
}

.prose-arctic img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  display: block;
}

.prose-arctic strong {
  color: #e0f3fc;
  font-weight: 700;
}

.prose-arctic em {
  color: #a8d8ea;
  font-style: italic;
}

.prose-arctic hr {
  border: none;
  border-top: 1px solid rgba(107, 189, 216, 0.2);
  margin: 2rem 0;
}

.prose-arctic code {
  background-color: rgba(107, 189, 216, 0.1);
  color: #a8d8ea;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Responsive table wrapper for prose */
.prose-arctic table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table-responsive wrapper: horizontal scroll on small screens */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d1520;
}

::-webkit-scrollbar-thumb {
  background: #2a7d9a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a9ec0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #6bbdd8;
  outline-offset: 2px;
}

/* Ensure images scale */
img {
  max-width: 100%;
  height: auto;
}
