/* ==========================================================================
   GeoMoments.nl - Custom Stylesheet
   Theme: Modern Dark Mode, Adventure & Exploration Accents
   ========================================================================== */

/* --- Custom Variables & Design System --- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Colors - Dark Mode Premium Palette */
    --bg-primary: #0a0e17;       /* Deep space dark */
    --bg-secondary: #111827;     /* Dark slate */
    --bg-tertiary: #1f2937;      /* Mid slate for cards */
    --text-primary: #f3f4f6;     /* Off-white */
    --text-secondary: #9ca3af;   /* Muted gray */
    --text-muted: #6b7280;       /* Darker gray */

    /* Accent Colors */
    --color-primary: #38bdf8;    /* Electric Cyan */
    --color-primary-rgb: 56, 189, 248;
    --color-secondary: #f59e0b;  /* Sunset Amber */
    --color-success: #10b981;    /* Emerald Green */
    --color-danger: #ef4444;     /* Sunset Red */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
    --grad-text: linear-gradient(135deg, #38bdf8 0%, #f59e0b 100%);
    --grad-accent: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    --grad-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(10, 14, 23, 0) 70%);

    /* UI Details */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--color-primary);
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #58cbfd 0%, #0284c7 100%);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Header / Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3));
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: var(--grad-glow);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Hero visual mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card-mockup {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-header .dot.red { background: var(--color-danger); }
.mockup-header .dot.yellow { background: var(--color-secondary); }
.mockup-header .dot.green { background: var(--color-success); }

.mockup-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mockup-body {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mockup-stat {
    text-align: center;
    flex: 1;
}

.mockup-stat:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mockup-preview-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.preview-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.preview-info {
    padding: 16px;
}

.preview-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.preview-geo {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.preview-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Sections Common --- */
section:not(.hero-section) {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- Concept / Steps Section --- */
.concept-section {
    background-color: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.15);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Interactive Map Section --- */
.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

#map {
    height: 600px;
    width: 100%;
    z-index: 5;
    background-color: #0b0f19;
}

/* Map Floating Widget */
.map-widget {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 380px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateX(420px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-widget.active {
    transform: translateX(0);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-header h3 {
    font-size: 1.1rem;
    color: #ffffff;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #ffffff;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="url"],
textarea {
    width: 100%;
    background-color: rgba(10, 14, 23, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

input[readonly] {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Widget Notifications */
.widget-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.widget-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.widget-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
}

.hidden {
    display: none;
}

.map-instructions {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 10;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.map-instructions p {
    font-size: 0.85rem;
    color: #ffffff;
    margin: 0;
}

/* --- Leaflet UI Overrides (Dark Theme Styling) --- */
.leaflet-container {
    font-family: var(--font-body) !important;
}

.leaflet-bar {
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-bar a {
    background-color: rgba(17, 24, 39, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    transition: var(--transition-smooth);
}

.leaflet-bar a:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 280px !important;
}

.leaflet-popup-tip {
    background: rgba(17, 24, 39, 0.95) !important;
    border-left: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Custom styles for content inside Leaflet Popups */
.map-popup-card {
    overflow: hidden;
}

.map-popup-img {
    height: 130px;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.map-popup-body {
    padding: 16px;
}

.map-popup-body h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.map-popup-date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.map-popup-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 40px;
    color: var(--text-secondary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    align-items: flex-start;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-meta {
    text-align: right;
    font-size: 0.85rem;
}

.footer-meta p:first-child {
    margin-bottom: 8px;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
    display: inline-block;
    box-shadow: 0 0 8px var(--color-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-meta {
        grid-column: span 2;
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 24px;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .main-nav {
        display: none; /* simple burger implementation can be added, for now keep simple/hidden */
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .map-widget {
        width: calc(100% - 48px);
        bottom: 24px;
        top: auto;
        right: 24px;
        left: 24px;
        transform: translateY(110%);
    }
    .map-widget.active {
        transform: translateY(0);
    }
    #map {
        height: 500px;
    }
    .map-instructions {
        display: none; /* Hide helper instructions on mobile map */
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    #map {
        height: 400px;
    }
}
