/* Custom Styles for Astro Calc */

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Form Inputs */
.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    /* accent-purple */
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Autocomplete Dropdown */
.autocomplete-results {
    position: absolute;
    z-index: 50;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #1a1a4a;
    /* cosmic-800 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s;
}

.autocomplete-item:hover {
    background-color: rgba(139, 92, 246, 0.2);
}

/* Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0e2e;
}

::-webkit-scrollbar-thumb {
    background: #2a2a6a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a8a;
}

/* Markdown-like typography for descriptions */
.prose h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #d1d5db;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}