/* ============================================
   VEPTUN - Custom CSS Styles
   ============================================ */

/* Font Family */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.font-sans {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Line Clamp */
.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 fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.4s ease-out;
}

.animate-shrink {
    animation: shrink 3s linear forwards;
}

/* Checkbox Custom Style */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d4d4d8;
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"]:checked {
    background-color: #18181b;
    border-color: #18181b;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.2);
}

/* Radio Custom Style */
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d4d4d8;
    border-radius: 9999px;
    background-color: white;
    cursor: pointer;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input[type="radio"]:checked {
    background-color: #18181b;
    border-color: #18181b;
}

input[type="radio"]:checked::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: white;
}

/* Select Dropdown */
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Selection */
::selection {
    background-color: #18181b;
    color: white;
}

::-moz-selection {
    background-color: #18181b;
    color: white;
}

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

/* Focus */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

/* Transition */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Prose Styles */
.prose {
    max-width: 65ch;
}

.prose-zinc {
    color: #3f3f46;
}

.prose-zinc p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose-zinc h1, 
.prose-zinc h2, 
.prose-zinc h3, 
.prose-zinc h4 {
    color: #18181b;
    font-weight: 900;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose-zinc strong {
    color: #18181b;
    font-weight: 800;
}

.prose-zinc a {
    color: #0369a1;
    text-decoration: underline;
}

.prose-zinc ul, 
.prose-zinc ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.prose-zinc li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Tailwind Shadow Utilities */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
