/* White Cliffs Wanderfuehrer - Externalized Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --cliff-white: #f0f4f8;
    --grass-green: #6fa87d;
    --sea-blue: #1e5f8c;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background: #fff;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--grass-green) 0%, var(--sea-blue) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.article-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.btn-hero-primary {
    background: var(--white, #fff);
    color: var(--sea-blue);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--white, #fff);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
    background: #f0f4f8;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-light {
    background-color: rgba(255,255,255,0.08);
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #fff;
    color: var(--sea-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Main Content */
.article-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.article-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.article-content h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Article images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-content figure {
    margin: 1.5rem 0;
}

.article-content figcaption {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Route Cards */
.route-card {
    background: var(--light-bg);
    border-left: 4px solid var(--grass-green);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.route-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.route-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.difficulty-easy {
    background: var(--success-color);
    color: white;
}

.difficulty-medium {
    background: var(--warning-color);
    color: var(--dark-color);
}

.difficulty-hard {
    background: var(--danger-color);
    color: white;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.route-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-stat i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Info Boxes */
.info-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.info-box h4 {
    color: var(--warning-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-box {
    background: #d1ecf1;
    border-left: 4px solid var(--secondary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.tip-box h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* TOC */
.toc {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.toc h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.toc ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.35rem;
}

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

.toc a:hover {
    text-decoration: underline;
}

/* Map */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* FAQ Schema styling */
.faq-item {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

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

.faq-item h3 {
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.sidebar-widget[style*="gradient"] h3 {
    color: #fff;
}

.quick-link {
    display: block;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.cta-btn {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

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

/* Tablet Styles */
@media (min-width: 768px) {
    .article-header h1 {
        font-size: 2.25rem;
    }

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

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

/* Desktop Styles */
@media (min-width: 992px) {
    .article-header h1 {
        font-size: 2.5rem;
    }

    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar {
        position: sticky;
        top: 80px;
        height: fit-content;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .cta-section, .skip-link, .sidebar {
        display: none !important;
    }

    .article-content {
        box-shadow: none;
        border: 1px solid #000;
    }
}
