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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background-color: white;
}

/* 페이지 헤더 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 목적지 선택 페이지 */
.destination-list-page {
    padding-bottom: 2rem;
}

.destination-cards {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.destination-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.destination-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.destination-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.destination-info {
    flex: 1;
    min-width: 0;
}

.destination-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.destination-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.select-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.select-btn:active {
    opacity: 0.8;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

/* 경로 미리보기 페이지 */
.navigation-preview-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.route-info {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.action-section {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #eee;
}

.start-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.start-btn:active {
    opacity: 0.9;
}

/* 실시간 길안내 페이지 */
.navigation-active-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.progress-info {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.distance-time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.9;
}

.navigation-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.control-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pause-btn {
    background: #ffc107;
    color: white;
}

.stop-btn {
    background: #f44336;
    color: white;
}

.control-btn:active {
    opacity: 0.8;
}

/* 지도 마커 스타일 */
.current-location-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pulse {
    width: 20px;
    height: 20px;
    background: #4285F4;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.marker-pulse::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #4285F4;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s infinite;
}

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

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .destination-card {
        padding: 1rem;
    }
    
    .destination-name {
        font-size: 1.1rem;
    }
}

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .select-btn,
    .start-btn,
    .control-btn {
        min-height: 44px;
    }
    
    .destination-card {
        min-height: 80px;
    }
}

