* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.app { min-height: 100vh; }
.page { display: none; min-height: 100vh; padding: 20px; }
.page.active { display: block; }
.container { max-width: 480px; margin: 0 auto; }

.home { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; text-align: center; }
.home-content { padding: 60px 0 40px; }
.home h1 { font-size: 36px; font-weight: 700; color: white; margin-bottom: 8px; }
.home .subtitle { font-size: 18px; color: rgba(255,255,255,0.9); font-weight: 500; margin-bottom: 48px; }
.hero-icon { font-size: 80px; margin-bottom: 48px; }
.home .description { color: white; font-size: 16px; margin-bottom: 40px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; font-size: 16px; font-weight: 600; color: #000; background: #6366f1; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; width: 100%; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: white; color: #667eea; font-size: 18px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; border: 2px solid #6366f1; color: #6366f1; }
.btn-outline:hover { background: #6366f1; color: #000; }
.btn-secondary { background: #10b981; color: #000; }

.header { text-align: center; padding-top: 60px; margin-bottom: 32px; }
.header h1 { font-size: 28px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.header .sub { font-size: 16px; color: #64748b; }

.country-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 24px; }
.country-card { border-radius: 16px; padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.country-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.country-card .flag { font-size: 48px; margin-bottom: 8px; }
.country-card .name { font-size: 16px; font-weight: 600; color: white; }

.scene-list { margin-bottom: 24px; }
.scene-card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 12px; display: flex; align-items: center; cursor: pointer; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border: 2px solid transparent; }
.scene-card:hover { transform: translateY(-2px); }
.scene-card.selected { border-color: #6366f1; background: #f0f9ff; }
.scene-card .icon { font-size: 24px; font-weight: 700; color: #6366f1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #f0f9ff; border-radius: 8px; margin-right: 16px; }
.scene-card .info { flex: 1; }
.scene-card .name { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.scene-card .desc { font-size: 14px; color: #64748b; }
.scene-card .arrow { font-size: 24px; color: #94a3b8; }

.upload-section { margin-bottom: 24px; }
.upload-label { font-size: 14px; color: #64748b; margin-bottom: 8px; text-align: center; }
input[type="file"] { width: 100%; padding: 16px; border: 2px dashed #e2e8f0; border-radius: 12px; background: white; cursor: pointer; }
.button-group { display: flex; gap: 12px; }
.button-group .btn { flex: 1; }

.generating { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; text-align: center; }
.generating-content { padding-top: 40px; }
.spinner { width: 80px; height: 80px; border: 4px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 32px; }
@keyframes spin { to { transform: rotate(360deg); } }
.generating h1 { font-size: 28px; font-weight: 700; color: white; margin-bottom: 8px; }
.generating .sub { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 40px; }
.progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.3); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress-fill { height: 100%; background: white; border-radius: 4px; transition: width 0.1s; width: 0%; }
.status-text { font-size: 14px; color: rgba(255,255,255,0.8); }

.section { margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 12px; }
.image-container, .video-container { border-radius: 16px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.image-container img, .video-container video { width: 100%; display: block; }
.culture-card { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.culture-text { color: #1e293b; line-height: 1.6; margin-bottom: 16px; }
.phrases { display: flex; flex-direction: column; gap: 8px; }
.phrase { background: #f0f9ff; padding: 12px; border-radius: 8px; color: #0369a1; font-weight: 500; text-align: center; }
.result .button-group { margin-top: 32px; margin-bottom: 40px; }
.result .btn-secondary { width: 100%; margin-bottom: 24px; }
