/**
 * Championship Life Gaming - Frontend Game Styles
 * These styles are loaded on game pages
 */

/* Remove top gap on game pages */
body.clg-game-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* SPA navigation transitions */
#clg-app {
    transition: opacity 0.15s ease-out;
}
#clg-app.clg-transition-out {
    opacity: 0.6;
}
#clg-app.clg-transition-in {
    opacity: 1;
}

/* Ensure game pages take full viewport */
.clg-game-wrapper {
    min-height: 100vh;
    width: 100%;
}

/* Loading states */
.clg-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom animations */
@keyframes clg-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clg-fade-in {
    animation: clg-fade-in 0.3s ease-out;
}

/* Level card hover effects */
.clg-level-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clg-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Chapter progress indicators */
.clg-chapter-locked {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
}

.clg-chapter-completed {
    border: 2px solid #10b981;
}

.clg-chapter-in-progress {
    border: 2px solid #f59e0b;
}

/* Chapter complete toast */
.clg-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.clg-toast.clg-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Progress circle animation on level nodes */
.progress-circle {
    transition: stroke-dashoffset 0.6s ease-out;
}

/* Fill in the blanks - single line display */
.clg-fill-blanks {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

/* Fill in the blanks input fields */
.clg-fill-blank-input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-bottom: solid 1px #b7b7b7 !important;
    border-radius: 0 !important;
    height: 20px !important;
    text-align: center !important;
    padding: 0 5px !important;
    color: #201827 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
}
