/* Cascadology Blog Styles - Matching Main App Design */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka:wght@400;500;600;700&display=swap");

:root {
    --primary: #8bc490;
    --primary-hover: #7ab47f;
    --secondary: #f4e4c1;
    --secondary-hover: #ead9b3;
    --accent: #5b9a8b;
    --text: #4a3728;
    --text-light: #6d5d4b;
    --bg: #fffef9;
    --bg-card: #ffffff;
    --border: #d4c5a9;
    --border-light: #f4e4c1;
}

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

body { 
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif; 
    color: var(--text); 
    line-height: 1.7; 
    background: var(--bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Fredoka", sans-serif;
    color: var(--text);
    font-weight: 600;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: none; }
img { max-width: 100%; height: auto; border-radius: 12px; }

/* Header */
header { 
    background: var(--bg-card);
    padding: 1rem 2rem; 
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(74, 55, 40, 0.08);
}

.header-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 0.75rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.logo-link { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo { 
    font-family: "Fredoka", sans-serif;
    font-size: 1.75rem; 
    font-weight: 700; 
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button { 
    background: var(--primary); 
    color: white; 
    padding: 0.6rem 1.25rem; 
    border-radius: 50px; 
    font-family: "Fredoka", sans-serif;
    font-weight: 600; 
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139, 196, 144, 0.3);
}
.cta-button:hover { 
    background: var(--primary-hover); 
    text-decoration: none; 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 196, 144, 0.4);
}

/* Breadcrumb */
.breadcrumb { 
    font-size: 0.9rem; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* Language Switcher */
.lang-switcher { 
    display: flex; 
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.lang-switcher a {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    background: var(--secondary);
    color: var(--text);
}
.lang-switcher a.active {
    background: var(--primary);
    color: white;
}
.lang-switcher a:hover {
    background: var(--primary-hover);
    color: white;
}

/* Main Content */
main { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem;
}

/* Footer */
footer { 
    background: var(--secondary); 
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary);
}
footer .footer-links {
    max-width: 1200px;
    margin: 0 auto;
}
footer h4 {
    margin-bottom: 1rem;
    color: var(--text);
}
footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
footer p {
    max-width: 1200px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* View on App Button */
.view-on-app { 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary); 
    color: white; 
    padding: 0.75rem 1.5rem; 
    border-radius: 50px; 
    font-family: "Fredoka", sans-serif;
    font-weight: 600; 
    margin: 1rem 0; 
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(139, 196, 144, 0.3);
}
.view-on-app:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(139, 196, 144, 0.4); 
    text-decoration: none;
    color: white;
    background: var(--primary-hover);
}

/* Grids */
.spot-grid, .zone-grid, .continent-grid, .type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Cards */
.spot-card, .zone-card, .continent-card, .type-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
}
.spot-card:hover, .zone-card:hover, .continent-card:hover, .type-card:hover { 
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(74, 55, 40, 0.12);
    transform: translateY(-4px);
    text-decoration: none;
}
.spot-card img { 
    border-radius: 12px; 
    margin-bottom: 0.75rem; 
    aspect-ratio: 16/10; 
    object-fit: cover;
    width: 100%;
}
.spot-card h4 { 
    margin: 0.5rem 0; 
    font-family: "Fredoka", sans-serif;
    font-size: 1.1rem;
}
.spot-card .type, .spot-card .distance, .spot-card .location { 
    font-size: 0.85rem; 
    color: var(--text-light); 
    display: block;
}

.zone-card h3 {
    font-family: "Fredoka", sans-serif;
    margin-bottom: 0.5rem;
}
.zone-card .count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Article */
.spot-article { max-width: 850px; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { 
    font-size: 2.5rem; 
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.spot-meta { 
    color: var(--text-light); 
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.spot-meta span { margin-right: 0; }
.feature-type { 
    background: var(--accent); 
    color: white; 
    padding: 0.3rem 0.8rem; 
    border-radius: 50px; 
    font-size: 0.85rem;
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
}
.rating {
    background: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Gallery */
.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 0.75rem; 
    margin: 2rem 0;
}
.gallery img { 
    border-radius: 12px; 
    aspect-ratio: 4/3; 
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery img:hover {
    transform: scale(1.02);
}

/* Article Content */
.article-content { 
    line-height: 1.9;
    font-size: 1.05rem;
}
.article-content h2 { 
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}
.article-content h3 {
    margin: 2rem 0 0.75rem;
}
.article-content p { 
    margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content strong {
    color: var(--text);
    font-weight: 700;
}

/* Sidebar / Quick Facts */
.spot-details { 
    background: var(--secondary); 
    padding: 1.75rem; 
    border-radius: 20px; 
    margin: 2rem 0;
    border: 2px solid var(--border);
}
.spot-details h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.spot-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}
.spot-details dt { 
    font-weight: 700;
    color: var(--text);
}
.spot-details dd { 
    color: var(--text-light);
}
.spot-details a {
    color: var(--accent);
}

/* Sections */
.nearby-spots, .related-zones {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}
.nearby-spots h2, .related-zones h2 {
    margin-bottom: 1.5rem;
}
.related-zones ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.related-zones li a {
    display: inline-block;
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.2s;
}
.related-zones li a:hover {
    background: var(--primary);
    color: white;
}

/* Zone Pages */
.zone-page { }
.zone-header { 
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}
.zone-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.zone-stats { 
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.zone-intro { 
    font-size: 1.1rem; 
    margin-bottom: 2rem;
    line-height: 1.8;
}
.zone-intro h2 {
    margin: 2rem 0 1rem;
}
.zone-intro p {
    margin-bottom: 1rem;
}
.sub-zones, .featured-spots {
    margin-bottom: 3rem;
}
.sub-zones h2, .featured-spots h2 {
    margin-bottom: 1.5rem;
}
.neighbor-list { 
    list-style: none; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem;
}
.neighbor-list a {
    display: inline-block;
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.2s;
}
.neighbor-list a:hover {
    background: var(--primary);
    color: white;
}

/* Homepage */
.homepage { }
.hero { 
    text-align: center; 
    padding: 4rem 2rem; 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: white; 
    border-radius: 24px; 
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(139, 196, 144, 0.3);
}
.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem;
    color: white;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.continent-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.continent-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.continent-card h3 {
    font-size: 1.3rem;
}
.continent-card .count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.type-grid { 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
}
.type-card { 
    text-align: center; 
    font-size: 1.1rem; 
    padding: 2rem 1.5rem;
}
.type-card h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.type-icon {
    font-size: 2rem;
}

/* Stats Section */
.stats-section {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
}
.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.stat-item {
    padding: 1rem 2rem;
}
.stat-number {
    font-family: "Fredoka", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    header { 
        padding: 1rem;
    }
    .header-top {
        flex-direction: row;
        gap: 0.5rem;
    }
    .logo {
        font-size: 1.25rem;
    }
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    main { 
        padding: 1rem;
    }
    .hero { 
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
    .hero h1 { 
        font-size: 1.75rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .article-header h1 {
        font-size: 1.75rem;
    }
    .zone-header h1 {
        font-size: 1.75rem;
    }
    .spot-grid, .zone-grid, .continent-grid { 
        grid-template-columns: 1fr;
    }
    .spot-details dl {
        grid-template-columns: 1fr;
    }
    .spot-details dt {
        margin-top: 0.5rem;
    }
    .spot-details dd {
        margin-bottom: 0.5rem;
    }
}

/* Print styles */
@media print {
    header, footer, .view-on-app, .cta-button { display: none; }
    main { padding: 0; }
    .spot-card, .zone-card { break-inside: avoid; }
}
