/* Loading Spinner Utilities */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(6, 78, 59, 0.1);
    border-radius: 50%;
    border-top-color: #064E3B; /* primary color */
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.loading-spinner-md {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
}

.loading-spinner-white {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
}

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

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton Helper Shapes */
.skeleton-circle {
    border-radius: 50% !important;
}

.skeleton-rounded {
    border-radius: 0.75rem !important;
}

.skeleton-text {
    height: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-title {
    height: 1.25rem;
    margin-bottom: 0.75rem;
    width: 60%;
}

/* Specific Skeleton Components */
.skeleton-post-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.skeleton-banner {
    aspect-ratio: 21 / 9;
    width: 100%;
    border-radius: 1rem;
}

