/* =============================================
   COMPONENT: Loading
   Skeleton loaders, spinners, progress bars
   Source: layout/newStyle.css lines 3082-3280
   ============================================= */

/* -----------------------------------------
   Async Content Container
   ----------------------------------------- */

.async-content {
    position: relative;
    min-height: 200px;
    transition: opacity 0.2s ease;
}


/* -----------------------------------------
   Loading Overlay
   ----------------------------------------- */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-darkest);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    border-radius: var(--radius-md);
    gap: var(--spacing-base);
}


/* -----------------------------------------
   Loading Spinner
   ----------------------------------------- */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 0, 0, 0.3);
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius-circle);
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: var(--color-gold);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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


/* -----------------------------------------
   Skeleton Loading
   ----------------------------------------- */

.skeleton-loading {
    padding: var(--spacing-lg);
}

.skeleton-row {
    height: 50px;
    background: linear-gradient(90deg, rgba(60, 20, 20, 0.5) 25%, rgba(80, 30, 30, 0.5) 50%, rgba(60, 20, 20, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.skeleton-row:last-child {
    margin-bottom: 0;
}

.skeleton-card {
    width: 150px;
    height: 180px;
    background: linear-gradient(90deg, rgba(60, 20, 20, 0.5) 25%, rgba(80, 30, 30, 0.5) 50%, rgba(60, 20, 20, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

.skeleton-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.skeleton-podium .skeleton-card:nth-child(2) {
    height: 220px;
}

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

/* Skeleton table header */
.skeleton-header {
    height: 40px;
    background: linear-gradient(90deg, rgba(100, 40, 40, 0.6) 25%, rgba(120, 50, 50, 0.6) 50%, rgba(100, 40, 40, 0.6) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}


/* -----------------------------------------
   Blink Animation (Legacy Changelog)
   ----------------------------------------- */

@keyframes blink {
    0%   { background-color: #421111; }
    50%  { background-color: #6e1717; }
    100% { background-color: #421111; }
}


/* -----------------------------------------
   Changelog Item (Collapsible Row)
   ----------------------------------------- */

.changelogItem {
    width: 100%;
    background-color: #421111;
    box-shadow: 3px 3px 3px #000;
    max-height: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: left;
    justify-content: left;
    text-align: left;
    flex-direction: row;
    cursor: pointer;
    user-select: none;
}

.changelogItem:hover {
    box-shadow: 3px 3px 3px #0f0f0f;
}


/* -----------------------------------------
   Animated Wiki Header
   ----------------------------------------- */

.animated_wiki {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: 50;
    letter-spacing: 1px;
    text-align: left;
    color: #f35626;
    background-image: -webkit-linear-gradient(32deg, #f35626, #feab3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #f35626;
    -webkit-animation: hue 4s infinite linear;
}

@-webkit-keyframes hue {
    from { -webkit-filter: hue-rotate(0deg); }
    to   { -webkit-filter: hue-rotate(-360deg); }
}


/* -----------------------------------------
   Server Type Button (Image Filter)
   ----------------------------------------- */

.ServerTypeButton {
    transition: filter var(--transition-base);
}

.ServerTypeButton:hover {
    -webkit-filter: grayscale(0%) contrast(200%);
    filter: grayscale(0%) contrast(200%);
}
