/* --- BASIS OPMAAK --- */
:root {
    --circus-red: #d22630;
    --circus-gold: #f7b500;
    --circus-cream: #fffdf0;
    --circus-dark: #2c1e1e;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--circus-dark);
    background-image: url('../img/circus/body-bg.png');
    /* Jouw achtergrond afbeelding */
    background-repeat: repeat;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--circus-red);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--circus-gold);
    text-decoration: underline;
}

/* --- LAYOUT CONTAINER (De Piste) --- */
.container {
    max-width: 1100px;
    margin: 40px auto;
    background-color: var(--circus-cream);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 8px solid var(--circus-gold);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* --- HEADER (De Tent) --- */
.site-header {
    background-color: var(--circus-red);
    background-image: url('../img/circus/header-bg.png');
    /* Jouw header afbeelding */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    border-bottom: 5px solid var(--circus-gold);
}

/* Gloeilamp effect via CSS border stippen */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, #fff 2px, transparent 3px);
    background-size: 20px 10px;
    opacity: 0.8;
}

.site-header h1 {
    font-family: 'Rye', serif;
    font-size: 4em;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    text-shadow:
        3px 3px 0px var(--circus-red),
        6px 6px 0px #000,
        0 0 20px var(--circus-gold);
    /* Gloed effect */
    animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 3px 3px 0px var(--circus-red), 6px 6px 0px #000, 0 0 10px var(--circus-gold);
    }

    to {
        text-shadow: 3px 3px 0px var(--circus-red), 6px 6px 0px #000, 0 0 30px var(--circus-gold);
    }
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    gap: 40px;
}

.main-content {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border: 2px dashed var(--circus-red);
    border-radius: 5px;
}

/* --- ARTIKELEN --- */
article {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

article h1 {
    font-family: 'Rye', serif;
    color: var(--circus-red);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.post-meta {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    border-left: 4px solid var(--circus-gold);
    padding-left: 10px;
}

.post-image {
    width: 100%;
    height: auto;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transform: rotate(-1deg);
    /* Speels effect */
}

.post-intro {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* --- MENU & NAVIGATIE --- */
.pages-menu {
    background: var(--circus-dark);
    padding: 15px;
    text-align: center;
    border-top: 5px solid var(--circus-gold);
}

.pages-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pages-menu li {
    display: inline-block;
    margin: 0 15px;
}

.pages-menu a {
    color: var(--circus-gold);
    font-family: 'Rye', serif;
    font-size: 1.2em;
    text-decoration: none;
}

.pages-menu a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--circus-gold);
}

/* --- SIDEBAR WIDGETS --- */
.sidebar h3 {
    /* Aanname dat widgets h3 gebruiken */
    font-family: 'Rye', serif;
    color: var(--circus-dark);
    border-bottom: 2px solid var(--circus-gold);
    padding-bottom: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .site-header h1 {
        font-size: 2.5em;
    }
}
    
/* Masthead afbeelding */
.masthead-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}
