/* Landing Page Styles for GoNorthIF.com */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-surface-light: #334155;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-accent: #fbbf24;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background-color: var(--color-surface);
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-primary-light);
}

.nav-cta {
    margin-left: 1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-donation {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin: 0.5rem;
}

.btn-donation:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
}

.btn-donation-featured {
    background-color: var(--color-accent);
    color: var(--color-background);
    transform: scale(1.1);
}

.btn-donation-featured:hover {
    background-color: #f59e0b;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99, 102, 241, 0.1) 100%);
    text-align: center;
    border-bottom: 1px solid var(--color-surface-light);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.feature-item .icon {
    font-size: 1.5rem;
}

/* ============================================
   Advertisement Placeholders
   ============================================ */

.ad-placeholder {
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--color-surface);
    border: 2px dashed var(--color-surface-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.ad-horizontal {
    margin: 1rem auto;
}

.ad-vertical {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.ad-mid-page {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-vertical {
        float: none;
        margin: 1rem 0;
    }
}

/* ============================================
   Sections
   ============================================ */

.section-latest,
.section-forum,
.section-support,
.section-create,
.section-about {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--color-surface-light);
}

.section-latest {
    background-color: var(--color-background);
}

.section-forum {
    background-color: var(--color-surface);
}

.section-create {
    background-color: var(--color-background);
}

.section-support {
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.section-about {
    background-color: var(--color-background);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   Adventure Filters
   ============================================ */

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.genre-filter {
    padding: 0.75rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.genre-filter {
    min-width: 150px;
}

/* ============================================
   Adventures Grid
   ============================================ */

.adventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.adventure-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.adventure-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.adventure-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.adventure-author {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.adventure-genre {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.adventure-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    height: 3em;
    overflow: hidden;
}

.adventure-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.adventure-rating {
    color: var(--color-accent);
}

.adventure-size {
    font-size: 0.85rem;
}

.adventure-cta {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.adventure-cta:hover {
    background-color: var(--color-primary-dark);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    grid-column: 1 / -1;
}

/* ============================================
   View All Link
   ============================================ */

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.link-arrow:hover {
    color: var(--color-primary-light);
    transform: translateX(4px);
}

/* ============================================
   Forum Section
   ============================================ */

.forum-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.forum-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-surface-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.forum-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.forum-tab.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.forum-post {
    background-color: var(--color-background);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.forum-post:hover {
    border-left-color: var(--color-accent);
    transform: translateX(4px);
}

.forum-post h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.forum-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.forum-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.forum-post-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   Support Section
   ============================================ */

.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.support-box {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-primary);
}

.support-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.support-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.support-buttons {
    margin: 1.5rem 0;
}

.donation-amounts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.support-note a {
    color: var(--color-primary-light);
}

.support-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.coming-soon {
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   Download the Designer Section
   ============================================ */

.create-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.create-text .features-list {
    display: block;
    margin: 1.5rem 0;
}

.create-text .features-list li {
    margin-bottom: 0.5rem;
}

.create-requirements {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.create-download {
    background-color: var(--color-surface);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.create-download-note {
    margin-top: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .create-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   About Section
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-surface-light);
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary-light);
}

.about-card p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.about-card .link-arrow {
    font-size: 0.95rem;
}

.about-features {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-surface-light);
}

.about-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
}

.features-list li {
    padding-left: 0;
    color: var(--color-text-muted);
}

.features-list li::before {
    content: "✓ ";
    color: var(--color-success);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-surface-light);
    padding: 3rem 2rem 1rem;
    color: var(--color-text);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-primary-light);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-surface-light);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas a {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
    }

    h2 {
        font-size: 2rem;
    }

    .filters {
        flex-direction: column;
    }

    .search-input,
    .genre-filter {
        width: 100%;
    }

    .adventures-grid {
        grid-template-columns: 1fr;
    }

    .forum-categories {
        flex-direction: column;
    }

    .forum-tab {
        width: 100%;
    }

    .support-content {
        grid-template-columns: 1fr;
    }

    .donation-amounts {
        justify-content: flex-start;
    }

    .about-features {
        margin-top: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-latest,
    .section-forum,
    .section-support,
    .section-about {
        padding: 2rem 1rem;
    }
}

/* ── Brand imagery ─────────────────────────────────────────── */
.logo-img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.hero-logo-panel {
    background: #ffffff;           /* header artwork is dark-on-transparent */
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    margin: 0 auto 2rem;
    max-width: 560px;
}

.hero-logo {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   Go-live additions: a11y, nav, ads, consent
   ============================================ */

html, body { max-width: 100%; overflow-x: hidden; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 2000;
}
.skip-link:focus { left: 0; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-surface-light);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.4rem 0.7rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.nav-menu a.btn-primary { color: #fff; }
.nav-menu a.btn-secondary { color: var(--color-primary); }
.nav-menu a.btn-secondary:hover { color: #fff; }
.nav-cta { margin-left: 0; }

.hero-account {
    margin-top: 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.hero-account a { color: var(--color-primary-light); }

.ad-placeholder { max-width: 100%; overflow: hidden; box-sizing: border-box; }
.ad-content { max-width: 100%; }
.ad-content .adsbygoogle { width: 100%; }
.ad-placeholder:not(.ad-live) { display: none; }

.support-single { grid-template-columns: minmax(0, 640px); justify-content: center; }

.consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 3000;
    background: var(--color-surface, #1e1e2e);
    color: var(--color-text, #eee);
    border-top: 1px solid var(--color-surface-light, #444);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}
.consent-banner p { margin: 0; flex: 1 1 320px; }
.consent-banner a { color: var(--color-primary-light, #8b8df5); }
.consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.consent-actions button { padding: 0.5rem 1rem; font-size: 0.9rem; }

@media (max-width: 768px) {
    .navbar-container { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
    .nav-toggle { display: block; }
    .nav-menu { display: none; flex-basis: 100%; }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a.btn-primary-small { display: block; text-align: center; }
}

/* Download safety panel */
.download-safety {
    grid-column: 1 / -1;
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}
.download-safety h3 { margin-bottom: 0.75rem; color: var(--color-text); }
.download-safety ul { margin: 0 0 1rem 1.25rem; }
.download-safety li { margin-bottom: 0.5rem; }
.download-safety code { background: var(--color-background); padding: 0.1rem 0.4rem; border-radius: 4px; word-break: break-all; }
.download-safety .hash-label { margin: 0 0 0.4rem; font-weight: 600; color: var(--color-text); }
.download-safety .hash-value { display: block; padding: 0.6rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.85rem; }
.download-safety a { color: var(--color-primary-light); }
