/* Custom Styles für Japan Kreuzfahrt Guide */

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-red: #dc2626;
    --success-green: #059669;
    --warning-orange: #d97706;
    --text-gray: #374151;
    --light-gray: #f9fafb;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 3px;
}

/* Navigation Styles */
.day-nav-item {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.day-nav-item:hover {
    background: #e0e7ff;
    border-color: var(--secondary-blue);
}

.day-nav-item.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Day Card Styles */
.day-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.day-card.sea-day {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
}

.day-card.port-day {
    background: white;
}

/* Port Info Styles */
.port-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
}

.time-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem;
}

/* Attraction Cards */
.attraction-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--secondary-blue);
}

.attraction-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price-tag {
    background: var(--success-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.time-needed {
    background: var(--warning-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Route and Transport Styles */
.route-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.transport-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.train { background: var(--secondary-blue); }
.bus { background: var(--success-green); }
.walk { background: var(--warning-orange); }
.taxi { background: var(--accent-red); }

/* Map Styles */
.map-container {
    background: #f0f4f8;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.map-placeholder {
    color: #718096;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Food Recommendation Styles */
.food-card {
    background: linear-gradient(135deg, #fef7ed, #fed7aa);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--warning-orange);
}

.food-card h4 {
    color: #c2410c;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.food-card h4 i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .port-header {
        padding: 1.5rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }
    
    .attraction-card {
        padding: 1rem;
    }
    
    .day-nav-item {
        font-size: 0.875rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .attraction-card {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .price-tag,
    .time-needed {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Walking Route Styles */
.walking-route {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.route-step {
    transition: all 0.2s ease;
}

.route-step:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.step-number {
    flex-shrink: 0;
    font-weight: 600;
}

.interactive-map {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.route-highlights > div {
    transition: all 0.2s ease;
}

.route-highlights > div:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image Styles */
.destination-image {
    transition: all 0.3s ease;
    object-fit: cover;
}

.destination-image:hover {
    transform: scale(1.02);
}

/* Schedule Table Styles */
.schedule-grid {
    background: linear-gradient(135deg, #fef7ed, #fed7aa);
    border-radius: 8px;
    padding: 1rem;
}

.schedule-time {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    color: var(--primary-blue);
}

.transport-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.transport-badge.express {
    background: #dc2626;
    color: white;
}

.transport-badge.local {
    background: var(--success-green);
    color: white;
}

.transport-badge.bus {
    background: var(--warning-orange);
    color: white;
}

/* Weather Info Styles */
.weather-info {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid var(--success-green);
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sticky-nav {
    position: sticky;
    top: 4rem;
    z-index: 30;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Maps und Routes Styles */
.route-map-container, .step-route-container, .quick-map {
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.route-map-container:hover, .step-route-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.landmark-card, .transport-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.landmark-card:hover, .transport-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.waypoint-step {
    transition: all 0.3s ease;
}

.waypoint-step:hover {
    background-color: #f8fafc;
    padding-left: 1.5rem;
}

.step-number {
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.route-stats span, .route-summary span {
    font-size: 0.875rem;
    font-weight: 600;
}

.mini-landmark {
    transition: all 0.2s ease;
}

.mini-landmark:hover {
    background-color: #f3f4f6 !important;
    transform: scale(1.02);
}

.coordinates {
    font-family: 'Courier New', monospace;
    background-color: #f9fafb;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
}

/* Responsive Maps */
@media (max-width: 768px) {
    .landmarks-grid, .transport-grid {
        grid-template-columns: 1fr;
    }
    
    .route-stats, .route-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .waypoint-step {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

/* Animation for map elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}