
/* IK BEN BIJZONDER - FIGMA LAYOUT */

:root {
    --turquoise: #2fbcc8;
    --orange: #ff590b;
    --light-blue: #dce7ec;
    --pink: #ed6fb0;
    --lime: #b2f244;
    --green: #233f37;
    --cream: #f0efe5;
    --muted: #708078;
    --lavender: #f0eaf7;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #eef1f2;
    color: var(--green);
}

button {
    font: inherit;
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    display: block;
}

#app {
    width: 390px;
    height: 844px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
               scale(var(--app-scale, 1));
    transform-origin: center;
    background: var(--turquoise);
    border-radius: 32px;
    overflow: hidden;
}

.screen {
    display: none;
    position: absolute;
    inset: 0 0 100px;
    overflow: hidden;
}

.screen.active {
    display: block;
}


/* =========================
   GIGI - STARTSCHERM
   ========================= */

#home {
    background: var(--turquoise);
}

.home-header {
    position: absolute;
    top: 44px;
    left: 24px;
    right: 24px;
    height: 55px;
}

.home-header h1 {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: #243a31;
}

.home-header p {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 20px;
    color: #f3f5f4;
}

.parent-button {
    position: absolute;
    top: 3px;
    right: 0;
    width: 50px;
    height: 34px;
    border-radius: 17px;
    background: var(--cream);
    color: var(--muted);
    display: grid;
    place-items: center;
    font-size: 16px;
}

.hero {
    position: absolute;
    top: 99px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}


/* =========================
   PAGINA HEADERS
   ========================= */

.page-header {
    position: absolute;
    top: 44px;
    left: 24px;
    right: 24px;
    height: 112px;
}

.page-header h1 {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    position: absolute;
    top: 44px;
    left: 0;
    font-family: "Inria Serif", Georgia, serif;
    font-weight: 400;
}

.page-content {
    position: absolute;
    top: 156px;
    left: 24px;
    right: 24px;
    bottom: 0;
}


/* =========================
   VERHALEN
   ========================= */

#stories {
    background: var(--orange);
}

.stories-header h1 {
    color: #ebf6f2;
}

.stories-header p {
    font-size: 20px;
    line-height: 26px;
    color: #060606;
    left: 7px;
}

.story-filters {
    position: absolute;
    top: 3px;
    left: 6px;
    right: 6px;
    display: flex;
    gap: 16px;
}

.story-filters button {
    flex: 1;
    min-width: 0;
    height: 38px;
    border-radius: 19px;
    background: var(--cream);
    color: #5e7367;
    font-size: 12px;
    font-weight: 600;
}

.featured-story {
    position: absolute;
    top: 62px;
    left: 0;
    width: 342px;
    height: 263px;
    border-radius: 24px;
    overflow: hidden;
    background: #fafafa;
}

.story-cover {
    position: relative;
    width: 342px;
    height: 179px;
    overflow: hidden;
    background: #fafafa;
}

.story-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fafafa;
    cursor: pointer;
}

.story-label {
    position: absolute;
    top: 7px;
    left: 10px;
    width: 134px;
    height: 26px;
    border-radius: 13px;
    background: var(--turquoise);
    font-size: 9px;
    font-weight: 700;
    display: grid;
    place-items: center;
    z-index: 2;
    pointer-events: none;
}

.story-info {
    position: relative;
    width: 342px;
    height: 84px;
    background: var(--lavender);
    padding: 16px;
}

.story-info h2 {
    font-size: 22px;
    line-height: 27px;
    font-weight: 700;
}

.story-info p {
    position: absolute;
    top: 48px;
    left: 16px;
    font-size: 12px;
    color: #657368;
}

.duration {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 58px;
    height: 28px;
    border-radius: 14px;
    background: var(--turquoise);
    font-size: 11px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.adventure-heading {
    position: absolute;
    top: 351px;
    left: 0;
}

.adventure-heading h2 {
    font-size: 20px;
    line-height: 24px;
    color: #101111;
}

.adventure-heading p {
    font-size: 12px;
    line-height: 15px;
    color: #050606;
}

.story-card {
    position: absolute;
    top: 414px;
    left: 0;
    width: 342px;
    height: 76px;
    border-radius: 20px;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.story-card:last-child {
    top: 500px;
}

.story-card img {
    width: 105px;
    height: 76px;
    object-fit: cover;
    border-radius: 16px;
}

.story-card-text {
    position: absolute;
    left: 118px;
    top: 17px;
    width: 186px;
}

.story-card h3 {
    font-size: 14px;
    line-height: 17px;
    font-weight: 700;
}

.story-card p {
    margin-top: 7px;
    font-size: 11px;
    line-height: 13px;
    color: var(--muted);
}

.arrow {
    position: absolute;
    right: 16px;
    top: 24px;
    color: #24634e;
    font-size: 25px;
}


/* =========================
   ONTDEKKEN
   ========================= */

#discover {
    background: var(--light-blue);
}

.discover-header h1 {
    color: var(--green);
}

.discover-header p {
    top: 48px;
    font-size: 14px;
    line-height: 20px;
    color: #131514;
}

.reading-video-box {
    position: absolute;
    top: 8px;
    left: 0;
    width: 342px;
    height: 214px;
    border-radius: 24px;
    overflow: hidden;
    background: #fafafa;
}

.reading-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fafafa;
    cursor: pointer;
}

.reading-label {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 157px;
    height: 26px;
    border-radius: 13px;
    background: var(--light-blue);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    z-index: 2;
    pointer-events: none;
}

.reading-title {
    position: absolute;
    top: 238px;
    left: 0;
    font-size: 23px;
    line-height: 28px;
    font-weight: 700;
}

.reading-meta {
    position: absolute;
    top: 270px;
    left: 0;
    width: 342px;
    height: 26px;
    display: flex;
    align-items: center;
}

.reading-duration {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.reading-tag {
    position: absolute;
    left: 115px;
    width: 149px;
    height: 26px;
    background: #fae4d5;
    border-radius: 13px;
    color: #8b4f2a;
    font-size: 11px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.movement-card {
    position: absolute;
    top: 316px;
    left: 0;
    width: 342px;
    height: 68px;
    border-radius: 20px;
    background: var(--orange);
    display: flex;
    align-items: center;
}

.movement-icon {
    position: absolute;
    left: 15px;
    width: 29px;
    font-size: 29px;
    color: #24634e;
}

.movement-card div {
    position: absolute;
    top: 10px;
    left: 58px;
    right: 15px;
}

.movement-card h3 {
    color: white;
    font-size: 14px;
    line-height: 17px;
    font-weight: 700;
}

.movement-card p {
    color: #020202;
    font-size: 12px;
    line-height: 15px;
}

.together-title {
    position: absolute;
    top: 406px;
    left: 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
}

.reading-cards {
    position: absolute;
    top: 442px;
    left: 0;
    width: 342px;
    display: grid;
    grid-template-columns: 164px 164px;
    gap: 14px;
}

.reading-card {
    position: relative;
    width: 164px;
    height: 133px;
    border-radius: 20px;
    background: white;
    color: var(--green);
    overflow: hidden;
    text-align: left;
}

.flyer-card img {
    position: absolute;
    top: 0;
    width: 164px;
    height: 126px;
    object-fit: cover;
    border-radius: 16px;
}

.book-card img {
    position: absolute;
    top: 0;
    width: 164px;
    height: 84px;
    object-fit: cover;
    border-radius: 16px;
}

.book-info {
    position: absolute;
    top: 93px;
    left: 12px;
    right: 8px;
}

.book-info h3 {
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
}

.book-info p {
    font-size: 10px;
    line-height: 12px;
    margin-top: 5px;
    color: var(--muted);
}


/* =========================
   NAVIGATIE
   ========================= */

.navigation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 390px;
    height: 100px;
    background: var(--turquoise);
    border-top: 1px solid #e9eadf;
}

.navigation-buttons {
    position: absolute;
    top: 10px;
    left: 18px;
    display: flex;
    gap: 12px;
}

.nav-button {
    width: 110px;
    height: 62px;
    border-radius: 22px;
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}

.nav-icon {
    font-size: 24px;
    line-height: 26px;
}

.nav-button.active {
    font-weight: 700;
}

.nav-button[data-screen="home"].active {
    background: #f68d46;
    color: #243a31;
}

.nav-button[data-screen="stories"].active {
    background: var(--pink);
    color: #141615;
}

.nav-button[data-screen="discover"].active {
    background: var(--lime);
    color: #24634e;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 130px;
    width: 130px;
    height: 5px;
    border-radius: 3px;
    background: var(--green);
}


/* =========================
   MELDINGEN
   ========================= */

dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(342px, 90vw);
    border: none;
    border-radius: 24px;
    padding: 24px;
    background: var(--cream);
    color: var(--green);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

dialog h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

dialog p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

dialog button {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    background: var(--turquoise);
    color: var(--green);
    margin-top: 8px;
    font-weight: 600;
}

.video-error {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 30px;
    background: #fafafa;
    font-size: 12px;
    color: var(--green);
}
