body {
    font-family: 'Lato', sans-serif;
}
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bfa378; 
}

/* HTMX loading indicator */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator {
    opacity: 1;
}
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Page Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}

.page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loading Spinner */
.page-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(191, 163, 120, 0.2);
    border-top-color: #bfa378;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.page-loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(191, 163, 120, 0.1);
    border-top-color: rgba(191, 163, 120, 0.6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

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

/* Loading Logo (optional enhancement) */
.page-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.page-loading-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.page-loading-logo-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(191, 163, 120, 0.3);
    border-radius: 4px;
    background-color: rgba(191, 163, 120, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa378;
}

.page-loading-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-transform: uppercase;
}

.page-loading-logo-text .primary-text {
    color: #bfa378;
}
