/* ═══════════════════════════════════════════════════════════════
   Our RV Journey — Modern Glassmorphic Travel Blog
   Warm outdoor palette + glassmorphism + modern typography
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-earth: #1a1410;
    --bg-warm: #231c15;
    --bg-page: linear-gradient(160deg, #1a1410 0%, #251d14 30%, #1e1710 60%, #1a1410 100%);
    --glass-bg: rgba(255, 248, 235, 0.06);
    --glass-bg-hover: rgba(255, 248, 235, 0.10);
    --glass-border: rgba(255, 248, 235, 0.10);
    --glass-border-hover: rgba(210, 160, 80, 0.25);
    --accent-sunset: #e8943a;
    --accent-amber: #d4a04a;
    --accent-rust: #c47035;
    --accent-forest: #5a9a4a;
    --accent-sky: #5aadce;
    --accent-warm: #e8b85a;
    --accent-maroon: #b84a3a;
    --text-primary: #f5efe4;
    --text-secondary: #c4b8a4;
    --text-muted: #8a7e6e;
    --text-dark: #f5efe4;
    --border-warm: rgba(210, 160, 80, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(232, 148, 58, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-sunset: linear-gradient(135deg, #e8943a 0%, #d4a04a 50%, #c47035 100%);
    --gradient-forest: linear-gradient(135deg, #5a9a4a 0%, #3d7a30 100%);
    --max-w: 1140px;
    --sidebar-w: 300px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-earth);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(232, 148, 58, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(90, 154, 74, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    min-height: 100vh;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h3 {
    font-size: 1.0625rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-sunset);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-amber);
}

code {
    background: rgba(232, 148, 58, 0.1);
    color: var(--accent-amber);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
}

strong {
    color: var(--text-primary);
}

ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.25rem;
}

/* ── Navigation ── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 20, 16, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.top-nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav-brand svg {
    width: 28px;
    height: 28px;
    color: var(--accent-sunset);
}

.nav-brand span {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-brand .brand-accent {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.top-nav a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.top-nav a:hover,
.top-nav a.active {
    background: rgba(255, 248, 235, 0.06);
    color: var(--text-primary);
    text-decoration: none;
}

.top-nav a.active {
    color: var(--accent-sunset);
}

.top-nav a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ── Hamburger ── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Header Banner ── */
.site-header {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.header-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

.header-banner img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.header-banner .placeholder-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(90, 154, 74, 0.2) 0%, rgba(232, 148, 58, 0.15) 50%, rgba(196, 112, 53, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 20, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.header-text h1 {
    font-size: 1.75rem;
    margin-bottom: 0.125rem;
}

.header-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

/* ── Page Layout ── */
.page-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 2rem;
    padding: 1.5rem 0 3rem;
}

.main-content {
    min-width: 0;
}

/* ── Glass Card (Blog Posts) ── */
.post {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.post:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-hover);
}

.post h2 {
    margin-bottom: 0.5rem;
}

.post h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post h2 a:hover {
    color: var(--accent-sunset);
}

.post-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-meta svg {
    width: 14px;
    height: 14px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    border: 1px solid var(--glass-border);
}

.post-content h3 {
    margin: 1.25rem 0 0.5rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-tags {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.post-tag {
    background: rgba(232, 148, 58, 0.1);
    color: var(--accent-sunset);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(232, 148, 58, 0.15);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--accent-sunset);
    font-weight: 600;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 0.625rem;
    text-decoration: none;
}

/* ── Page Title ── */
.page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(232, 148, 58, 0.2);
}

.page-title svg {
    color: var(--accent-sunset);
    width: 28px;
    height: 28px;
}

/* ── Photo Gallery ── */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin: 1.25rem 0;
}

.photo-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
}

.photo-gallery img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-sunset);
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(232, 148, 58, 0.06);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(232, 148, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.photo-placeholder.square {
    aspect-ratio: 1;
    font-size: 1.5rem;
}

/* ── Sidebar ── */
.sidebar {
    font-size: 0.875rem;
}

.sidebar-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.sidebar-widget h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-sunset);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h3 svg {
    width: 16px;
    height: 16px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 0;
}

.sidebar-widget li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    margin: 1px 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-widget li a:hover {
    background: rgba(255, 248, 235, 0.04);
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-widget li a svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.sidebar-widget li ul {
    padding-left: 1.25rem;
}

.sidebar-widget li ul li a {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
}

.sponsor-widget {
    text-align: center;
}

.sponsor-widget h3 {
    text-align: left;
}

.sponsor-widget img {
    max-width: 160px;
    margin: 0.5rem auto;
    filter: brightness(1.1);
}

/* ── Campground Review Card ── */
.campground-review {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.campground-review:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.campground-review h3 {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.campground-review .cg-location {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.campground-review .cg-rating {
    color: var(--accent-amber);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

/* ── Spec Table ── */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.spec-table th,
.spec-table td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

.spec-table th {
    color: var(--accent-sunset);
    font-weight: 600;
    width: 35%;
}

.spec-table td {
    color: var(--text-secondary);
}

.spec-table tr:hover td,
.spec-table tr:hover th {
    background: rgba(255, 248, 235, 0.02);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--accent-sunset);
    font-weight: 600;
    font-size: 0.8125rem;
}

.pagination a:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    text-decoration: none;
}

/* ── Footer ── */
footer {
    max-width: var(--max-w);
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

footer a {
    color: var(--accent-sunset);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post,
.campground-review,
.sidebar-widget {
    animation: fadeInUp 0.5s ease forwards;
}

.post:nth-child(2) {
    animation-delay: 0.05s;
}

.post:nth-child(3) {
    animation-delay: 0.1s;
}

.post:nth-child(4) {
    animation-delay: 0.15s;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .top-nav ul {
        display: none;
    }

    .top-nav ul.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(26, 20, 16, 0.95);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--glass-border);
        padding: 0.5rem;
        z-index: 999;
    }

    .top-nav ul.open a {
        justify-content: center;
        padding: 0.75rem;
    }

    .nav-hamburger {
        display: block;
    }

    .site-header {
        padding: 1rem 1rem 0;
    }

    .page-wrap {
        padding: 0 1rem;
    }

    .header-banner img,
    .header-banner .placeholder-banner {
        height: 180px;
    }

    .header-text {
        padding: 0.875rem 1.5rem;
    }

    .header-text h1 {
        font-size: 1.25rem;
    }

    .post {
        padding: 1.25rem;
    }

    body {
        font-size: 14px;
    }
}