/**
 * Skeleton Screen Styles
 * Provides loading placeholders for better UX
 */

/* Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gh-bg-secondary) 0%,
        var(--gh-bg-tertiary) 50%,
        var(--gh-bg-secondary) 100%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Metric Card Skeleton */
.skeleton-metric-card {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-metric-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-metric-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Skeleton Loader für Metric Rows */
.skeleton-loader {
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--gh-bg-secondary) 0%,
        var(--gh-bg-tertiary) 50%,
        var(--gh-bg-secondary) 100%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    height: 1em;
    width: 40px;
}

.skeleton-text {
    display: inline-block;
    min-width: 40px;
}

.metric-row-loading .metric-row-value {
    min-height: 1em;
}

.skeleton-metric-label {
    height: 14px;
    width: 120px;
}

.skeleton-metric-value {
    height: 48px;
    width: 80px;
    border-radius: 4px;
}

.skeleton-metric-trend {
    height: 20px;
    width: 60px;
    border-radius: 4px;
}

.skeleton-metric-graph {
    height: 40px;
    width: 100%;
    border-radius: 4px;
}

/* Recent Intel Item Skeleton */
.skeleton-intel-item {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-intel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.skeleton-intel-company {
    height: 20px;
    width: 200px;
    border-radius: 4px;
}

.skeleton-intel-badges {
    display: flex;
    gap: 8px;
}

.skeleton-intel-badge {
    height: 24px;
    width: 80px;
    border-radius: 12px;
}

.skeleton-intel-description {
    height: 16px;
    width: 100%;
    border-radius: 4px;
    margin-top: 8px;
}

.skeleton-intel-description:nth-child(2) {
    width: 90%;
}

.skeleton-intel-description:nth-child(3) {
    width: 75%;
}

.skeleton-intel-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.skeleton-intel-time {
    height: 14px;
    width: 120px;
    border-radius: 4px;
}

.skeleton-intel-source {
    height: 14px;
    width: 100px;
    border-radius: 4px;
}

/* Chart Skeleton */
.skeleton-chart {
    background: var(--gh-bg-secondary);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 24px;
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-chart-header {
    height: 20px;
    width: 150px;
    border-radius: 4px;
}

.skeleton-chart-content {
    flex: 1;
    width: 100%;
    border-radius: 4px;
}

/* Hero Section Skeleton */
.skeleton-hero-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Recent Feed Skeleton */
.skeleton-recent-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Loading State */
.skeleton-container {
    opacity: 0.7;
}

.skeleton-container.loading {
    opacity: 1;
}

.skeleton-container.loaded {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}










