/*
Theme Name: Jan Brink
Theme URI: https://janbrink.com
Author: Antigravity
Author URI: https://janbrink.com
Description: Minimalistische en rustige galerij-stijl website voor Jan Brink.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: janbrink
*/

/* Reset & Basis Variabelen */
:root {
    --bg-color: #fcfcfc; /* Warm wit / gebroken wit */
    --text-color: #333333; /* Donkergrijs, niet diepzwart */
    --accent-color: #a3a99c; /* Gedempt groengrijs / zachte aardetint */
    --font-heading: 'Playfair Display', serif; /* Elegante serif */
    --font-body: 'Inter', sans-serif; /* Rustige sans-serif */
    --spacing-large: 6rem;
    --spacing-medium: 3rem;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 0;
    color: var(--text-color);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Header & Navigatie */
.site-header {
    padding: var(--spacing-medium) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.main-navigation.toggled .hamburger {
    background: transparent;
}

.main-navigation.toggled .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.main-navigation.toggled .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation .menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 80px 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .main-navigation.toggled .menu-container {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-navigation a {
        font-size: 1.2rem;
    }

    .site-header {
        padding: 1rem 0;
    }

    /* Exhibition artists stack */
    .other-artists {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .home-hero {
        height: 70vh;
    }

    .slide-image-container {
        height: 50vh;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .entry-title {
        font-size: 2.5rem;
    }
}

/* Algemene layout */
.site-content {
    padding: var(--spacing-medium) 0 var(--spacing-large);
}

/* Kunstwerken Galerij (Archive) */
.kunstwerk-archive .page-header {
    margin-bottom: var(--spacing-large);
    text-align: center;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-large);
}

.artwork-grid-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.artwork-grid-item:hover {
    transform: translateY(-5px);
    opacity: 0.95;
}

.artwork-thumbnail {
    margin-bottom: 1.5rem;
    overflow: hidden;
    background-color: transparent;
    aspect-ratio: 4 / 5; /* default voor kunst */
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.artwork-grid-item:hover .artwork-thumbnail img {
    transform: scale(1.02);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ededed;
}

.grid-title {
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
    color: var(--text-color);
}

/* Kunstwerk Detail (Single) */
.single-artwork-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-large);
    align-items: flex-start;
}

.artwork-image-wrapper {
    flex: 1 1 55%;
    text-align: center;
}

.artwork-main-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.artwork-info-wrapper {
    flex: 1 1 35%;
    position: sticky;
    top: 5rem;
}

.artwork-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.artwork-meta {
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--accent-color);
}

.meta-item {
    margin: 0.6rem 0;
    font-size: 0.95rem;
    color: #555;
}

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

.back-link {
    display: inline-block;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .single-artwork-container {
        flex-direction: column;
    }
    
    .artwork-image-wrapper, .artwork-info-wrapper {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .artwork-info-wrapper {
        position: static;
    }
}

/* Hero Slider */
.home-hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-large);
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.slide-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.view-work-link {
    display: inline-block;
    color: white;
    border: 1px solid white;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.view-work-link:hover {
    background: white;
    color: var(--text-color);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-nav button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: white;
    color: var(--text-color);
}

/* Exhibition Update */
.other-artists {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.artist-thumbnail {
    text-align: center;
    max-width: 150px;
}

.artist-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.artist-thumbnail:hover img {
    transform: scale(1.1);
}

.artist-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Contact Page Styling */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-layout {
    display: flex;
    gap: 4rem;
}

.form-wrapper {
    flex: 2;
}

.contact-details {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-family: inherit;
}

.alert {
     padding: 1rem;
     margin-bottom: 2rem;
}

.alert-success {
    background-color: #f0f7f0;
    color: #2e5a2e;
    border: 1px solid #d4e3d4;
}

.alert-error {
    background-color: #fff0f0;
    color: #a02020;
    border: 1px solid #f9d6d6;
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }
}

/* Biografie Pagina Styling */
.biografie-page {
    padding-top: var(--spacing-medium);
}

.biografie-header {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.biografie-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.biografie-layout {
    display: flex;
    gap: var(--spacing-large);
    align-items: flex-start;
}

.biografie-image {
    flex: 1 1 40%;
}

.biografie-content {
    flex: 1 1 50%;
}

.portrait-image {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.image-caption {
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
    text-align: center;
}

.portrait-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #f0f0ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .biografie-layout {
        flex-direction: column;
    }
    
    .biografie-image, .biografie-content {
        width: 100%;
    }
}

/* Homepagina Specifieke Styling */
.front-page .site-content {
    padding-top: 0;
}

/* Hero Slider */
.home-hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-large);
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.slide-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.view-work-link {
    display: inline-block;
    color: white;
    border: 1px solid white;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.view-work-link:hover {
    background: white;
    color: var(--text-color);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-nav button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: white;
    color: var(--text-color);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-large);
}

.welcome-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.intro-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #555;
}

.text-link {
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 3px;
    font-weight: 400;
}

/* Exhibition Block */
.exhibition-block {
    background-color: #f7f7f4; /* Subtiele steunkleur */
    padding: var(--spacing-large) 0;
    margin-bottom: var(--spacing-large);
}

.exhibition-card {
    background: white;
    padding: var(--spacing-medium);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    text-align: center;
}

.exhibition-card .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}

.exhibition-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.exhibition-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.button-accent {
    display: inline-block;
    background: var(--text-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.button-accent:hover {
    background: var(--accent-color);
    color: white;
}

/* Recent Works Section */
.recent-works .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-medium);
}

.view-all {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pagination */
.pagination {
    margin-top: var(--spacing-large);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.6rem 1rem;
    border: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-color);
}

.pagination .current {
    background: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

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

/* Footer Navigation */
.site-footer {
    border-top: 1px solid #eee;
    padding: var(--spacing-medium) 0;
    margin-top: var(--spacing-large);
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

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

.site-info {
    font-size: 0.8rem;
    color: #999;
}

.site-info a {
    color: inherit;
    border-bottom: 1px solid #eee;
}
