/* ===== Tigerair Travel Planner - Mockup Styles ===== */

:root {
    --tiger-orange: #FF6600;
    --tiger-dark: #333333;
    --tiger-light: #FFF8F0;
    --tiger-yellow: #FFB800;
    --tiger-gray: #666666;
    --tiger-border: #E0E0E0;
    --tiger-success: #28a745;
    --tiger-bg: #F5F5F5;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif;
    background: var(--tiger-bg);
    color: var(--tiger-dark);
    line-height: 1.6;
}

/* ===== Header ===== */
.header {
    background: white;
    border-bottom: 3px solid var(--tiger-orange);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--tiger-orange);
    letter-spacing: -0.5px;
}

.header-subtitle {
    color: var(--tiger-gray);
    font-size: 14px;
}

.mockup-badge {
    background: var(--tiger-yellow);
    color: var(--tiger-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Container ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.container-wide {
    max-width: 960px;
}

/* ===== Landing Page ===== */
.landing-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--tiger-orange) 0%, #FF8533 100%);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.landing-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 800;
}

.landing-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.flight-info {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.flight-info h2 {
    font-size: 16px;
    color: var(--tiger-gray);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.flight-city {
    text-align: center;
}

.flight-city .code {
    font-size: 36px;
    font-weight: 800;
    color: var(--tiger-dark);
}

.flight-city .name {
    font-size: 14px;
    color: var(--tiger-gray);
}

.flight-arrow {
    font-size: 24px;
    color: var(--tiger-orange);
}

.flight-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--tiger-border);
}

.flight-detail {
    text-align: center;
}

.flight-detail .label {
    font-size: 12px;
    color: var(--tiger-gray);
    text-transform: uppercase;
}

.flight-detail .value {
    font-size: 16px;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: var(--tiger-orange);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.cta-button:hover {
    background: #E55A00;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===== Survey ===== */
.survey-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--tiger-border);
    border-radius: 2px;
    transition: background 0.3s;
}

.progress-step.active {
    background: var(--tiger-orange);
}

.survey-section {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.survey-section h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.survey-section .subtitle {
    color: var(--tiger-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Radio/Check option cards */
.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.option-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.option-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.option-card {
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border: 2px solid var(--tiger-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 70px;
}

.option-card label:hover {
    border-color: var(--tiger-orange);
    background: var(--tiger-light);
}

.option-card input:checked + label {
    border-color: var(--tiger-orange);
    background: var(--tiger-light);
    box-shadow: 0 0 0 1px var(--tiger-orange);
}

.option-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.option-desc {
    font-size: 11px;
    color: var(--tiger-gray);
    margin-top: 4px;
}

/* Area selection - scrollable compact */
.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.area-card input {
    position: absolute;
    opacity: 0;
}

.area-card {
    position: relative;
}

.area-card label {
    display: block;
    padding: 10px 12px;
    border: 2px solid var(--tiger-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.area-card label:hover {
    border-color: var(--tiger-orange);
}

.area-card input:checked + label {
    border-color: var(--tiger-orange);
    background: var(--tiger-light);
    font-weight: 700;
}

/* Flight time inputs */
.flight-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tiger-gray);
}

.form-group input, .form-group select {
    padding: 10px 12px;
    border: 2px solid var(--tiger-border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--tiger-orange);
}

.submit-section {
    text-align: center;
    padding: 20px 0;
}

/* ===== Itinerary ===== */
.itinerary-header {
    background: linear-gradient(135deg, var(--tiger-orange) 0%, #FF8533 100%);
    color: white;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.itinerary-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.itinerary-header .meta {
    opacity: 0.9;
    font-size: 14px;
}

.itinerary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.itinerary-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* Day card */
.day-card {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.day-header {
    background: var(--tiger-dark);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-number {
    background: var(--tiger-orange);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.day-info h3 {
    font-size: 16px;
    font-weight: 700;
}

.day-info .day-meta {
    font-size: 13px;
    opacity: 0.8;
}

.day-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* Timeline */
.timeline {
    padding: 0 24px 24px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--tiger-border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    flex-shrink: 0;
    width: 100px;
    text-align: right;
}

.timeline-time .time {
    font-size: 16px;
    font-weight: 700;
    color: var(--tiger-dark);
}

.timeline-time .transit {
    font-size: 11px;
    color: var(--tiger-gray);
    margin-top: 2px;
}

.timeline-dot {
    flex-shrink: 0;
    width: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.timeline-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tiger-orange);
    display: block;
}

.timeline-dot.restaurant::before {
    background: #e74c3c;
}

.timeline-dot.shopping::before {
    background: #9b59b6;
}

.timeline-dot.experience::before {
    background: #2ecc71;
}

.timeline-dot.transit::before {
    background: var(--tiger-gray);
    width: 8px;
    height: 8px;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content .category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
}

.badge-景點 { background: #dbeafe; color: #1e40af; }
.badge-餐廳 { background: #fee2e2; color: #991b1b; }
.badge-購物 { background: #f3e8ff; color: #6b21a8; }
.badge-體驗 { background: #dcfce7; color: #166534; }
.badge-transit { background: var(--tiger-border); color: var(--tiger-gray); }

.timeline-content .desc {
    font-size: 13px;
    color: var(--tiger-gray);
    margin-top: 4px;
    line-height: 1.5;
}

.timeline-content .spot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.spot-tag {
    font-size: 11px;
    background: var(--tiger-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--tiger-gray);
}

.timeline-content .stay-info {
    font-size: 12px;
    color: var(--tiger-gray);
    margin-top: 4px;
}

/* Regenerate button */
.regen-section {
    text-align: center;
    margin: 32px 0;
}

.regen-button {
    background: white;
    color: var(--tiger-orange);
    border: 2px solid var(--tiger-orange);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.regen-button:hover {
    background: var(--tiger-light);
}

.back-link {
    display: inline-block;
    color: var(--tiger-orange);
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
}

/* ===== Architecture diagram ===== */
.arch-note {
    background: #FFFDE7;
    border: 1px solid #FFF59D;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.6;
}

.arch-note h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--tiger-dark);
}

.arch-note code {
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flight-inputs {
        grid-template-columns: 1fr;
    }
    .flight-route .code {
        font-size: 28px;
    }
    .landing-hero h1 {
        font-size: 24px;
    }
    .timeline-item {
        flex-wrap: wrap;
    }
    .timeline-time {
        width: auto;
        text-align: left;
    }
}
