/* Manado & Serei — Fotoblog CSS */
/* Geïnspireerd door Travel Codex (clean, modern) + Global Grasshopper (warm, avontuurlijk) */

:root {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222244;
    --text: #e8e8f0;
    --text-muted: #9999bb;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --border: #2a2a44;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --transition: 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
    --bg: #fafaf7;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f0;
    --text: #1a1a2e;
    --text-muted: #666688;
    --border: #e8e8e0;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--accent-hover); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon { font-size: 1.5rem; }

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
}

.theme-toggle:hover { background: var(--bg-card-hover); }

/* Hero */
.hero-home {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a3e 50%, #2a1a2e 100%);
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230f0f1a" width="1200" height="600"/><circle cx="200" cy="150" r="300" fill="%23e94560" opacity="0.05"/><circle cx="1000" cy="450" r="250" fill="%23e94560" opacity="0.05"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #e94560 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233,69,96,0.3);
    color: white;
}

/* Section title */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Post Grid */
.recent-posts {
    padding: 5rem 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-content h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.post-card-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.post-card-content h3 a:hover { color: var(--accent); }

.post-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-location {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.tag {
    background: var(--bg);
    color: var(--text-muted);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Post List (archive) */
.post-list {
    padding: 3rem 0;
}

.post-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.post-item-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item-image:hover img { transform: scale(1.05); }

.post-item-content h2 { font-size: 1.4rem; margin: 0.25rem 0 0.5rem; }
.post-item-content h2 a { color: var(--text); text-decoration: none; }
.post-item-content h2 a:hover { color: var(--accent); }
.post-item-content p { color: var(--text-muted); }

/* Single Post */
.post-full { padding-bottom: 3rem; }

.post-hero-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-wrapper { max-width: 760px; }

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-header h1 { font-size: 2.4rem; margin: 0.5rem 0; }

.post-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0.75rem 0;
    font-style: italic;
}

.post-meta-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-body { font-size: 1.05rem; line-height: 1.9; }
.post-body h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.post-body h3 { margin: 1.5rem 0 0.75rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body img { border-radius: var(--radius); max-width: 100%; margin: 1rem 0; }

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

.post-body ul, .post-body ol { margin: 1rem 0; padding-left: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }

/* Gallery */
.gallery { margin: 3rem 0; }
.gallery h3 { margin-bottom: 1rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

/* Post nav */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav a { color: var(--accent); text-decoration: none; font-weight: 500; }
.post-nav a:hover { color: var(--accent-hover); }

/* Hero (inner pages) */
.hero {
    padding: 5rem 0 2rem;
    text-align: center;
}

.hero h1 { font-size: 2.4rem; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.5rem; }

/* Error page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page h1 { font-size: 6rem; color: var(--accent); }
.error-page p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.site-footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-small { font-size: 0.8rem !important; margin-top: 0.5rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .post-grid { grid-template-columns: 1fr; }
    .post-item { grid-template-columns: 1fr; gap: 1rem; }
    .post-item-image { aspect-ratio: 16/9; }
    .main-nav { gap: 1rem; }
    .main-nav a { font-size: 0.9rem; }
    .post-header h1 { font-size: 1.6rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .site-header .container { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; gap: 0.5rem; }
    .main-nav { order: 3; width: 100%; justify-content: center; }
    .hero-home { min-height: 50vh; }
    .gallery-grid { grid-template-columns: 1fr; }
}
