/* Loading Animation Styles */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 200px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.loading-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
}

.loading-spinner div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #18bfef;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-spinner div:nth-child(1) {
    left: 8px;
    animation: loading-spinner1 0.6s infinite;
}

.loading-spinner div:nth-child(2) {
    left: 8px;
    animation: loading-spinner2 0.6s infinite;
}

.loading-spinner div:nth-child(3) {
    left: 32px;
    animation: loading-spinner2 0.6s infinite;
}

.loading-spinner div:nth-child(4) {
    left: 56px;
    animation: loading-spinner3 0.6s infinite;
}

@keyframes loading-spinner1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading-spinner3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loading-spinner2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

.loading-text {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    letter-spacing: 0.05em;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Pulse animation for the loading text */
.loading-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Skeleton Loading Screens */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

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

.skeleton-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text-short {
    height: 16px;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.skeleton-tag {
    height: 28px;
    width: 80px;
    border-radius: 6px;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    margin-top: 1rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

@media (max-width: 736px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
    }
}
