/* Spinobon Frost — custom keyframes & prose */

:root {
  --frost-50: #f0f9ff;
  --frost-100: #e0f2fe;
  --frost-200: #bae6fd;
  --frost-300: #7dd3fc;
  --frost-400: #38bdf8;
  --frost-500: #0ea5e9;
  --frost-600: #0284c7;
  --frost-700: #0369a1;
  --frost-800: #075985;
  --frost-900: #0c4a6e;
  --silver: #c8d8e8;
  --dark-navy: #071527;
  --mid-navy: #0d2040;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px 2px rgba(56,189,248,0.45); }
  50%       { box-shadow: 0 0 28px 6px rgba(56,189,248,0.80); }
}

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

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

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

.animate-glow      { animation: glow-pulse 2.4s ease-in-out infinite; }
.animate-marquee   { animation: marquee 28s linear infinite; }
.animate-float     { animation: float 4s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 12s linear infinite; }

/* Prose styles for markdown single pages */
.prose {
  color: var(--frost-100);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 100%;
}

.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--frost-300);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  border-bottom: 2px solid rgba(56,189,248,0.25);
  padding-bottom: 0.3em;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--silver);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

.prose p {
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose a {
  color: var(--frost-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--frost-200);
}

.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  color: #cbd5e1;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  border-left: 4px solid var(--frost-500);
  padding-left: 1em;
  color: var(--silver);
  font-style: italic;
  margin: 1.5em 0;
  background: rgba(14,165,233,0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.8em 1em;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.93rem;
}

.prose table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
}

.prose th {
  background: var(--frost-700);
  color: #fff;
  padding: 0.6em 1em;
  text-align: left;
  font-weight: 600;
}

.prose td {
  padding: 0.55em 1em;
  border-bottom: 1px solid rgba(56,189,248,0.15);
  color: #cbd5e1;
  background: rgba(13,32,64,0.6);
}

.prose tr:hover td {
  background: rgba(56,189,248,0.08);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  border: 1px solid rgba(56,189,248,0.2);
}

/* Parallax base */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* Frost card */
.frost-card {
  background: rgba(13,32,64,0.72);
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.frost-card:hover {
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

/* Badge glow */
.badge-glow {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  box-shadow: 0 0 18px rgba(56,189,248,0.5);
  border-radius: 0.75rem;
}

/* Mobile table scroll wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
}
