/* wildcamping-schottland-guide.css — Wild Camping Schottland Guide */

/* CSS Variables - Mobile First */
:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --highland-green: #2d5f3f;
    --scotland-blue: #005eb8;
    --heather-purple: #8b4789;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

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

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1100;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
    color: white;
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--highland-green);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}
.navbar-brand { color: var(--primary-color) !important; font-weight: 700; font-size: 1.1rem; }
.nav-link { color: var(--dark-color) !important; font-weight: 500; transition: all 0.3s ease; padding: 0.5rem 0.75rem !important; }
.nav-link:hover, .nav-link.active { color: var(--highland-green) !important; background: rgba(45, 95, 63, 0.1); border-radius: 4px; }

/* Hero Image Header */
.hero-header {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-header .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
}
.hero-header .container {
    position: relative;
    z-index: 2;
    color: white;
    padding-bottom: 2rem;
    padding-top: 3rem;
}
.hero-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-header .lead {
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-credit {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    z-index: 3;
}
.hero-credit a { color: rgba(255,255,255,0.7); }

/* Breadcrumb */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-item a:hover { color: white; }
.breadcrumb-item.active { color: white; }

/* TOC */
.toc {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.toc h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--highland-green);
}
.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}
.toc li {
    padding: 0.25rem 0;
}
.toc a {
    color: var(--primary-color);
    text-decoration: none;
}
.toc a:hover {
    color: var(--highland-green);
    text-decoration: underline;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}
.article-content h2 {
    color: var(--highland-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--highland-green);
    scroll-margin-top: 80px;
}
.article-content h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.article-content p { margin-bottom: 1rem; }

/* Content Images */
.content-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.content-image img {
    width: 100%;
    height: auto;
    display: block;
}
.content-image figcaption {
    font-size: 0.85rem;
    color: #666;
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.05) 0%, rgba(0, 94, 184, 0.05) 100%);
    border-left: 4px solid var(--highland-green);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}
.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}
.success-box {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Spots Grid */
.spots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.spot-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.spot-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.spot-card-body {
    padding: 1rem;
}
.spot-card h4 {
    color: var(--highland-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.spot-difficulty {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.difficulty-easy { background: rgba(40, 167, 69, 0.1); color: var(--success-color); }
.difficulty-medium { background: rgba(255, 193, 7, 0.1); color: #f39c12; }
.difficulty-hard { background: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* Rules List */
.rules-list { list-style: none; padding: 0; margin: 1rem 0; }
.rules-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.rules-list li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Packlist Grid */
.packlist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.packlist-category {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}
.packlist-category h4 {
    color: var(--scotland-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.packlist-items { list-style: none; padding: 0; }
.packlist-items li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.packlist-items li:before {
    content: "\2022";
    position: absolute;
    left: 0.5rem;
    color: var(--highland-green);
}

/* Map */
.map-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--scotland-blue) 0%, var(--highland-green) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}
.cta-section h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.cta-section .btn {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}
.cta-section .btn:hover { transform: translateY(-2px); }

/* FAQ */
.faq-section { margin: 2rem 0; }
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    background: var(--light-bg);
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--highland-green);
    transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    padding: 1rem 1.25rem;
    max-height: 500px;
}

/* Related Links */
.related-links {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}
.related-links h3 { color: var(--dark-color); font-size: 1.2rem; margin-bottom: 1rem; }
.related-links ul { list-style: none; padding: 0; }
.related-links li { padding: 0.5rem 0; }
.related-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.related-links a:hover { color: var(--highland-green); }

/* Footer */
footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #000 100%);
    color: rgba(255,255,255,0.8);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
footer h4 { color: white; font-size: 1.1rem; margin-bottom: 0.75rem; }
footer ul { list-style: none; padding: 0; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: white; }

/* Tablet */
@media (min-width: 768px) {
    .hero-header { min-height: 420px; }
    .hero-header h1 { font-size: 2.5rem; }
    .article-content { padding: 2rem; }
    .spots-grid { grid-template-columns: repeat(2, 1fr); }
    .packlist-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 992px) {
    .hero-header { min-height: 480px; }
    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .spots-grid { grid-template-columns: repeat(3, 1fr); }
    .packlist-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .sidebar { position: sticky; top: 80px; height: fit-content; }
}

/* Print */
@media print {
    .navbar, footer, .cta-section, .skip-link, .toc { display: none; }
    .article-content { box-shadow: none; border: 1px solid #000; }
}
