/* Custom styles for Symbol Copy and Paste website */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Symbol card hover effects */
.symbol-card {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.symbol-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.symbol-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Category card animations */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Copy notification animation */
.copy-notification-show {
    transform: translateX(0) !important;
}

/* Search bar focus effects */
#symbolSearch:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading animation for symbols */
.symbol-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile menu toggle */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.show {
        display: block;
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    .prose h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Modal styles */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Category link hover effects */
.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
}

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

/* Modal animation */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close button hover effect */
#closeModalBtn {
    transition: all 0.2s ease;
}

#closeModalBtn:hover {
    transform: scale(1.1);
    color: #ef4444;
}

/* View all categories button pulse effect */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px 0 rgba(59, 130, 246, 0.5);
    }
    100% {
        box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    }
}

#viewAllCategoriesBtn:hover {
    animation: buttonPulse 2s infinite;
}
