/* Eigo Bubble - カスタムスタイル */

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.app-title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.app-footer {
    text-align: center;
    color: white;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 浮遊するシャボン玉アニメーション */
.floating-bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
    animation: float-around 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 70%;
    animation-delay: 7s;
}

.bubble-3 {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 40%;
    animation-delay: 14s;
}

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(20px, 30px);
    }
}

/* カードスタイル */
.practice-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.level-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* タイピング入力エリア */
.input-container {
    position: relative;
}

.ghost-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.typing-input {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
}

.glass-input {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
}

.glass-input:focus {
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(255, 255, 255, 1);
}

/* 統計ダッシュボード */
.stats-dashboard {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* 正解・不正解フィードバック */
.feedback-correct {
    color: #10b981;
    animation: bounce 0.5s ease;
}

.feedback-incorrect {
    color: #ef4444;
    animation: shake 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* 習得バッジアニメーション */
.mastered-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ガラスモーフィズムボタンスタイル */
button, .button, a.button {
    color: rgba(80, 80, 120, 1) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50px !important;
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.7), 
                inset 0 -5px 20px rgba(200, 200, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative;
}

button:hover, .button:hover, a.button:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.8), 
                inset 0 -5px 20px rgba(200, 200, 255, 0.3) !important;
    transform: translateY(-5px) !important;
}

button:active, .button:active, a.button:active {
    transform: translateY(0) !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6) !important;
}

button:disabled, .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .level-grid {
        grid-template-columns: 1fr;
    }
    
    .ghost-text {
        font-size: 1.5rem;
    }
}
