/* ============================================================
   AUTOMATISERING TEST WORDPRESS THEME
   Modern, Tech-Heavy, Minimalist Design
   ============================================================ */

:root {
    --bg-primary: #eaeaea;
    --bg-secondary: #f5f5f5;
    --text-primary: #1e1e1e;
    --text-secondary: #555555;
    --text-light: #999999;
    --border-color: rgba(30, 30, 30, 0.15);
    --accent-color: #1e1e1e;
    --transition: 0.3s ease;
    --font-mono: 'JetBrains Mono', Monaco, 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    opacity: 0.7;
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background-color: var(--bg-secondary);
    border-radius: 0.25rem;
}

code {
    padding: 0.125rem 0.375rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    padding: 0;
    background-color: transparent;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(234, 234, 234, 0.95);
}

.main-nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 49px;
}

.nav-brand {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.site-logo {
    display: block;
    max-height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-menu > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.nav-menu a:hover {
    opacity: 0.6;
}

.nav-menu > ul > li.current-menu-item > a {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-spacing: 0.05em;
}

.hero-title strong {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: opacity var(--transition);
}

.cta-button:hover {
    opacity: 0.8;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(249, 241, 241, 0.3),
        rgba(241, 249, 241, 0.3),
        rgba(241, 241, 249, 0.3)
    );
    z-index: 1;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.site-main {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Featured Posts Grid */

.featured-posts {
    margin: 4rem 0;
}

.featured-posts-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 300;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    opacity: 0.7;
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.post-card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Archive/Blog Page */

.archive-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 300;
}

.archive-description {
    color: var(--text-secondary);
}

.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Single Post */

.post-single {
    max-width: 800px;
    margin: 3rem auto;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author a {
    color: var(--text-light);
}

.post-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-category a {
    color: var(--text-light);
    margin-right: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 0.25rem;
    transition: all var(--transition);
}

.tag:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.nav-previous a,
.nav-next a {
    display: block;
    color: var(--accent-color);
}

.nav-next {
    text-align: right;
}

/* Page Template */

.page-content {
    max-width: 900px;
    margin: 3rem auto;
}

.page-container {
    padding: 0 2rem;
}

.page-container.full-width {
    max-width: 100%;
    padding: 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

.page-featured-image {
    margin-bottom: 2rem;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.page-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.page-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.updated-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-light);
}

.page-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.page-links span {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    color: var(--text-primary);
}

.page-links a {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border-radius: 0.25rem;
    color: var(--bg-primary);
}

/* Layout specific */

.page-layout-default {
    max-width: 900px;
}

.page-layout-full-width {
    max-width: 100%;
}

.page-layout-full-width .page-header {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.05), rgba(30, 30, 30, 0.02));
    padding: 3rem 2rem;
    margin: -3rem -2rem 2rem -2rem;
    text-align: center;
}

.page-layout-full-width .page-title {
    margin-bottom: 0.5rem;
}

.page-layout-full-width .page-excerpt {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-layout-full-width .page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    margin-top: 5rem;
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(180px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--bg-primary) !important;
    text-decoration: none !important;
}

.footer-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(234, 234, 234, 0.86);
}

.footer-heading {
    margin: 0 0 1.25rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bg-primary);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.footer-links a {
    color: rgba(234, 234, 234, 0.85) !important;
    text-decoration: none !important;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--bg-primary) !important;
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.copyright {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(234, 234, 234, 0.7);
}

.powered-by {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(234, 234, 234, 0.65);
}

.powered-by a {
    color: rgba(234, 234, 234, 0.85);
}

/* ============================================================
   FORMS & BUTTONS
   ============================================================ */

input,
textarea,
select {
    font-family: inherit;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
    background-color: white;
    color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(30, 30, 30, 0.1);
}

button {
    font-family: var(--font-mono);
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

button:hover {
    opacity: 0.8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .post-meta {
        gap: 1rem;
    }

    .footer-content {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        font-size: 1.9rem;
    }

    .footer-heading,
    .footer-links a,
    .footer-description {
        font-size: 1rem;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Interne links in paragraaftekst blauw */
.post-content p a,
.page-body p a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content p a:hover,
.page-body p a:hover {
    color: #1d4ed8;
}

/* Dropdown sub-menu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(234, 234, 234, 0.98);
    border: 1px solid var(--border-color);
    list-style: none;
    min-width: 180px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
}

/* ============================================================
   TOOLS / CATEGORIE LAYOUT
   ============================================================ */

.tools-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.tools-page--category {
    max-width: 1400px;
}

.tools-page-header {
    margin-bottom: 2rem;
}

.tools-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
}

.tools-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 760px);
    gap: 4.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }
}

.tools-sidebar {
    position: sticky;
    top: 80px;
}

.tools-content {
    min-width: 0;
}

.tools-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.tools-nav-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.5rem;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.tools-nav-item a:hover {
    color: #2563eb !important;
    padding-left: 0.75rem;
    opacity: 1;
}

.tools-nav-count {
    color: var(--text-light);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.tools-nav-item--active > a {
    color: #2563eb !important;
    font-weight: 600;
}

.tools-nav-empty {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================================
   BREADCRUMBS + BACK LINK
   ============================================================ */

.site-breadcrumb-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(30, 30, 30, 0.1);
}

.breadcrumb-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
}

.site-breadcrumbs {
    margin: 0;
    padding: 0;
}

.site-breadcrumbs .breadcrumb-list {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 400;
}

.site-breadcrumbs .breadcrumb-item {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.site-breadcrumbs .breadcrumb-separator {
    color: #9b9b9b;
    margin: 0 0.7rem;
    font-weight: 400;
}

.site-breadcrumbs .breadcrumb-item a {
    color: #666666 !important;
    text-decoration: none !important;
}

.site-breadcrumbs .breadcrumb-item a:hover {
    color: #1e1e1e !important;
}

.site-breadcrumbs .breadcrumb-item [aria-current="page"] {
    color: #1e1e1e;
    font-weight: 500;
}

.back-to-subcategory {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.back-to-subcategory:hover {
    color: var(--text-primary) !important;
}

@media (max-width: 1024px) {
    .breadcrumb-container {
        padding: 1rem 1.25rem;
    }

    .site-breadcrumbs .breadcrumb-list {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .site-breadcrumbs .breadcrumb-list {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .site-breadcrumbs .breadcrumb-separator {
        margin: 0 0.5rem;
    }
}
