/* =========================
   🎨 VARIABLES
========================= */

:root {
    --primary: #d45482;
    --primary-soft: #cf5e93;
    --primary-dark: #b03f68;

    --bg: #f5f7fa;
    --text: #222;
}

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

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--primary);
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 80%;
    max-width: 1000px;
    margin: auto;
    padding: 15px;
}

/* =========================
   HEADER
========================= */

header {
    background: var(--primary);
    color: white;
    padding: 10px 0 0;
    position: relative;
    overflow: hidden;
}

header .container {
    position: relative;
    z-index: 2;
    padding-right: 260px;
}

/* illustratie */
header::before {
    content: "";
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%) rotate(10deg);

    width: 250px;
    height: 250px;

    background: url('/images/knoefies-web-namen.png') no-repeat center;
    background-size: contain;

    pointer-events: none;
}

/* blob */
.header-blob {
    width: 100%;
    height: 120px;
    background: url('/images/blob-header.png') center top no-repeat;
    background-size: 100% 100%;
    margin-top: -5px;
}

/* =========================
   NAV
========================= */

.nav-grid {
    display: inline-flex;
    gap: 20px;
    margin-top: 12px;
}

.nav-col {
    display: flex;
    flex-direction: column;
}

.nav-col a {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.nav-col a:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* =========================
   SEARCH
========================= */

.search {
    margin-top: 10px;
}

.search input {
    padding: 8px;
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
    border: none;
}

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

.hero-intro {
    text-align: center;
    margin: 10px 0 30px;
}

.hero-intro h1 {
    font-size: 32px;
}

.hero-sub {
    font-size: 20px;
    color: var(--primary-soft);
    font-weight: bold;
    animation: floatyText 3s infinite ease-in-out;
}

@keyframes floatyText {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-img {
    max-width: 320px;
    margin: 20px auto;
    display: block;
}

/* knoppen */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 22px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    transform: scale(1.08);
}

.play { background: #ff8cc6; }
.story { background: #7ed6ff; }
.music { background: #a8ffb0; }
.shop { background: #ffe38c; color: #444; }

/* =========================
   FLOATING CHARACTERS
========================= */

.knoefies-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.char {
    position: absolute;
    width: 140px;
}

.milo {
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    animation: floatyChar 3s infinite;
}

.luna {
    top: calc(50% + 60px);
    right: 5%;
    animation: floatyChar 3.5s infinite;
}

.binky {
    bottom: 80px;
    left: 8%;
    animation: floatyChar 4s infinite;
}

@keyframes floatyChar {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =========================
   LAYOUT
========================= */

.content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.main { flex: 3; }

.sidebar {
    flex: 1;
    max-width: 300px;
    background: white;
    padding: 15px;
    border-radius: 6px;
}

/* =========================
   ARTICLES (🔥 NIEUW)
========================= */

.articles {
    background: white;
    border-radius: 6px;
    padding: 15px;
}

.featured-block {
    border: 2px solid pink;
    background: lightpink;
    color: brown;
}

/* layout met afbeelding links */
.article {
    display: flex !important;
    gap: 12px;
    align-items: center;   /* 👈 belangrijk: alles netjes op één lijn */
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

/* afbeelding */
.article-image {
    width: 90px;
    height: 70px;          /* 👈 vaste hoogte */
    object-fit: cover;     /* 👈 netjes croppen */
    border-radius: 8px;
    flex-shrink: 0;
}

/* tekst */
.article-content {
    flex: 1;
    min-width: 0; /* 👈 voorkomt layout bugs */
}



/* titel */
.title {
    display: block;
    font-size: 17px;
    color: var(--primary);
    text-decoration: none;
}

.title:hover {
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .container { width: 90%; }

    .content { flex-direction: column; }

    .sidebar { max-width: 100%; }

    .nav-grid { flex-direction: column; }

    header .container { padding-right: 100px; }

    header::before {
        width: 90px;
        height: 90px;
        right: 10px;
    }

    .char { width: 90px; }

    .binky { display: none; }

    /* artikel onder elkaar */
    .article {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        max-width: 220px;
    }
}
/* =========================
   IMAGE HOVER (VEILIG 2x)
========================= */

@media (hover: hover) {
    .article-image {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        transform-origin: center;
        cursor: zoom-in;
    }

    .article-image:hover {
        transform: scale(2);
        z-index: 5;
        position: relative; /* 👈 blijft in flow */
        box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    }
}

