/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

/* 헤더 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header-content h1 i {
    margin-right: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.print-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

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

.print-btn i {
    margin-right: 8px;
}

/* 탭 네비게이션 */
.tab-nav {
    display: flex;
    overflow-x: auto;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn i {
    margin-right: 5px;
}

/* 콘텐츠 */
.content {
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.tab-content h2 i {
    margin-right: 10px;
}

.day-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

/* 정보 카드 */
.info-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: #495057;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 10px;
    color: #667eea;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.accommodation {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.accommodation h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.map-link {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.map-link i {
    margin-right: 5px;
}

.highlight {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left-color: #764ba2;
}

.budget-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 4px solid #ff6b6b;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.budget-card h3 {
    color: #c92a2a;
    margin-bottom: 1rem;
}

.budget-card ul {
    list-style: none;
}

.budget-card ul li {
    padding: 0.5rem 0;
    color: #c92a2a;
    font-weight: 500;
}

/* 타임라인 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding: 1.5rem 2rem 1.5rem 120px;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 42px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #667eea;
}

.time {
    position: absolute;
    left: 20px;
    top: 1.5rem;
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem;
    width: 80px;
    text-align: center;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

.content h3 {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-item .content h3 i {
    margin-right: 8px;
    color: #667eea;
}

.timeline-item .content p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-item .content ul {
    margin-left: 1.5rem;
    color: #6c757d;
}

.timeline-item .content ul li {
    margin-bottom: 0.3rem;
}

/* 특별한 타임라인 아이템 */
.timeline-item.food {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border-left: 4px solid #ff6b6b;
}

.timeline-item.food::before {
    background: #ff6b6b;
    box-shadow: 0 0 0 3px #ff6b6b;
}

.timeline-item.transport {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

.timeline-item.transport::before {
    background: #2196f3;
    box-shadow: 0 0 0 3px #2196f3;
}

.timeline-item.highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    border-left: 4px solid #fdcb6e;
}

.timeline-item.highlight::before {
    background: #fdcb6e;
    box-shadow: 0 0 0 3px #fdcb6e;
}

.booking-link {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-link:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.booking-link i {
    margin-right: 8px;
}

/* Day Summary */
.day-summary {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
}

.day-summary h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.day-summary ul {
    list-style: none;
}

.day-summary ul li {
    padding: 0.5rem 0;
    color: #2e7d32;
    font-weight: 500;
}

/* 알림 박스 */
.alert-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.alert-box i {
    color: #ffc107;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* 교통 카드 */
.transport-card {
    background: #f8f9fa;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.transport-card h3 {
    color: #1976d2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.transport-card h3 i {
    margin-right: 10px;
}

.transport-card h4 {
    color: #495057;
    margin: 1rem 0 0.5rem 0;
}

.transport-option {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.transport-option h5 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.transport-option ul {
    margin-left: 1.5rem;
    color: #6c757d;
}

.transport-option ul li {
    margin-bottom: 0.3rem;
}

.tip-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff9800;
}

.tip-box h3 {
    color: #e65100;
}

.tip-box ul li {
    color: #e65100;
}

/* 테이블 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background: #f8f9fa;
}

.total-row {
    background: #e8f5e9;
    font-weight: 700;
}

.total-row td {
    color: #2e7d32;
    border-bottom: none;
}

/* 작별 카드 */
.farewell-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 4px solid #ff6b6b;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    text-align: center;
}

.farewell-card h3 {
    color: #c92a2a;
    margin-bottom: 1rem;
}

.farewell-card p {
    color: #c92a2a;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* 푸터 */
.footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .tab-btn {
        min-width: 100px;
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .content {
        padding: 1rem;
    }

    .tab-content h2 {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding: 1rem 1rem 1rem 60px;
    }

    .timeline-item::before {
        left: 12px;
    }

    .time {
        left: 0;
        width: 50px;
        font-size: 0.8rem;
        padding: 3px;
    }

    .info-card,
    .budget-card,
    .transport-card {
        padding: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.2rem;
    }

    .tab-btn {
        min-width: 80px;
        padding: 0.6rem 0.3rem;
        font-size: 0.75rem;
    }

    .tab-content h2 {
        font-size: 1.3rem;
    }

    .info-card h3,
    .transport-card h3 {
        font-size: 1.1rem;
    }

    .timeline-item .content h3 {
        font-size: 1rem;
    }
}

/* 인쇄 스타일 */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
    }

    .header {
        background: white;
        color: black;
        border-bottom: 2px solid #333;
    }

    .print-btn {
        display: none;
    }

    .tab-nav {
        display: none;
    }

    .tab-content {
        display: block !important;
        page-break-after: always;
    }

    .timeline-item {
        page-break-inside: avoid;
    }

    .map-link,
    .booking-link {
        color: #667eea;
        text-decoration: underline;
    }

    .footer {
        background: white;
        color: black;
        border-top: 2px solid #333;
    }
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}
