/* /css/profiel.css */

:root{
  --rc-font: Montserrat, sans-serif;

  /* brand */
  --rc-accent: #E1552C;            /* match site.css */
  --rc-accent-2: rgba(225,85,44,.16);

  --rc-dark: #3C2C2D;
  --rc-cream: #EDE4DD;
  --rc-light: #F7F7F7;

  /* UI */
  --rc-bg: linear-gradient(180deg, #fff, var(--rc-light));
  --rc-card: #ffffff;
  --rc-text: #0f172a;
  --rc-muted: rgba(15,23,42,.62);
  --rc-line: rgba(15,23,42,.12);

  --rc-radius: 18px;
  --rc-shadow: 0 14px 34px rgba(17,24,39,.10);
  --rc-shadow-soft: 0 10px 26px rgba(17,24,39,.08);

  /* container alignment met header/footer */
  --rc-container: min(1280px, calc(100% - 40px));
}

/* Base */
*{ box-sizing: border-box; }
html, body{ width:100%; overflow-x:hidden; }
body{
  font-family: var(--rc-font);
  background: var(--rc-bg);
  color: var(--rc-text);
}

/* ====== PORTAL WRAP (align with header/footer) ====== */
/* Root cause fix: constrain layout to the same width as site header/footer */
.rc-portal{
  width: var(--rc-container);
  margin-inline: auto;

  min-height: calc(100svh - var(--hdrH));
  padding: 18px 0; /* container heeft al z’n eigen margins via calc(100%-40px) */
  color: var(--rc-text);

  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

/* MOBILE TOPBAR */
.rc-topbar{
  display: none;
  position: sticky;
  top: calc(var(--hdrH) + 10px);
  z-index: 40;

  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);

  border: 1px solid var(--rc-line);
  border-radius: 14px;
  padding: 10px;
  align-items: center;
  gap: 10px;

  box-shadow: var(--rc-shadow-soft);
}

.rc-icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--rc-line);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
}

.rc-topbar-title{ display:flex; flex-direction:column; line-height:1.1; }
.rc-topbar-kicker{ font-size: 11px; color: var(--rc-muted); font-weight: 700; }
.rc-topbar-name{ font-size: 14px; font-weight: 800; }

/* SIDEBAR */
.rc-sidebar{
  background: linear-gradient(180deg, #fff, rgba(225,85,44,.05));
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  border: 1px solid var(--rc-line);
  padding: 14px;

  position: sticky;
  top: calc(var(--hdrH) + 18px);
  height: calc(100svh - var(--hdrH) - 36px);
  overflow: auto;
}

.rc-side-head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid var(--rc-line);
}

.rc-avatar{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;

  font-weight: 800;
  color: #fff;
  background:
    radial-gradient(240px 120px at 20% 30%, rgba(225,85,44,.45), rgba(225,85,44,0) 55%),
    linear-gradient(135deg, #2b3a67, var(--rc-accent));
  user-select: none;
}

.rc-side-hello{ font-size: 12px; color: var(--rc-muted); font-weight: 700; }
.rc-side-name{ font-size: 16px; font-weight: 800; }

.rc-nav{ padding: 12px 6px; display:flex; flex-direction:column; gap: 8px; }

.rc-nav-item{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 10px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;

  cursor: pointer;
  font-family: inherit;
  font-weight: 750; /* ↓ minder bold */
  color: var(--rc-text);
}

.rc-nav-ic{
  width: 26px;
  height: 26px;
  display:grid;
  place-items:center;
  border-radius: 10px;
  background: rgba(15,23,42,.06);
}

.rc-nav-item:hover{
  background: rgba(225,85,44,.06);
  border-color: rgba(225,85,44,.20);
}

.rc-nav-item.is-active{
  border-color: rgba(225,85,44,.35);
  background: rgba(225,85,44,.10);
}

.rc-side-foot{
  margin-top: auto;
  padding: 10px 6px 6px;
  border-top: 1px solid var(--rc-line);
}

/* CONTENT */
.rc-content{
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.rc-pagehead{
  background: #fff;
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow);
  border: 1px solid var(--rc-line);

  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;

  /* minder wit door subtiele top accent */
  position: relative;
  overflow: hidden;
}

.rc-pagehead::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rc-accent), rgba(225,85,44,.25));
}

.rc-h1{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.3px;
  font-weight: 800; /* ↓ minder bold */
}

.rc-sub{
  margin: 6px 0 0;
  color: var(--rc-muted);
  font-size: 13px;
  font-weight: 600;
}

.rc-page-actions{ display:flex; gap:10px; flex-wrap: wrap; }

/* Tabs */
.rc-tab{ display:none; }
.rc-tab.is-active{ display:block; }

/* GRID */
.rc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rc-grid-2{ grid-template-columns: 1fr 1fr; }

.rc-card-wide{ grid-column: 1 / -1; }

.rc-card{
  background: #fff;
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow-soft);
  border: 1px solid var(--rc-line);
  padding: 14px;
  min-width: 0;
  position: relative;
}

.rc-card-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rc-h2{
  margin: 0;
  font-size: 16px;
  font-weight: 800; /* ↓ minder bold */
}

.rc-pill{
  font-size: 12px;
  font-weight: 700; /* ↓ minder bold */
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  padding: 6px 10px;
  background:
    linear-gradient(180deg, rgba(225,85,44,.10), rgba(225,85,44,.04));
}

.rc-card-body{ min-width: 0; }

.rc-empty{
  color: var(--rc-muted);
  font-weight: 600;
  padding: 12px 0;
}

/* Lists */
.rc-list{ list-style: none; margin: 0; padding: 0; display:flex; flex-direction:column; gap: 6px; }
.rc-li{ border: 1px solid rgba(15,23,42,.10); border-radius: 14px; overflow:hidden; background: #fff; }
.rc-li-a{
  display:block;
  padding: 12px 12px;
  text-decoration: none;
  color: inherit;
}
.rc-li-a:hover{ background: rgba(225,85,44,.05); }
.rc-li-title{ font-weight: 750; font-size: 14px; }
.rc-li-sub{ color: var(--rc-muted); font-size: 12px; margin-top: 3px; font-weight: 600; }

/* Opgeslagen vacatures — compacte lijst */
.rc-sv-item {
  position: relative;
  list-style: none;
  border-bottom: 1px solid rgba(15,23,42,.07);
  display: flex;
  align-items: center;
}
.rc-sv-item:last-child { border-bottom: none; }
.rc-sv-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 40px 10px 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.rc-sv-link:hover { background: rgba(225,85,44,.04); }
.rc-sv-title {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1a1a2e;
}
.rc-sv-sub {
  font-size: 12px;
  color: var(--rc-muted);
  margin-top: 2px;
}
.rc-sv-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(15,23,42,.07);
  color: #666;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.rc-sv-del:hover { background: #e53935; color: #fff; }

/* Status pills in sollicitaties */
.rc-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.rc-status--green  { background: #e8f5e9; color: #2e7d32; }
.rc-status--orange { background: #fff3e0; color: #e65100; }
.rc-status--blue   { background: #e3f2fd; color: #1565c0; }
.rc-status--red    { background: #fce4ec; color: #c62828; }
.rc-status--grey   { background: #f0f0f0; color: #555; }

/* Type badge naast status pill */
.rc-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #f0f4ff;
  color: #3949ab;
  margin-right: 4px;
}

/* Articles */
.rc-articles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rc-art{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  display:flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(17,24,39,.07);
}

.rc-art-cover{
  height: 110px;
  background:
    radial-gradient(280px 140px at 25% 30%, rgba(225,85,44,.26), rgba(225,85,44,0) 60%),
    linear-gradient(135deg, #fff, var(--rc-light));
}
.rc-art-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.rc-art-body{ padding: 12px; display:flex; flex-direction:column; gap: 8px; min-width:0; }
.rc-art-title{ font-weight: 800; font-size: 14px; } /* ↓ */
.rc-art-excerpt{ color: var(--rc-muted); font-size: 12px; line-height: 1.35; font-weight: 600; }
.rc-art-cta{ font-weight: 800; color: var(--rc-accent); font-size: 12px; }

/* Form */
.rc-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rc-span-2{ grid-column: 1 / -1; }

.rc-field label{
  display:block;
  font-size: 12px;
  font-weight: 700; /* ↓ minder bold */
  color: rgba(15,23,42,.68);
  margin-bottom: 6px;
}

.rc-field input,
.rc-field textarea{
  width: 100%;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.rc-field input{ height: 44px; }

.rc-field textarea{
  resize: vertical;
  min-height: 92px;
}

.rc-field input:focus,
.rc-field textarea:focus{
  border-color: rgba(225,85,44,.55);
  box-shadow: 0 0 0 3px var(--rc-accent-2);
}

.rc-help{
  color: var(--rc-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  font-weight: 600;
}

.rc-actions-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rc-actions-right{ justify-content: flex-end; }

/* Buttons */
.rc-btn{
  height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  cursor: pointer;
  font-weight: 750; /* ↓ minder bold */
  font-family: inherit;
}

.rc-btn-primary{
  background: linear-gradient(135deg, var(--rc-accent), #ff6b3a);
  border-color: var(--rc-accent);
  color: #fff;
  box-shadow: 0 14px 26px rgba(225,85,44,.22);
}

.rc-btn-outline{
  background:#fff;
  border-color: rgba(225,85,44,.35);
  color: var(--rc-accent);
}

.rc-btn-ghost{
  background: transparent;
}

.rc-btn-danger{
  background:#fff;
  border-color: rgba(176,0,32,.35);
  color: #b00020;
}

.rc-btn:disabled{
  opacity: .7;
  cursor: not-allowed;
}

/* Msg */
.rc-msg{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 650; /* ↓ */
}
.rc-msg.err{ color:#b00020; }
.rc-msg.ok{ color:#0a7a2f; }

/* Photo */
.rc-photo{
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,.18);
  background:
    radial-gradient(260px 140px at 25% 30%, rgba(225,85,44,.18), rgba(225,85,44,0) 60%),
    rgba(15,23,42,.03);
  overflow: hidden;
  display:grid;
  place-items:center;
}

.rc-photo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.rc-photo-fallback{
  color: var(--rc-muted);
  font-weight: 700; /* ↓ */
}

/* Sections accordion */
.rc-sections{ display:flex; flex-direction:column; gap: 10px; margin-top: 8px; }
.rc-section-btn{
  width: 100%;
  text-align:left;
  border: 1px solid rgba(15,23,42,.12);
  background:
    linear-gradient(180deg, rgba(225,85,44,.06), rgba(15,23,42,.02));
  border-radius: 14px;
  padding: 12px 12px;
  font-family: inherit;
  font-weight: 750; /* ↓ */
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.rc-section-btn.is-open{
  border-color: rgba(225,85,44,.35);
  background: rgba(225,85,44,.10);
}
.rc-section-panel{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.rc-mini{ font-size: 12px; color: var(--rc-muted); font-weight: 700; }

/* Backdrop (mobile drawer) */
.rc-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 45;
}

/* Responsive */
@media (max-width: 980px){
  .rc-articles{ grid-template-columns: 1fr; }
  .rc-grid{ grid-template-columns: 1fr; }
  .rc-grid-2{ grid-template-columns: 1fr; }
  .rc-card-wide{ grid-column: auto; }
}

@media (max-width: 860px){
  :root{
    --rc-container: min(1280px, calc(100% - 24px));
  }

  .rc-portal{
    grid-template-columns: 1fr;
    padding: 0 0 12px;
  }

  /* topbar FIXED zodat Uitloggen altijd zichtbaar is */
  .rc-topbar{
    display: flex;
    position: fixed;
    top: var(--hdrH, 0px);
    left: 0;
    right: 0;
    z-index: 90;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: 10px 16px;
    margin: 0;
    background: rgba(255,255,255,.97);
  }

  /* ruimte zodat content niet onder topbar zit */
  .rc-content {
    padding-top: 68px;
  }

  /* sidebar als slide-in panel van links */
  .rc-sidebar{
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: min(300px, 85vw);
    transform: translateX(-100%);
    opacity: 1;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    background: #fff;
    border-right: 1px solid rgba(15,23,42,.10);
    box-shadow: 4px 0 30px rgba(0,0,0,.15);
    border-radius: 0;
    overflow-y: auto;
    padding-top: 60px;
  }

  .rc-sidebar.is-open{
    transform: translateX(0);
    pointer-events: auto;
  }

  .rc-backdrop:not([hidden]){
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 45;
    cursor: pointer;
  }

  .rc-pagehead{
    padding: 14px;
  }

  .rc-form-grid{ grid-template-columns: 1fr; }
  .rc-span-2{ grid-column: auto; }
}
