/* =================== MINI UTILITIES (Bootstrap replacements) =================== */

/* display */
.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

.d-block {
    display: block !important;
}

.d-none {
    display: none !important;
}

/* flex helpers */
.flex-wrap {
    flex-wrap: wrap !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

/* gap */
.gap-1 {
    gap: 4px !important;
}

.gap-2 {
    gap: 8px !important;
}

.gap-3 {
    gap: 12px !important;
}

/* margin utilities */
.mb-1 {
    margin-bottom: 4px !important;
}

.mb-2 {
    margin-bottom: 8px !important;
}

.mt-1 {
    margin-top: 4px !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.mt-3 {
    margin-top: 12px !important;
}

/* text */
.text-center {
    text-align: center !important;
}

/* positioning (voor badge etc) */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.start-100 {
    left: 100% !important;
}

.translate-middle {
    transform: translate(-50%, -50%) !important;
}

/* fixed helpers (je gebruikt fixed-top in header soms) */
.fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.fixed-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* buttons baseline (als je bootstrap btn classes gebruikte) */
button {
    font-family: var(--font);
}


/* ==========================  CSS VARIABLES   ========================== */
@font-face {
    font-family: 'Daydream';
    src: url('fonts/daydream.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'arcadepix';
    src: url('fonts/arcadepix.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'glamourgirl';
    src: url('fonts/glamourgirl.ttf') format('truetype');
    font-weight: 400;
}

:root {
    /* kleuren */
    --hoofd: #ef8299;
    --licht: #f7c0cb;
    --mid: #ea94b1;
    --ipvwit: #fffbfc;
    --donker: #b01643;
    --achter: #fbedf3;
    --popupbg: rgba(0, 0, 0, 0.2);

    /* tekst */
    --textlicht: #faedf1;
    --texthoofd: #ef8299;
    --textmid: #b01643;
    --textdonker: #701132;
    --textplaceholder: #928989;
    --size1: 15px;
    --size2: 22px;
    --size3: 30px;
    --size4: 40px;
    --size5: 50px;
    --zwaartemid: 500;
    --zwaartekop: 700;
    --zwaartetitel: 900;
    --font: "puffin-arcade-regular", sans-serif;

    /* border */
    --bordercard: 25px;
    --borderknop: 18px;
    --bordertoggle: 12px;
    --borderfoto: 12px;
    --borderkop: 10px;
    --schaduw: 3px 3px 8px rgba(53, 5, 29, 0.342);

    /* margins */
    --margstandard: 12px;
    --header-height: 85px;
    --fotowall-height: 165px;
    --bottom-nav-height: 95px;

    --app-height: 100vh;
}

.hidden {
    display: none;
}

h1 {
    font-size: var(--size5);
    color: var(--textdonker);
    font-family: var(--font);
}


h2 {
    font-size: var(--size5);
    color: var(--textdonker);
    font-family: var(--font);
    text-align: center;
}

h3 {
    font-size: var(--size4);
    color: var(--textdonker);
    font-family: var(--font);
}

h4 {
    font-size: var(--size3);
    color: var(--textmid);
    font-family: var(--font);
    display: inline;
}

h5 {
    font-size: var(--size1);
    color: var(--texthoofd);
    font-family: var(--font);
    text-align: center;
    display: inline;
}

.titel {
    font-size: var(--size4);
    color: var(--textdonker);
    font-family: var(--font);
}

.optie {
    font-size: var(--size2);
    font-family: var(--font);
}

.friend-username {
    font-size: var(--size3);
    color: var(--textdonker);
    font-family: var(--font);
}

/* ==========================  RESET / BASIS   ========================== */
html {
    background-color: var(--achter);
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: var(--achter);
    font-family: var(--font);
}

main {
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
    margin-left: 8px;
    margin-right: 8px;
    max-width: 430px;
    background-color: var(--achter);
}

.app-wrapper {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    position: relative;
    background-color: var(--achter);
}

.app-wrapper {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    min-height: var(--app-height);
}

/* ===================  APP FRAME (wrapper, header, footer)   ========================== */
header {
    display: flex;
    background-color: var(--hoofd);
    top: 0;
    width: 100%;
    padding-bottom: 3px;
    position: fixed;
}

.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 430px;
    height: var(--header-height);
    background-color: var(--hoofd);
    display: grid;
    align-items: center;
    z-index: 1000;
}

.logo {
    height: 70px;
    justify-self: center;
    position: absolute;
}

.logobegin {
    width: 250px;
    height: auto;
    padding-top: 30%;
    margin-bottom: 10%;
    align-content: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 430px;
    height: var(--bottom-nav-height);
    background-color: var(--hoofd);
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.badge {
    position: absolute;
    top: 5px;
    left: -15px;
    transform: translate(50%, -50%);
    background-color: var(--donker);
    color: var(--ipvwit);
    padding: 2px;
    font-size: var(--size1);
    font-weight: bold;
}

/* =============================  NAVBAR   ========================== */
.navbar {
    overflow: hidden;
    bottom: 0;
    z-index: 1000;
    max-width: 430px;
    align-items: center;
    position: fixed;
}

.navbar-icon {
    width: 70px;
    height: auto;
}

.nav-item {
    position: relative;
    margin: 5px;
}

.nav-item::before {
    content: "";
    position: fixed;
    margin-top: -5px;
    margin-left: -5px;
    width: 80px;
    height: 80px;
    background-color: var(--licht);
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    z-index: -1;
}

.nav-item.active::before {
    transform: scale(1);
}

.navbar-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.inbox-btn {
    justify-self: end;
    position: relative;
    left: -20px
}

.inbox-btn img {
    height: 60px;
}

.make-menu {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.make-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-6px);
}

.make-pill {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--licht);
    color: var(--textdonker);
    font-weight: var(--size3);
}

.make-pill.secondary {
    background: var(--licht);
    color: var(--textdonker);
}


/* =======================  OUTLINES   ========================== */
.classic-outline {
    position: relative;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease;
    background-color: var(--achter);
}

.classic-login-outline {
    position: absolute;
    padding: 5%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease;
    background-color: var(--achter);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================= TITELS ======================== */
.classic-categories-big {
    width: 100%;
    height: 50px;
    display: block;
    font-size: var(--size4);
    color: var(--textlicht);
    background-color: var(--mid);
    border: none;
    margin-top: var(--margstandard);
    margin-bottom: var(--margstandard);
    border-radius: var(--borderkop);
    text-align: center;
    font-family: var(--font);
}

.classic-categories {
    width: 100%;
    height: auto;
    display: block;
    padding-top: 5px;
    padding-bottom: 5px;
    color: var(--textlicht);
    background-color: var(--mid);
    border: none;
    margin-top: var(--margstandard);
    margin-bottom: var(--margstandard);
    border-radius: var(--borderkop);
    text-align: center;
    font-family: var(--font);
    font-size: var(--size3);
}

.classic-categories-small {
    width: 100%;
    height: 30px;
    display: block;
    color: var(--textdonker);
    background-color: var(--mid);
    border: none;
    margin-top: var(--margstandard);
    margin-bottom: var(--margstandard);
    border-radius: var(--borderkop);
    text-align: center;
    font-family: var(--font);
    font-size: var(--size2);
}

/* ====================== Modal ========================== */
.vmodal-overlay {
    position: fixed;
    inset: 0;
    background: var(--popupbg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 16px;
}

.vmodal {
    width: 100%;
    max-width: 420px;
    background: var(--ipvwit);
    border-radius: var(--borderknop);
    box-shadow: var(--schaduw);
    overflow: hidden;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
}

.vmodal-overlay:not(.hidden) .vmodal {
    transform: translateY(0);
    opacity: 1;
}

.vmodal-header,
.vmodal-footer {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--achter);
}

.vmodal-title {
    margin: 0;
    font-size: var(--size3);
    color: var(--textdonker);
}

.vmodal-body {
    padding: 14px;
}

.vmodal-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: var(--licht);
    color: var(--textdonker);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* voorkomt scrollen van pagina achter modal */
body.modal-open {
    overflow: hidden;
}

/* ======================= item bar ======================== */
.item-bar {
    display: flex;
    padding: 10px;
    margin: 10px;
    width: 90%;
    height: 85px;
    border-radius: var(--borderknop);
    background: var(--ipvwit);
    box-shadow: var(--schaduw);
    transition: background-color 0.2s;
}

.tutorial-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ipvwit);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.item-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.item-image img:first-child {
    width: 100%;
    border-radius: var(--borderfoto);
    display: block;
}

.item-image .level-icon {
    position: absolute;
    top: -5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--ipvwit);
}

.item-info {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font);
}

.del-icon {
    width: 50px;
    height: 50px;
}

/* ======================= BUTTONS ======================== */
.btn-hoofd-1 {
    background-color: var(--hoofd);
    color: var(--textlicht);
    width: 100%;
    height: 80px;
    display: block;
    margin: var(--margstandard);
    border: none;
    padding: 1rem;
    border-radius: var(--borderknop);
    box-shadow: var(--schaduw);
    font-family: var(--font);
    font-size: var(--size3);
    text-align: center;
}

.btn-hoofd-2 {
    background-color: var(--hoofd);
    color: var(--textlicht);
    width: 80%;
    display: block;
    text-align: center;
    padding: 1rem;
    border: none;
    border-radius: var(--borderknop);
    margin: var(--margstandard);
    font-family: var(--font);
    font-size: var(--size3);
}

.btn-hoofd-3 {
    background-color: var(--hoofd);
    color: var(--textlicht);
    width: 80%;
    height: 80px;
    display: block;
    margin: var(--margstandard);
    font-size: var(--size1);
    border: none;
    border-radius: var(--borderknop);
    box-shadow: var(--schaduw);
    text-align: center;
    font-family: var(--font);
}

.btn-donker-2 {
    background-color: var(--donker);
    color: var(--textlicht);
    width: 80%;
    display: block;
    margin: var(--margstandard);
    padding: 1rem;
    text-align: center;
    border: none;
    border-radius: var(--borderknop);
    font-family: var(--font);
    font-size: var(--size3);
}

.btn-licht-5 {
    background-color: var(--licht);
    color: var(--textmid);
    width: 90%;
    display: block;
    margin: 4px 0 2px 6px;
    padding: 4px 8px;
    border: none;
    border-radius: var(--borderknop);
    box-shadow: var(--schaduw);
    text-align: center;
    font-family: var(--font);
    font-size: var(--size2);
}

.btn-lined-2 {
    background-color: var(--achter);
    color: var(--mid);
    width: 80%;
    display: block;
    margin: var(--margstandard);
    padding: 1rem;
    text-align: center;
    font-size: var(--size3);
    border-radius: var(--borderknop);
    border-color: var(--mid);
    border-style: solid;
    border-width: 4px;
    font-family: var(--font);
    box-shadow: var(--schaduw);
}

.btn-lined-3 {
    background-color: var(--achter);
    color: var(--mid);
    width: 50%;
    display: block;
    margin: 20px;
    padding: 1rem;
    text-align: center;
    font-size: var(--size2);
    border-radius: var(--borderknop);
    border-color: var(--mid);
    border-style: solid;
    border-width: 4px;
    font-family: var(--font);
    box-shadow: var(--schaduw);
}


/* =================== INPUT ======================== */
.custom-input {
    width: 90%;
    max-width: 400px;
    padding: 12px;
    margin: var(--margstandard);
    border-radius: var(--borderknop);
    border: 1px solid var(--licht);
    background-color: var(--ipvwit);
    box-shadow: var(--schaduw);
    color: var(--textplaceholder);
    outline: none;
    transition: 0.3s;
    font-family: var(--font);
    font-size: var(--size2);
}

.adjust-main-input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-top: var(--margstandard);
    border-radius: var(--borderknop);
    border: 1px solid var(--licht);
    background-color: var(--ipvwit);
    box-shadow: var(--schaduw);
    color: var(--textdonker);
    outline: none;
    transition: 0.3s;
    font-family: var(--font);
    font-size: var(--size3);
}

.custom-input:focus {
    border-color: var(--hoofd);
    box-shadow: var(--schaduw);
}

.custom-input::placeholder {
    color: var(--textplaceholder);
    font-style: italic;
}


.form-select {
    width: 90%;
    max-width: 400px;
    padding: 12px;
    border-radius: var(--borderknop);
    border: 1px solid var(--licht);
    background-color: var(--ipvwit);
    box-shadow: var(--schaduw);
    color: var(--textmid);
    outline: none;
    transition: 0.3s;
    font-family: var(--font);
    font-size: var(--size2);
}

/* =================== TOGGLE SWITCH ======================== */
.classic-toggle {
    background-color: var(--licht);
    box-shadow: var(--schaduw);
    display: grid;
    width: 100%;
    height: 50px;
    margin-top: 10px;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--bordertoggle);
    font-family: var(--font);
    font-size: var(--size2);
}

.classic-toggle-item {
    color: var(--textmid);
    background-color: var(--licht);
    border: none;
    font-weight: var(--zwaartemid);
    border-radius: var(--borderknop);
    font-size: var(--size2);
}

.classic-toggle-item :active {
    background-color: var(--mid);
    color: var(--textdonker);
}