/* GIMP.cc Custom Styles */

/* Smooth scroll offset for sticky header */
html {
  scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* File input styling normalization */
input[type="file"] {
  cursor: pointer;
}

/* Tool drag-and-drop zones */
.drop-zone-active {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

/* Prose image handling */
.prose img {
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

/* Admin layout adjustments */
@media (max-width: 1024px) {
  .admin-content { padding: 1rem; }
}

/* Print styles */
@media print {
  header, footer, aside, nav { display: none !important; }
  main { max-width: 100% !important; }
  .prose { font-size: 12pt; }
}

/* Focus ring improvement for accessibility */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Animated loading spinner */
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Checkerboard transparency pattern (for transparency checker) */
.checkerboard {
  background-image: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%);
  background-size: 20px 20px;
}

/* Highlight on copy */
.copied-flash {
  animation: flash 0.3s ease;
}
@keyframes flash {
  0% { background-color: #dbeafe; }
  100% { background-color: transparent; }
}

/* Color palette swatches hover */
.color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Admin chart containers */
.chart-container {
  position: relative;
  width: 100%;
}

/* Blog post typography enhancements */
.prose h1:first-child {
  margin-top: 0;
}

/* Skip to content accessibility link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
}
