/* Custom styles for Perseus Search */

.htmx-indicator {
    display: none;
}

/* Custom scale class for subtle zoom */
.scale-102 {
    transform: scale(1.02);
}

.htmx-request .htmx-indicator {
    display: block;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.pulse-subtle {
    animation: pulseSubtle 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseSubtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Greek font styling with regal typography */
.font-greek {
    font-family: 'EB Garamond', 'Times New Roman', 'Palatino Linotype', 'Book Antiqua', 'New Athena Unicode', serif;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 0.025em;
}

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

/* Focus styles */
input:focus {
    box-shadow: 0 0 0 3px rgba(143, 70, 76, 0.1);
}

button:focus {
    box-shadow: 0 0 0 3px rgba(143, 70, 76, 0.1);
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Regal typography enhancements */
.regal-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1.2;
}

.regal-body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.regal-subtitle {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .bg-white,
    .bg-gray-50,
    .bg-green-50,
    .bg-red-50,
    .bg-blue-50 {
        background: white !important;
    }
}
