/* North American Apothecary - Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

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

    body {
        background: white;
    }
}

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

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

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

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #10b981;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Text selection */
::selection {
    background: #10b981;
    color: white;
}

/* Responsive text sizing - Optimized for 35-60 demographic */
body {
    font-size: 18px; /* Base 18px for better readability (was 16px default) */
    line-height: 1.75; /* Relaxed leading for comfortable reading */
}

@media (max-width: 640px) {
    body {
        font-size: 16px; /* Slightly smaller on mobile but still readable */
    }
}

/* Offline indicator */
body.offline::before {
    content: 'Offline Mode - Changes saved locally';
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Utility classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.text-balance {
    text-wrap: balance;
}

/* Herb card hover effect */
.herb-card {
    transition: all 0.3s ease;
}

.herb-card:hover {
    transform: translateY(-4px);
}

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