/* ========================================================================
   SKELETON LOADER STYLES - FunPhantom
   Reusable skeleton loading animations for all pages
   ======================================================================== */

/* Base Skeleton Loader */
.skeleton-loader {
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.8) 25%,
        rgba(51, 65, 85, 0.8) 50%,
        rgba(30, 41, 59, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

.skeleton-text {
    border-radius: 6px;
    height: 16px;
}

.skeleton-title {
    border-radius: 8px;
    height: 28px;
}

.skeleton-button {
    border-radius: 8px;
    height: 40px;
}

.skeleton-card {
    border-radius: 16px;
    min-height: 200px;
}

.skeleton-avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.skeleton-thumbnail {
    border-radius: 12px;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

/* Skeleton Container States */
.skeleton-container {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.skeleton-container.fade-out {
    opacity: 0;
}

.actual-content {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.actual-content.fade-in {
    opacity: 1;
}

/* Skeleton Grid Layouts */
.skeleton-grid {
    display: grid;
    gap: 1.5rem;
}

.skeleton-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.skeleton-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.skeleton-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Skeleton Table */
.skeleton-table {
    width: 100%;
}

.skeleton-table tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.skeleton-table td {
    padding: 1rem;
}

/* Skeleton Form Elements */
.skeleton-input {
    height: 45px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-textarea {
    height: 120px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-select {
    height: 45px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Skeleton Stats Card */
.skeleton-stat-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Skeleton Video Card */
.skeleton-video-card {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skeleton-grid-2,
    .skeleton-grid-3,
    .skeleton-grid-4 {
        grid-template-columns: 1fr;
    }
}

