/* Fuji & Dragons - Unified Design System */
:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #e17055;
    --accent-light: #fab1a0;
    
    /* Backgrounds */
    --bg: #faf9f7;
    --bg-dark: #f5f3f0;
    --card-bg: #ffffff;
    
    /* Text */
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    
    /* Borders */
    --border: #dfe6e9;
    --border-light: #f1f2f6;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 6rem;
    
    /* Typography */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-switch {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

.hero-date {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero-family {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.trip-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trip-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.trip-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.5);
}

.trip-btn.primary {
    background: white;
    color: var(--primary);
    border-color: white;
}

.trip-btn.primary:hover {
    background: rgba(255,255,255,0.9);
}

/* Overview Section */
.overview {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header.macau-hk {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card-header.japan {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.card-header h2 {
    font-size: 1.5rem;
}

.card-dates {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-body {
    padding: 1.5rem;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.card-features {
    list-style: none;
}

.card-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid #ddd;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive - Enhanced Mobile Styles */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.1rem; }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
        z-index: 999;
    }
    
    .lang-switch {
        display: none;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 5rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .trip-selector {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .trip-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
    }
    
    .overview {
        padding: 3rem 1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-header h2 {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .day-card {
        margin-bottom: 1.5rem;
    }
    
    .day-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .day-header h3 {
        font-size: 1.2rem;
    }
    
    .day-content {
        padding: 1rem;
    }
    
    .hotel-box {
        padding: 0.875rem;
    }
    
    .highlight-box {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .attraction-list li {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .attraction-time {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lang-switch {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Touch-friendly buttons */
    .btn, .trip-btn {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo {
        gap: 0.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .trip-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .card-header span {
        font-size: 0.85rem;
    }
}

/* Touch optimization for mobile devices */
@media (hover: none) and (pointer: coarse) {
    .overview-card:hover,
    .trip-btn:hover,
    .btn:hover {
        transform: none;
    }
    
    .overview-card:active {
        transform: scale(0.98);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space); }
.mb-3 { margin-bottom: var(--space-lg); }

/* Print Styles */
@media print {
    .navbar,
    .trip-selector,
    .card-actions,
    .footer-links {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
    }
    
    .overview-card {
        break-inside: avoid;
    }
}

/* ========================================================
   INDEX-SPECIFIC STYLES (Added 2026-02-28)
   - Migrated from index.html inline styles
   - Homepage-specific components and enhancements
   ======================================================== */

/* Root variables override for index page */
:root {
    --hero-gradient-start: #667eea;
    --hero-gradient-end: #764ba2;
}

/* Hero Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Homepage Navigation */
.lang-switch {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
}

.lang-switch:hover {
    transform: translateY(-2px);
}

/* Homepage Hero Enhancements */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-date {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero-family {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* Trip Selector Buttons */
.trip-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.trip-btn {
    flex: 0 0 auto;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.trip-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.5);
}

.trip-btn.primary {
    background: white;
    color: var(--primary);
    border-color: white;
}

.trip-btn.primary:hover {
    background: rgba(255,255,255,0.9);
}

/* Homepage-specific Timeline Styles */
.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.trip-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.tag-macau {
    background: #ffeaa7;
    color: #b7791f;
}

.tag-japan {
    background: #a29bfe;
    color: #5b4b8a;
}

/* Enhanced Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Index-specific Responsive Enhancements */
@media (max-width: 768px) {
    .hero::before {
        background-size: 40px 40px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-date {
        font-size: 0.9rem;
    }
    
    .hero-family {
        font-size: 0.85rem;
    }
    
    .trip-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}    

@media (max-width: 480px) {
    .hero::before {
        background-size: 30px 30px;
    }
    
    .trip-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .trip-btn {
        flex: 0 0 auto;
    }
}

/* Touch optimization for mobile devices */
@media (hover: none) and (pointer: coarse) {
    .trip-btn:hover {
        transform: none;
    }
    
    .trip-btn:active {
        transform: scale(0.97);
    }
    
    .lang-switch:hover {
        transform: none;
    }
}

/* ========================================================
   END INDEX-SPECIFIC STYLES
   ======================================================== */
