/* ==========================================================================
   Asgaros Forum
   Wrapper: #af-wrapper (id selectors are strong enough, no .elementor prefix).
   Asgaros forces its text/link colours with !important (Forum → Weergave),
   so colour rules for titles, menu links and buttons need !important too.
   Keep the colour settings in Forum → Weergave; leave its "Aangepaste CSS" empty.
   ========================================================================== */

/* ---------- Base + width ---------- */
#af-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
  box-sizing: border-box;
  font-family: var(--font-body);
  color: var(--navy);
}
@media (max-width: 600px) {
  #af-wrapper {
    padding-top: 20px;
    padding-bottom: 64px;
  }
}

/* ---------- Page title: red ---------- */
#af-wrapper h1.main-title,
#af-wrapper .main-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
  color: var(--red-text) !important;
}

/* ---------- Forum menu bar ---------- */
#af-wrapper #forum-header {
  border-radius: var(--radius-l);
}

#af-wrapper #forum-navigation a,
#af-wrapper #forum-navigation a:visited {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
  color: var(--cream) !important;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s;
}
#af-wrapper #forum-navigation a:hover,
#af-wrapper #forum-navigation a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow) !important;
  text-decoration: none !important;
}

/* ---------- Search box ---------- */
#af-wrapper #forum-search {
  position: relative;
  width: 260px;
  height: 44px;
  line-height: 44px;
  margin: 10px 10px 10px 0;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
#af-wrapper #forum-search:focus-within {
  box-shadow: 0 0 0 3px var(--yellow);
}
#af-wrapper #forum-search .search-icon {
  margin-left: 16px;
  color: var(--stone);
}
#af-wrapper #forum-search input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
}
@media (max-width: 600px) {
  #af-wrapper #forum-search {
    float: none;
    width: auto;
    margin: 0 10px 10px;
  }
}

/* ---------- Category headers + blocks ---------- */
#af-wrapper .title-element {
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  font-weight: 600;
  letter-spacing: 0.08em;
}
#af-wrapper .content-container {
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  overflow: hidden;
  margin-bottom: 32px;
}

/* ---------- Forum and topic titles ---------- */
#af-wrapper .forum-title,
#af-wrapper .forum-title:visited,
#af-wrapper .topic-title a {
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  text-decoration: none;
}
#af-wrapper .forum-title:hover,
#af-wrapper .topic-title a:hover {
  color: var(--red-text);
}

/* ---------- Buttons: pill, text + icon centered ---------- */
#af-wrapper a.button,
#af-wrapper [class*="button-"],
#af-wrapper input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  min-height: 40px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  line-height: 1.2;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  vertical-align: middle;
  transition:
    background 0.15s,
    color 0.15s;
}
#af-wrapper [class*="button-"] .fas,
#af-wrapper [class*="button-"] .far,
#af-wrapper [class*="button-"] i {
  margin: 0;
  line-height: 1;
}

/* Colors: !important because Asgaros forces its link color on <a> buttons */

/* Main action: navy */
#af-wrapper a.button-normal,
#af-wrapper .button-normal,
#af-wrapper input[type="submit"] {
  background: var(--navy) !important;
  color: #ffffff !important;
}
#af-wrapper a.button-normal:hover,
#af-wrapper .button-normal:hover,
#af-wrapper input[type="submit"]:hover {
  background: var(--red-strong) !important;
  color: #ffffff !important;
}

/* Red: cancel, delete */
#af-wrapper a.button-red,
#af-wrapper .button-red {
  background: var(--red-strong) !important;
  color: #ffffff !important;
}
#af-wrapper a.button-red:hover,
#af-wrapper .button-red:hover {
  background: var(--red) !important;
  color: #ffffff !important;
}

/* Moderation (move, sticky, open/close): slate grey, white text */
#af-wrapper a.button-neutral,
#af-wrapper .button-neutral {
  background: #4a5661 !important;
  color: #ffffff !important;
}
#af-wrapper a.button-neutral:hover,
#af-wrapper .button-neutral:hover {
  background: var(--navy) !important;
  color: var(--yellow) !important;
}

/* Icons in buttons take the text color */
#af-wrapper .button .menu-icon,
#af-wrapper [class*="button-"] .menu-icon {
  color: inherit !important;
  margin: 0;
}

/* ---------- Form fields ---------- */
#af-wrapper input[type="text"],
#af-wrapper textarea {
  padding: 12px 14px;
  border-radius: var(--radius-s);
  font-size: 16px;
}
#af-wrapper input[type="text"]:focus,
#af-wrapper textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--yellow);
  outline: none;
}
