/* Sankt Hans Landing Page Styles */

:root {
    /* Primary Colors - Fire Theme */
    --fire-primary: #FF6B35;
    --fire-secondary: #F7931E;
    --fire-accent: #FFB700;
    --fire-dark: #C1440E;
    
    /* Blues - Water/Sea */
    --sea-primary: #005D8A;
    --sea-dark: #00456B;
    --sea-light: #0074D9;
    
    /* Neutrals */
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    
    /* Gradients */
    --fire-gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFB700 100%);
    --sea-gradient: linear-gradient(135deg, #005D8A 0%, #0074D9 100%);
    --sunset-gradient: linear-gradient(180deg, #FF6B35 0%, #F7931E 25%, #FFB700 50%, #005D8A 100%);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-fire: 0 4px 20px rgba(255, 107, 53, 0.3);
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

/* Accessibility */
:focus {
    outline: 3px solid var(--fire-primary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--fire-primary);
    color: white;
    padding: 8px;
    z-index: 1100;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    font-weight: 700;
    color: var(--fire-primary);
    font-size: 1.3rem;
    padding: 0.8rem 0;
}

.site-header .nav-link {
    color: var(--dark);
    font-weight: 600;
    padding: 0.8rem 1rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.site-header .nav-link:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--fire-primary);
}

/* Hero Section with Fire Theme */
.hero-sankt-hans {
    position: relative;
    min-height: 100vh;
    background: var(--sunset-gradient);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Fire Animation */
.fire-animation {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    opacity: 0.3;
}

.fire-animation::before,
.fire-animation::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,183,0,0.8) 0%, rgba(255,107,53,0.6) 50%, transparent 70%);
    border-radius: 50% 0;
    animation: flicker 3s infinite;
}

.fire-animation::after {
    left: 50px;
    animation-delay: 1.5s;
}

@keyframes flicker {
    0%, 100% {
        transform: rotate(-2deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(2deg) scale(1.1);
        opacity: 1;
    }
}

/* Wave Shape Divider */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    fill: var(--light);
}

/* Button Styles */
.btn-fire {
    background: var(--fire-gradient);
    border: none;
    color: var(--white);
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-fire);
}

.btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    color: var(--white);
}

/* Highlight Box Fire Theme */
.highlight-box-fire {
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(255,183,0,0.1) 100%);
    border-left: 5px solid var(--fire-primary);
    padding: 1.75rem;
    border-radius: 0 10px 10px 0;
}

.text-fire {
    color: var(--fire-primary);
}

/* Quick Booking Section */
.quick-booking-section {
    background: linear-gradient(180deg, var(--light) 0%, rgba(255,183,0,0.05) 100%);
}

.booking-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,107,53,0.1);
}

/* Region Cards */
.region-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

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

.region-card-header {
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.region-card-header.copenhagen {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.region-card-header.funen {
    background: linear-gradient(135deg, #16a085 0%, #27ae60 100%);
}

.region-card-header.lolland {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.region-card-header.bornholm {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.region-card-body {
    padding: 1.5rem;
}

/* Event List */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.event-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fire-primary);
    min-width: 70px;
    margin-right: 1rem;
}

.event-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.event-details p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--fire-gradient);
    top: 0;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    width: 50%;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: 4rem;
    padding-right: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    right: -11px;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--fire-primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even)::after {
    left: -11px;
    right: auto;
}

.timeline-item.highlight::after {
    width: 30px;
    height: 30px;
    right: -16px;
    animation: pulse 2s infinite;
}

.timeline-item:nth-child(even).highlight::after {
    left: -16px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.timeline-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fire-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Ferry Route Cards */
.ferry-route-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

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

.ferry-icon {
    width: 80px;
    height: 80px;
    background: var(--sea-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
}

/* Travel Tip Box */
.travel-tip-box {
    background: linear-gradient(135deg, rgba(255,183,0,0.1) 0%, rgba(255,107,53,0.1) 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(255,107,53,0.2);
}

/* Experience Cards */
.bg-gradient-fire {
    background: var(--fire-gradient);
    position: relative;
}

.experience-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,1);
}

.experience-icon {
    width: 80px;
    height: 80px;
    background: var(--fire-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--light) 0%, rgba(255,183,0,0.1) 100%);
}

.cta-box {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: var(--shadow-lg);
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fire-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.site-footer {
    background-color: var(--sea-primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.site-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--fire-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    box-shadow: var(--shadow-fire);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */

/* Tablet View */
@media (max-width: 991px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 80px;
    }
    
    .timeline-item::after {
        left: 20px;
        right: auto;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
    
    .region-card {
        margin-bottom: 2rem;
    }
}

/* Mobile View */
@media (max-width: 767px) {
    .hero-sankt-hans {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .btn-fire,
    .btn-outline-light {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
    
    .timeline-item::after {
        left: 6px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 6px;
    }
    
    .timeline-time {
        font-size: 1.2rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .event-time {
        min-width: 60px;
        font-size: 1.1rem;
    }
    
    .booking-card {
        padding: 1.5rem;
    }
    
    .fire-animation {
        width: 100px;
        height: 100px;
        top: -50px;
    }
    
    .fire-animation::before,
    .fire-animation::after {
        width: 50px;
        height: 50px;
    }
    
    .fire-animation::after {
        left: 25px;
    }
}

/* Small Mobile (iPhone 7 and similar) */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .region-card-header h3 {
        font-size: 1.5rem;
    }
    
    .timeline-time {
        font-size: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .booking-card {
        padding: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-fire {
        border: 2px solid var(--white);
    }
    
    .btn-outline-light {
        border-width: 2px;
    }
    
    .timeline::before {
        background: var(--dark);
    }
    
    .timeline-item::after {
        border-width: 4px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fire-animation {
        display: none;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .back-to-top,
    .btn,
    .hero-sankt-hans,
    .bg-gradient-fire {
        display: none;
    }
    
    .region-card,
    .ferry-route-card,
    .timeline-item {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: none;
        color: var(--dark);
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}