/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 화면 전환 */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 메인 메뉴 */
#main-menu {
    text-align: center;
    padding: 40px 20px;
}

.header {
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.menu-item {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid transparent;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.menu-item:active {
    transform: translateY(-2px);
}

.menu-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.menu-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.menu-item p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.footer {
    margin-top: 40px;
}

.sound-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sound-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.advanced-training-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.advanced-training-btn:hover {
    background: linear-gradient(135deg, #ff5252, #d63031);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: white;
}

.advanced-training-btn:active {
    transform: scale(1.02);
}

/* 키오스크 화면 */
#kiosk-screen {
    background: #f8f9fa;
    padding: 0;
}

.kiosk-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: scale(1.05);
}

#scenario-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.kiosk-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

.menu-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#menu-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.menu-item-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.menu-item-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: scale(1.02);
}

.menu-item-btn:active {
    transform: scale(0.98);
}

.menu-item-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.menu-item-price {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.order-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.order-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.order-list {
    flex-grow: 1;
    margin-bottom: 20px;
}

.empty-order {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.remove-item-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.remove-item-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

.order-item-name {
    font-weight: 500;
    color: #333;
}

.order-item-price {
    color: #667eea;
    font-weight: 600;
}

.total-section {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

#total-price {
    color: #667eea;
    font-size: 1.5rem;
}

.payment-buttons {
    display: flex;
    gap: 15px;
}

.pay-btn {
    flex: 1;
    padding: 20px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    opacity: 1;
    pointer-events: auto;
}

.pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.cash-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.card-btn {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pay-btn:active {
    transform: translateY(0);
}

/* 결제 화면 */
#payment-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.payment-content {
    background: white;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
}

.payment-animation {
    margin-bottom: 30px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#payment-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* 완료 화면 */
#completion-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.completion-content {
    background: white;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.completion-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

#completion-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.completion-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kiosk-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .kiosk-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .payment-buttons {
        flex-direction: column;
    }
    
    .completion-buttons {
        flex-direction: column;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .menu-item {
        border: 3px solid #000;
    }
    
    .pay-btn {
        border: 2px solid #000;
    }
} 