/* recruit/assets/style.css */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top left, #e6f0ff, #f9fbff);
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2 {
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.form-label {
  font-weight: 500;
}

/* CKEditor height */
.ck-editor__editable_inline {
  min-height: 180px;
}

/* === SKILL SECTION GRID === */
.skill-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.skill-section .form-check {
  margin: 0;
}

/* === HEADER FLEXBOX === */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* === Responsive tweaks === */
@media (max-width: 576px) {
  h1 {
    font-size: 1.25rem;
    text-align: center;
    width: 100%;
  }

  h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .ck-editor__editable_inline {
    min-height: 120px;
  }

  .form-check-label,
  .form-label {
    font-size: 0.95rem;
  }

  .skill-section {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .btn-toggle-theme {
    width: 100%;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* === DARK MODE SUPPORT === */
[data-bs-theme="dark"] body {
  background: #121212;
  color: #f8f9fa;
}

[data-bs-theme="dark"] .ck-editor__editable {
  background-color: #1e1e1e !important;
  color: #f8f9fa !important;
  border-color: #444 !important;
}

[data-bs-theme="dark"] .ck.ck-toolbar {
  background-color: #2a2a2a !important;
  border-color: #444 !important;
}

[data-bs-theme="dark"] .ck.ck-toolbar .ck-button .ck-button__label,
[data-bs-theme="dark"] .ck.ck-toolbar .ck-button .ck-icon {
  color: #e9ecef !important;
  filter: brightness(1.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1e1e1e;
  color: #f8f9fa;
  border-color: #444;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #adb5bd;
}

[data-bs-theme="dark"] .form-check-label {
  color: #e9ecef;
}

[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .text-body-secondary {
  color: #ced4da !important;
}
