/* PathFinder - Skeleton Loading Screens */

/* Skeleton Base */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface) 0%,
        var(--surface-light) 50%,
        var(--surface) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

/* Skeleton Text */
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text-large {
    height: 24px;
    margin-bottom: 12px;
}

.skeleton-text-small {
    height: 12px;
    margin-bottom: 6px;
}

/* Skeleton Card */
.skeleton-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

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

.skeleton-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Skeleton Dashboard Stats */
.skeleton-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skeleton-stat-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.skeleton-stat-value {
    width: 80px;
    height: 40px;
    margin-bottom: 12px;
}

.skeleton-stat-label {
    width: 120px;
    height: 16px;
}

/* Skeleton Chart */
.skeleton-chart {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

/* Skeleton Table */
.skeleton-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-table-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
}

.skeleton-table-cell {
    flex: 1;
    height: 20px;
}

/* Skeleton List */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
}

.skeleton-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton Scan Item */
.skeleton-scan {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-scan-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.skeleton-scan-title {
    width: 200px;
    height: 20px;
}

.skeleton-scan-date {
    width: 100px;
    height: 16px;
}

.skeleton-scan-stats {
    display: flex;
    gap: 24px;
}

.skeleton-scan-stat {
    width: 120px;
    height: 16px;
}

/* Skeleton Profile */
.skeleton-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

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

.skeleton-profile-name {
    width: 180px;
    height: 28px;
}

.skeleton-profile-email {
    width: 220px;
    height: 18px;
}

/* Skeleton Form */
.skeleton-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-form-label {
    width: 100px;
    height: 16px;
}

.skeleton-form-input {
    width: 100%;
    height: 48px;
    border-radius: 8px;
}

.skeleton-form-button {
    width: 150px;
    height: 48px;
    border-radius: 8px;
    align-self: flex-start;
}

/* Animation Delays for Staggered Effect */
.skeleton:nth-child(1) { animation-delay: 0s; }
.skeleton:nth-child(2) { animation-delay: 0.1s; }
.skeleton:nth-child(3) { animation-delay: 0.2s; }
.skeleton:nth-child(4) { animation-delay: 0.3s; }
.skeleton:nth-child(5) { animation-delay: 0.4s; }

/* Hide real content when loading */
.loading .hide-when-loading {
    display: none;
}

.loading .show-when-loading {
    display: block;
}

.show-when-loading {
    display: none;
}

