/* SSilistre.dev - Custom Styles */

/* 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;
}

/* Products slider */
.products-slider,
.projects-slider {
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.products-slider::-webkit-scrollbar,
.projects-slider::-webkit-scrollbar {
    height: 6px;
}

.products-slider::-webkit-scrollbar-track,
.projects-slider::-webkit-scrollbar-track {
    background: transparent;
}

.products-slider::-webkit-scrollbar-thumb,
.projects-slider::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.products-slider::-webkit-scrollbar-thumb:hover,
.projects-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .no-print {
        display: none !important;
    }

    .bg-bg-surface {
        background: #f5f5f5 !important;
    }

    .border-border-subtle {
        border-color: #ddd !important;
    }

    .text-white {
        color: black !important;
    }

    .text-slate-400,
    .text-slate-500 {
        color: #666 !important;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Spinner for loading states */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form focus improvements */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Password toggle button styling */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.password-toggle:hover {
    color: #fff;
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 8px;
    border: 1px solid #333;
}

/* Copy button feedback */
.copied {
    background-color: #22c55e !important;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }
}

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

/* Selection color */
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: white;
}

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