/* CyberSoyuz Platform — additional styles beyond Tailwind */

/* Prose styles for blog content (since Tailwind CDN doesn't include typography) */
.prose { line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h1 { font-size: 2.25rem; font-weight: 800; margin-top: 2em; margin-bottom: .5em; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.75em; margin-bottom: .5em; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5em; margin-bottom: .5em; }
.prose p { margin-top: .75em; margin-bottom: .75em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-top: .75em; margin-bottom: .75em; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li + li { margin-top: .25em; }
.prose blockquote {
  border-left: 3px solid rgba(255,26,26,.5);
  padding: .75rem 1rem;
  margin: 1.25em 0;
  background: rgba(255,255,255,.03);
  border-radius: 0 .5rem .5rem 0;
  color: #d4d4d8;
  font-style: italic;
}
.prose img { border-radius: .75rem; max-width: 100%; height: auto; }
.prose a { color: #ff1a1a; text-decoration: none; border-bottom: 1px solid rgba(255,26,26,.3); }
.prose a:hover { border-bottom-color: #ff1a1a; }
.prose code {
  background: rgba(255,255,255,.08);
  padding: .15rem .4rem;
  border-radius: .25rem;
  font-size: .875em;
  color: #fca5a5;
}
.prose pre {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: .875rem;
}
.prose pre code { background: none; padding: 0; color: #e5e7eb; }
.prose hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25em 0; }
.prose th, .prose td { padding: .5rem .75rem; border: 1px solid rgba(255,255,255,.1); text-align: left; }
.prose th { background: rgba(255,255,255,.04); font-weight: 600; }

/* Line clamp utility */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Form focus ring animation */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(255,26,26,.15);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: .5rem;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Smooth page transitions */
main { animation: fadeIn .3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* Unified checkbox style (design system aligned) */
.cs-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: .35rem;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  accent-color: #ff1a1a;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cs-checkbox:hover {
  border-color: rgba(255,26,26,.55);
}

.cs-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,26,26,.15);
}

.cs-checkbox-lg {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: .45rem;
}
