/* Algemene reset en basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #2e3440;
    /* donkergrijs/blauwachtig */
    color: #e1eaff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #164a8a;
    /* donkerblauw */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(22, 74, 138, 0.7);
}

.header-left {
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 1.1px;
    cursor: default;
}

.header-right a {
    color: #e1eaff;
    margin-left: 2rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.header-right a:hover {
    color: #83c0ff;
}

/* Main content container */
main {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Form container - login/register */
.form-container {
    max-width: 320px;
    /* Iets smaller */
    margin: 2.5rem auto;
    background-color: #3c506c;
    /* iets minder fel, zachtere donkerblauw */
    padding: 2.2rem 2.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(60, 80, 108, 0.85);
    color: #d6defa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Formulier */
form {
    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #f0f4ff;
    letter-spacing: 1px;
    font-size: 1.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #cad4f7;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
    padding: 0.65rem 0.9rem;
    margin-bottom: 1.3rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    outline: none;
    background-color: #344a73;
    color: #e1eaff;
    box-shadow: inset 0 1.5px 4px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus {
    box-shadow: 0 0 8px 3px #7aa7f7;
    background-color: #3f598f;
}

button {
    background-color: #4f73d1;
    /* zachter blauw */
    color: #f0f4ff;
    font-weight: 700;
    padding: 0.85rem 0;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 1.15rem;
    transition: background-color 0.4s ease, transform 0.2s ease;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

button:hover {
    background-color: #6d8ee6;
    transform: scale(1.04);
}

.form-container p {
    margin-top: 1.8rem;
    color: #a5b4e4;
    text-align: center;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-container p a {
    color: #9fc0ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.35s ease;
}

.form-container p a:hover {
    text-decoration: underline;
    color: #c9d9ff;
}

/* Voor mobiel iets beter */
@media (max-width: 400px) {
    .form-container {
        width: 90%;
        padding: 1.8rem 2rem;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        margin-top: 0.7rem;
    }

    .header-right a {
        margin-left: 1rem;
    }
}

.features {
  max-width: 960px;
  margin: 4rem auto 6rem;
  padding: 0 1rem;
  color: #d6defa;
  text-align: center;
}

.features h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #c0d6ff;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(22, 74, 138, 0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tiles {
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.tile {
  background-color: #3b4a6b; /* jouw donkerblauwe kleur */
  flex: 1 1 30%;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(59, 74, 107, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(83, 110, 160, 0.85);
}

.tile h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #a3c0ff;
  text-shadow: 0 0 3px rgba(123, 164, 255, 0.6);
}

.tile p {
  font-size: 1rem;
  line-height: 1.4;
  color: #d6defa;
}

/* Responsive - mobiel onder elkaar */
@media (max-width: 720px) {
  .tiles {
    flex-direction: column;
  }
  .tile {
    flex: 1 1 100%;
    margin-bottom: 1.6rem;
  }
}
/* Store pagina styling */
main.store-main {
    max-width: 960px;
    margin: 3rem auto 4rem;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    color: #d6defa;
}

section.store-product {
    background-color: #3b4a6b;
    /* jouw donkerblauwe kleur consistent met .tile */
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(59, 74, 107, 0.8);
    padding: 1.8rem 2rem;
    flex: 1 1 300px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

section.store-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(83, 110, 160, 0.85);
}

section.store-product h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #a3c0ff;
    text-shadow: 0 0 4px rgba(123, 164, 255, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

section.store-product p {
    font-size: 1rem;
    line-height: 1.4;
    color: #d6defa;
    white-space: pre-wrap;
    /* zorgt dat nl2br netjes werkt */
    flex-grow: 1;
    margin-bottom: 1.8rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

section.store-product form {
    margin-top: auto;
}

section.store-product button {
    background-color: #4f73d1;
    color: #f0f4ff;
    font-weight: 700;
    padding: 0.75rem 0;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.35s ease, transform 0.2s ease;
    letter-spacing: 0.04em;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

section.store-product button:hover {
    background-color: #6d8ee6;
    transform: scale(1.05);
}

/* Responsive voor store */
@media (max-width: 720px) {
    main.store-main {
        flex-direction: column;
        align-items: center;
    }

    section.store-product {
        max-width: 90%;
        margin-bottom: 1.6rem;
    }
}