/*
Theme Name: Reisgids Theme
Theme URI: https://reisgids.treinrondreis.nl
Author: Treinrondreis
Author URI: https://treinrondreis.nl
Description: Custom theme voor reisgids.treinrondreis.nl met ondersteuning voor reisgidsen en documentatie
Version: 1.1
License: GPL v2 or later
Text Domain: reisgids-theme
*/

/* Reset en basis styles - Tailwind inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #f9fafb;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #111827;
}

/* Container */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .header-inner {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: block;
    text-decoration: none;
}

.logo-image {
    width: 200px;
    height: auto;
    transition: opacity 0.2s;
}

.site-logo:hover .logo-image {
    opacity: 0.8;
}

/* Top Navigation */
.top-navigation {
    display: flex;
    align-items: center;
}

.top-menu-list,
.top-navigation > ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-navigation a {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.top-navigation a:hover,
.top-navigation a.current-menu-item,
.top-navigation .current-menu-item > a {
    color: #111827;
}

/* Main Layout */
.site-content {
    display: flex;
    max-width: 80rem;
    margin: 0 auto;
}

/* Left Sidebar */
.left-sidebar {
    width: 19rem; /* 304px */
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    min-height: calc(100vh - 73px);
    position: sticky;
    top: 73px;
}

.left-sidebar-inner {
    padding: 1.5rem;
}

.left-sidebar h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.destinations-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.destinations-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.destinations-nav a:hover {
    color: #111827;
    background-color: #f9fafb;
}

.destinations-nav a.current {
    color: #2563eb;
    background-color: #dbeafe;
    font-weight: 500;
}

/* Sidebar Menu Styles */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.sidebar-menu a:hover {
    color: #111827;
    background-color: #f9fafb;
}

.sidebar-menu .current > a,
.sidebar-menu .current-menu-item > a,
.sidebar-menu .current-menu-parent > a,
.sidebar-menu .current-menu-ancestor > a {
    color: #2563eb;
    background-color: #dbeafe;
    font-weight: 500;
}

/* Nested Menu Styles */
.sidebar-menu .sub-menu {
    list-style: none;
    margin: 0.25rem 0 0.25rem 1rem;
    padding: 0;
    /* Hide all sub-menus by default */
    display: none;
}

/* Show sub-menu only for active items */
.sidebar-menu .current > .sub-menu,
.sidebar-menu .current-menu-item > .sub-menu,
.sidebar-menu .current-menu-parent > .sub-menu,
.sidebar-menu .current-menu-ancestor > .sub-menu {
    display: block;
}

/* Also show siblings of current item (same level) */
.sidebar-menu .current-menu-parent > ul > li,
.sidebar-menu .current-menu-ancestor > ul > li {
    display: block;
}

.sidebar-menu .sub-menu a {
    padding-left: 1.5rem;
    font-size: 0.813rem;
}

.sidebar-menu .sub-menu .sub-menu a {
    padding-left: 2.5rem;
}

/* Depth indicators */
.sidebar-menu .depth-1 > a {
    padding-left: 1.5rem;
}

.sidebar-menu .depth-2 > a {
    padding-left: 2.5rem;
}

/* Add subtle indicator for items with children */
.sidebar-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 1.5rem;
}

.sidebar-menu .menu-item-has-children > a::after {
    content: '›';
    position: absolute;
    right: 0.75rem;
    top: 0.5rem; /* Align with first line of text */
    color: #9ca3af;
    transition: transform 0.2s;
}

.sidebar-menu .current-menu-parent > a::after,
.sidebar-menu .current-menu-ancestor > a::after {
    transform: rotate(90deg);
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #ffffff;
    min-height: calc(100vh - 73px);
}

.main-content-inner {
    padding: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-intro {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 3rem;
    line-height: 1.75;
}

/* Content Typography */
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.entry-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.entry-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.entry-content p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #374151;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Right Sidebar - Table of Contents */
.right-sidebar {
    width: 16rem;
    background-color: #f9fafb;
    border-left: 1px solid #e5e7eb;
    min-height: calc(100vh - 73px);
    position: sticky;
    top: 73px;
}

.right-sidebar-inner {
    padding: 1.5rem;
}

.toc-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-nav a {
    display: block;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.toc-nav a:hover {
    color: #111827;
}

.toc-nav .toc-h3 {
    margin-left: 1rem;
}

.toc-nav .toc-h4 {
    margin-left: 2rem;
    color: #6b7280;
}

.toc-nav .toc-h4:hover {
    color: #374151;
}

/* Embed Blocks */
.embed-block {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Video Embed */
.video-embed {
    margin-bottom: 3rem;
}

.video-embed h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Photo Blocks */
.photo-single {
    margin-bottom: 3rem;
}

.photo-single h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.photo-container {
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.photo-container img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

/* Photo Gallery */
.photo-gallery {
    margin-bottom: 3rem;
}

.photo-gallery h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Documentation Embed Block */
.doc-embed {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
}

.doc-embed-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.doc-embed-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-embed-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #2563eb;
    border-radius: 50%;
}

.doc-embed-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-embed-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-embed-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.doc-embed-meta svg {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
}

.doc-embed h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.doc-embed-content {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.doc-embed-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.doc-embed-link:hover {
    background-color: #dbeafe;
    border-color: #60a5fa;
}

.doc-embed-link-text {
    font-weight: 500;
    color: #1d4ed8;
}

.doc-embed-link-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-embed-link-url {
    font-size: 0.875rem;
    color: #6b7280;
}

.doc-embed-link svg {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
    transition: transform 0.2s;
}

.doc-embed-link:hover svg {
    transform: translateX(0.25rem);
}

/* External Link Embed */
.external-embed {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
}

.external-embed .doc-embed-dot {
    background-color: #10b981;
}

.external-embed .doc-embed-type {
    color: #047857;
}

.external-embed .doc-embed-link {
    border-color: #6ee7b7;
}

.external-embed .doc-embed-link:hover {
    background-color: #d1fae5;
    border-color: #34d399;
}

.external-embed .doc-embed-link-text {
    color: #047857;
}

.external-embed .doc-embed-link svg {
    color: #10b981;
}

/* Partner Link Embed */
.partner-embed {
    background-color: #ede9fe;
    border: 1px solid #c4b5fd;
}

.partner-embed .doc-embed-dot {
    background-color: #8b5cf6;
}

.partner-embed .doc-embed-type {
    color: #6d28d9;
}

.partner-embed .doc-embed-link {
    border-color: #c4b5fd;
}

.partner-embed .doc-embed-link:hover {
    background-color: #ede9fe;
    border-color: #a78bfa;
}

.partner-embed .doc-embed-link-text {
    color: #6d28d9;
}

.partner-embed .doc-embed-link svg {
    color: #8b5cf6;
}

/* Archive Pages */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.archive-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.archive-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.archive-card-thumbnail {
    width: 100%;
    height: 12rem;
    overflow: hidden;
}

.archive-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.archive-card-thumbnail:hover img {
    transform: scale(1.05);
}

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

.archive-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.archive-card-title a {
    color: #111827;
    text-decoration: none;
}

.archive-card-title a:hover {
    color: #2563eb;
}

.archive-card-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.archive-card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.archive-card-link:hover {
    text-decoration: underline;
}

.archive-pagination {
    margin-top: 2rem;
    text-align: center;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.archive-pagination .current {
    background-color: #2563eb;
    color: white;
}

.archive-pagination a:hover {
    background-color: #e5e7eb;
}

/* Document List for Archives */
.document-list {
    margin-top: 1.5rem;
}

.document-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.document-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.document-title a {
    color: #111827;
    text-decoration: none;
}

.document-title a:hover {
    color: #2563eb;
}

.document-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.document-meta span {
    margin-right: 1rem;
}

.document-excerpt {
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.document-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.document-link:hover {
    text-decoration: underline;
}

/* Homepage Specific */
.homepage-layout {
    display: flex;
    max-width: 80rem;
    margin: 0 auto;
}

.homepage-layout .homepage-main {
    flex: 1;
    margin-left: 0;
    padding-left: 0;
}

.homepage-layout .main-content-inner {
    padding-left: 3rem;
}

.recent-reisgidsen,
.recent-documentatie {
    margin-bottom: 4rem;
}

.recent-reisgidsen h2,
.recent-documentatie h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.homepage-link-section {
    text-align: center;
    margin-top: 2rem;
}

.homepage-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.homepage-button:hover {
    background-color: #1d4ed8;
}

/* Footer */
.site-footer {
    background-color: #f3f4f6;
    text-align: center;
}

.site-footer .container {
    max-width: 80rem;
    margin: 0 auto;
}

.site-info {
    padding: 30px 0;
    color: #6b7280;
}

.site-info p {
    margin: 0;
    line-height: 1.6;
}

.site-info a {
    color: #2563eb;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    
    .left-sidebar,
    .right-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}