/* GrudanaWeb - Custom CSS */

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

/* Line clamp utilities */
.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;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Prose styles for blog content */
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; }
.prose a { color: #0078b4; text-decoration: underline; }
.prose code { background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.prose pre { background: #1f2937; color: #f9fafb; padding: 1rem; border-radius: 0.75rem; overflow-x: auto; margin: 1rem 0; }

/* Dark mode prose */
.dark .prose p,
.dark .prose h2,
.dark .prose h3,
.dark .prose li { color: #e5e7eb; }
.dark .prose code { background: #374151; color: #f9fafb; }

/* Canvas cursor */
canvas { cursor: crosshair; }

/* Table on mobile */
@media (max-width: 640px) {
    .table-responsive { overflow-x: auto; }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #0078b4;
    outline-offset: 2px;
}

/* Loading state */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* Range input */
input[type="range"] {
    cursor: pointer;
}

/* SVG icon fix */
svg { display: inline-block; vertical-align: middle; }

/* Tool card SVG illustrations */
.tool-icon-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}
