/* =============================================================================
   Expositions Platform - Custom Styles
   ============================================================================= */

/* Animations */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

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

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

/* Focus styles for accessibility */
input:focus,
button:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #7d52f2;
    outline-offset: 2px;
}

/* Form elements */
input[type="checkbox"]:checked {
    background-color: #404040;
    border-color: #1a1a1a;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Toast notifications */
.toast-enter {
    animation: slide-up 0.3s ease-out forwards;
}

.toast-exit {
    animation: slide-up 0.3s ease-in reverse forwards;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #292929;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .show-on-mobile-only {
        display: none !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    nav,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    main {
        padding: 0 !important;
    }
}
