/**
 * Skeleton Screen Styles
 * 
 * These styles create placeholder loading animations for content
 * that is still being loaded or processed.
 */

/* Base skeleton class */
.skeleton-loader {
    background-color: #2a2a2a;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Animation for skeletons */
.skeleton-animate::before {
    content: '';
    display: block;
    position: absolute;
    left: -150px;
    top: 0;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, transparent 0%, #3a3a3a 50%, transparent 100%);
    animation: skeleton-loading 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes skeleton-loading {
    from {
        left: -150px;
    }
    to {
        left: 100%;
    }
}

/* Specific skeleton types */
.skeleton-text {
    height: 20px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-title {
    height: 28px;
    margin-bottom: 12px;
    width: 70%;
}

.skeleton-button {
    height: 36px;
    width: 120px;
    border-radius: 4px;
}

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

.skeleton-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

.skeleton-card {
    padding: 16px;
    border-radius: 8px;
    background-color: #2a2a2a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-input {
    height: 36px;
    border-radius: 4px;
}

.skeleton-checkbox {
    height: 20px;
    width: 20px;
    border-radius: 4px;
    margin-right: 8px;
}

.skeleton-radio {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.skeleton-select {
    height: 36px;
    border-radius: 4px;
}

.skeleton-textarea {
    height: 100px;
    border-radius: 4px;
}

.skeleton-table {
    width: 100%;
}

.skeleton-table-row {
    height: 40px;
    margin-bottom: 8px;
}

.skeleton-table-cell {
    height: 20px;
    margin-bottom: 8px;
    margin-right: 8px;
    display: inline-block;
}

.skeleton-progress {
    height: 8px;
    border-radius: 4px;
}

.skeleton-badge {
    height: 20px;
    width: 40px;
    border-radius: 10px;
    display: inline-block;
}

.skeleton-tab {
    height: 40px;
    width: 100px;
    border-radius: 4px 4px 0 0;
    margin-right: 8px;
    display: inline-block;
}

.skeleton-panel {
    height: 200px;
    border-radius: 0 0 4px 4px;
}

/* Skeleton layout helpers */
.skeleton-flex {
    display: flex;
}

.skeleton-flex-column {
    display: flex;
    flex-direction: column;
}

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

/* Fade transition for content replacement */
.content-fade-in {
    opacity: 0;
    animation: fade-in 0.3s ease-in forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Content placeholder for tabs that are not yet loaded */
.tab-content-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tab-content-placeholder .loading-message {
    color: #888;
    margin-top: 10px;
    font-size: 14px;
}

/* Response box skeletons */
.skeleton-response-box {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-model-header {
    height: 40px;
    width: 70%;
    margin-bottom: 16px;
}

.skeleton-response-content {
    height: 140px;
}

/* Form field skeletons */
.skeleton-form-group {
    margin-bottom: 16px;
}

.skeleton-form-label {
    height: 20px;
    width: 30%;
    margin-bottom: 8px;
}

/* Debate skeletons */
.skeleton-debate-container {
    padding: 16px;
}

.skeleton-debate-title {
    height: 32px;
    width: 80%;
    margin: 0 auto 20px;
}

.skeleton-debate-status {
    height: 24px;
    width: 60%;
    margin: 0 auto 30px;
}

.skeleton-debate-argument {
    height: 200px;
    margin-bottom: 20px;
}

/* Animation delay utility classes */
.skeleton-delay-100 { animation-delay: 0.1s; }
.skeleton-delay-200 { animation-delay: 0.2s; }
.skeleton-delay-300 { animation-delay: 0.3s; }
.skeleton-delay-400 { animation-delay: 0.4s; }
.skeleton-delay-500 { animation-delay: 0.5s; }
