/* =========================  LOGIN & AANMELDEN   ========================== */

.niveau-icon-choice {
    width: 40px;
    padding: 2px;
}

/* =========================  PROFIEL PAGINA  ========================== */
.profile-card {
    background: var(--ipvwit);
    border-radius: var(--bordercard);
    width: 90%;
    height: 100%;
    padding-bottom: 20px;
    padding-top: 40px;
    margin: 20px;
    box-shadow: var(--schaduw);
    position: relative;
    text-align: center;
    font-family: var(--font)
}

.username-txt {
    font-size: var(--size5);
    color: var(--textmid);
}

.avatar-img {
    width: 70%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.level-badge {
    position: absolute;
    bottom: 5px;
    left: 30px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adjust-btn {
    top: -3px;
    right: -3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    position: absolute;
    width: 60px;
    height: 60px;
}

.adjust-btn img {
    width: 50px;
    height: 50px;
}

.adjust-btn:hover {
    transform: scale(1.1);
}

/* ================== PROFIEL AANPASSEN ==================-*/
/* AVATAR */
.avatar-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px;
    scroll-snap-type: x mandatory;
}

.avatar-carousel img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    scroll-snap-align: center;
    transition: 0.2s;
}

.avatar-carousel img.selected {
    opacity: 1;
    border: 3px solid var(--hoofd);
}

.avatar-preview {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
}

/* GEBRUIKERSNAAM */
.profile-section input {
    width: 100%;
    padding: 10px;
    border-radius: var(--borderknop);
    border: 1px solid var(--licht);
    font-family: var(--font);
    font-size: var(--size1);
}

/* NIVEAU */
#niveauStars {
    display: flex;
    justify-content: center;
}

.niveau-icon {
    width: 70px;
    height: auto;
}

/* MATERIALEN */
#materialenContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.material-blok {
    padding: 6px 12px;
    border-radius: 12px;
    background-color: var(--licht);
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    color: var(--textmid);
    font-family: var(--font);
    font-size: var(--size1);
}

.material-blok.selected {
    background-color: var(--hoofd);
    color: var(--textlicht);
}

.make-wall {
    position: relative;
    margin-top: 15px;
    padding-bottom: 120px;
}

/* =========================  INSPIRATIE PAGINA  ========================== */
/* Filtercontainer */
.filter-container {
    position: fixed;
    width: 100%;
    max-width: 430px;
    margin-top: var(--header-height);
    padding-bottom: 6px;
    padding-top: 8px;
    background: var(--achter);
    backdrop-filter: blur(50px);
    z-index: 900;
}

/* Filterknop */
.filterbutton {
    background-color: var(--hoofd);
    width: 48%;
    height: 50px;
    border: none;
    border-radius: var(--borderknop);
    box-shadow: var(--schaduw);
    color: var(--textlicht);
    margin: 4px;
    cursor: pointer;
    font-size: var(--size2);
    font-family: var(--font);
}

/* Dropdown menu */
.filterdropdown {
    position: absolute;
    width: 80%;
    margin-top: 2%;
    padding-left: 10px;
    padding-bottom: 10px;
    background: var(--achter);
    border-radius: var(--borderknop);
    box-shadow: var(--schaduw);
    display: none;
    flex-direction: column;
    color: var(--textdonker);
    font-size: var(--size3);
    font-family: var(--font);
}

/* Open staat */
.filterdropdown.open {
    display: flex;
}

/* Material toggle knoppen */
.material-toggle-btn {
    background-color: var(--licht);
    color: var(--ipvwit);
    flex: 1;
    padding: var(--margstandard);
    border-radius: var(--borderknop);
    border: none;
    cursor: pointer;
    font-size: var(--size2);
    font-family: var(--font);
}

.material-toggle-btn.active {
    background-color: var(--hoofd);
    color: var(--textlicht);
}

/* =======================  FOTOWALL / MASONRY   ========================== */
.masonry-grid {
    column-count: 2;
    column-gap: 1rem;
}

.fotowall {
    padding-top: var(--fotowall-height);
    position: relative;
    margin-left: 12px;
    margin-right: 12px;
    padding-bottom: var(--bottom-nav-height);
}

.tutorial-card {
    position: relative;
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--borderfoto);
    box-shadow: var(--schaduw);
    overflow: visible;
    color: var(--textdonker);
    font-family: var(--font);
    font-size: var(--size1);
}

.tutorial-card>img {
    width: 100%;
    display: block;
    border-radius: var(--borderfoto);
}

.overlay-make {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: var(--textlicht);
    color: var(--donker);
    padding: 6px;
    border-radius: var(--borderfoto);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.overlay-row img {
    width: 18px;
}

.favorite-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: var(--ipvwit);
    border-radius: 50%;
    box-shadow: var(--schaduw);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.favorite-btn img {
    width: 30px;
    height: 30px;
}

.favorite-btn:active {
    transform: scale(0.9);
}

/* =========================  MAKE PAGINA  ========================== */

.tut-photo {
    width: 90%;
    margin: 12px;
    object-fit: cover;
    object-position: center center;
    overflow: hidden;
    border-radius: var(--borderfoto);
    box-shadow: var(--schaduw);
}

.image-crop {
    height: auto;
    max-height: 400px;
}

.image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.maker-block {
    display: flex;
    margin: 12px;
    left: 10px;
    font-size: var(--size2);
    color: var(--textdonker);
}

/* ====================== FAVORIETEN LIJST ======================== */
.favorites-list {
    display: flex;
    flex-direction: column;
    padding: 5px;
    margin-bottom: 4px;
    width: 100%;
}

.favorite-card {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 12px 5px;
    width: 100%;
    border-radius: var(--borderknop);
    background: var(--ipvwit);
    box-shadow: var(--schaduw);
    transition: background-color 0.2s;
}

.favorite-image {
    flex: 0 0 25%;
    height: 100px;
    object-fit: cover;
    border-right: 1px solid var(--licht);
}

.favorite-info {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.favorite-title {
    font-weight: var(--zwaartekop);
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--textdonker);
}

.favorite-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--textmid);
}

.favorite-meta img {
    width: 18px;
    height: 18px;
}

.favorite-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    z-index: 5;
    background-color: var(--ipvwit);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--schaduw);
    cursor: pointer;
}

.favorite-remove img {
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 430px) {
    .favorite-card {
        flex-direction: row;
    }

    .favorite-image {
        height: 80px;
    }

    .favorite-info {
        padding: 6px 8px;
    }
}

/* ==============================  MAKEN  ============================= */
#draftsContainer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.main-image-preview {
    width: 250px;
    height: 250px;
    background: var(--hoofd);
    border-radius: var(--borderfoto);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font);
}

.step-image-preview {
    width: 160px;
    height: 160px;
    background: var(--hoofd);
    border-radius: var(--borderfoto);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font);
}

.plus-icon {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--textlicht);
}

.main-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-image-preview .plus-icon {
    font-size: 5rem;
    color: var(--textlicht);
}

.add-picture {
    height: 40%;
    width: 100%;
    padding: 10px;
    margin: 10px;
    color: var(--hoofd);
}

.make-section input {
    width: 100%;
    padding: 10px;
    border-radius: var(--borderknop);
    border: 1px solid var(--licht);
    font-size: var(--size2);
}

.make-form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.time-icon {
    width: 70px;
    height: auto;
}

.step-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: var(--mid);
    box-shadow: var(--schaduw);
    align-items: center;
}

.step-image {
    width: 25%;
    aspect-ratio: 1 / 1;
    background: var(--ipvwit);
    border-radius: 8px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-content {
    flex: 1;
}

.step-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hidden { display: none !important; }

/* =========================  BOTTOM SHEET MODAL  ========================== */
/* bottom-sheet modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* subtieler (app-gevoel) */
  background: rgba(0,0,0,0.25);

  display: flex;
  align-items: flex-end;     /* 👈 naar onder */
  justify-content: center;

  padding: 0;
}

.modal-card {
  width: 100%;
  max-width: 520px;

  /* sheet-gevoel */
  background: #fff;
  border-radius: 22px 22px 0 0;

  /* voelt als “paneel” */
  padding: 14px 14px 18px;

  /* in-app scroll */
  max-height: 80vh;
  overflow: auto;

  /* animatie */
  transform: translateY(100%);
  transition: transform 220ms ease;
}

/* als modal open is: sheet schuift omhoog */
.modal-overlay:not(.hidden) .modal-card {
  transform: translateY(0);
}

/* optioneel: subtiele 'grab handle' */
.modal-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  margin: 2px auto 10px;
  background: rgba(0,0,0,0.18);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
}

/* minder "web popup" */
.modal-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  display: flex;
  gap: 10px;
}

body.modal-open .app-wrapper {
  filter: blur(20px) brightness(0,8);
  transform: scale(0.99);
  transition: transform 180ms ease, filter 180ms ease;
}

.app-wrapper {
  transition: transform 180ms ease, filter 180ms ease;
}


/* ========================= friends  ========================== */
.friend-action-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: var(--size3);
    background: var(--mid);
    color: var(--textdonker);
}

.friend-action-btn.disabled {
    background: var(--mid);
}

.friend-bar {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 12px 5px;
    width: 100%;
    border-radius: var(--borderknop);
    background: var(--ipvwit);
    box-shadow: var(--schaduw);
    transition: background-color 0.2s;
}

.friend-bar.existing {
    background: var(--licht);
}

.friend-bar.existing .btn-licht-5 {
    display: none;
}

.friend-bar.existing .friend-status {
    display: inline;
}

.friend-avatar {
    position: relative;
    flex: 0 0 25%;
    max-width: 25%;
    cursor: pointer;
}

.friend-avatar img:first-child {
    width: 100%;
    border-radius: 50%;
    display: block;
}

.friend-avatar .level-icon {
    position: absolute;
    top: -5px;
    /* left: -5px; */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--ipvwit);
}

.friend-info {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font);
}

.friend-info strong {
    font-size: 2em;
    cursor: pointer;
    margin-bottom: 5px;
    color: var(--textdonker);
}

.friend-info .friend-btn {
    padding: 5px 10px;
    font-size: var(--size2);
    border: none;
    border-radius: 6px;
    background-color: var(--hoofd);
    color: var(--textlicht);
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.2s;
}

.friend-info .friend-btn:disabled {
    background-color: var(--licht);
    cursor: default;
}

.friend-info .friend-status {
    font-size: 0.9em;
    color: var(--textdonker);
}

/* ========================= INBOX PAGINA ========================== */
.inbox-item {
    position: relative;
    border-radius: 14px;
    padding: 0;
    margin: 10px 0;
    overflow: hidden;
}

.inbox-bar {
    position: relative;
    /* nodig voor NEW pill */
}

.inbox-new-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8em;
    background: var(--hoofd);
    color: var(--textdonker);
}


.inbox-avatar {
    width: 25%;
    max-width: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
}

.inbox-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inbox-meta {
    flex: 1;
}

.inbox-username {
    font-weight: 700;
}

.inbox-type {
    opacity: 0.7;
    font-size: 0.95em;
}

.inbox-detail {
    display: none;
    background: var(--ipvwit);
    padding: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.inbox-item.open .inbox-detail {
    display: block;
}

.inbox-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.inbox-actions button {
    flex: 1;
}

.inbox-other {
    margin-top: 10px;
    text-align: center;
}