/* Main CSS Entry Point */

/* Base Styles */
@import 'base/variables.css';
@import 'base/reset.css';
@import 'layout/main.css';
@import 'components/header.css';
@import 'components/footer.css';
@import 'components/cards.css';
@import 'components/buttons.css';
@import 'components/modals.css';
@import 'components/tabs.css';
@import 'components/empty-state.css';
@import 'features/game.css';
@import 'features/lesson.css';
@import 'features/progress.css';
@import 'features/shop.css';
@import 'features/shop-animations.css';
@import 'features/voice-picker.css';
@import 'features/grid-picker.css';
@import 'features/onboarding.css';
@import 'features/mistake-review.css';
@import 'features/daily-goals.css';
@import 'features/settings.css';

/* Responsive Modules - Core Breakpoints */
@import 'base/breakpoints.css';
@import 'features/game/_mobile.css';
@import 'features/game/_tablet.css';
@import 'features/game/_desktop.css';
@import 'features/game/_orientation.css';

@import 'layout/desktop.css';
/* Legacy layout support, consider refactoring later */
/* Desktop overrides last */
@import 'utils/animations.css';

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--tang-paper);
    background-image: var(--texture-paper);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s step-end;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: fadeUp 1s ease-out;
}

.splash-title {
    font-family: var(--app-font);
    font-size: 4rem;
    color: var(--tang-ink);
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.splash-subtitle {
    font-size: 1.5rem;
    color: var(--tang-red);
    letter-spacing: 0.5rem;
    font-weight: 500;
}

.splash-version {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--tang-text);
    opacity: 0.6;
    letter-spacing: 0.1rem;
    font-weight: 400;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landscape Orientation Warning */
.landscape-warning {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--tang-paper);
    background-image: var(--texture-paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    font-family: var(--app-font);
}

/* Show on ALL touch devices (phones and tablets) in landscape orientation */
@media screen and (orientation: landscape) and (pointer: coarse) {
    .landscape-warning {
        display: flex;
    }
}

.warning-content {
    max-width: 400px;
    animation: fadeUp 0.6s ease-out;
}

.rotate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--tang-red);
}

.rotate-icon svg {
    width: 100%;
    height: 100%;
}

.rotate-arrow {
    animation: rotateLoop 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes rotateLoop {
    0% {
        transform: rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: rotate(90deg);
        opacity: 1;
    }

    100% {
        transform: rotate(90deg);
        opacity: 0;
    }
}

.landscape-warning h2 {
    color: var(--tang-red);
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.landscape-warning p {
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.6;
}

.landscape-warning b {
    color: var(--tang-red);
    font-weight: 700;
}