/* ===============================
   BIOGRAPHY MODULE STYLES
   =============================== */

.bio-container {
  background: #111;
  padding: 1.5rem;
  border-radius: 12px;
  color: #fff;
}

/* Header */
.bio-header {
  border-bottom: 1px solid #222;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
}
.bio-title {font-size: 1.25rem;font-weight: 600;color: #fff;}
.bio-sub {display: block;font-size: .9rem;font-weight: 400;color: #bbb;margin-top: 4px;}
.bio-actions {display: flex;gap: .5rem;flex-wrap: wrap;}

/* Buttons */
.bio-btn-red {
  background: #d90404;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.2rem;
  color: #fff;
  font-weight: 500;
  transition: .2s;
}
.bio-btn-red:hover {background: #b10303;color: #fff;}
.bio-btn-white {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.2rem;
  color: #111;
  font-weight: 500;
  transition: .2s;
}
.bio-btn-white:hover {background: #ddd;color: #000;}

/* List */
#bioList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bio-item {
  background: linear-gradient(180deg,#1a1a1a 0%,#111 100%);
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
}
.bio-item:hover {transform: translateY(-2px);box-shadow: 0 4px 14px rgba(0,0,0,.5);}

/* Head row: title + actions */
.bio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #2a2a2a; /* hr benzeri çizgi */
}
.bio-title-text {
  flex: 1;
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bio-item .bio-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: nowrap;
}
.bio-item .bio-actions .btn {
  border-radius: 6px;
  padding: .25rem .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

/* body text -> 5 satır */
.bio-text {
  font-size: .95rem;
  line-height: 1.6;
  color: #ddd;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .5rem; /* çizgiden sonra boşluk */
}
.bio-text p {margin-bottom: .75rem;}
.bio-text p:last-child {margin-bottom: 0;}

/* Delete kırmızı çerçeve */
.btn-outline-custom {
  border: 1px solid #d90404 !important;
  color: #d90404 !important;
  background: transparent !important;
}
.btn-outline-custom:hover {background: #d90404 !important;color: #fff !important;}

/* Read beyaz buton */
.readBtn--white {
  border: 1px solid #fff !important;
  color: #fff !important;
  background: transparent !important;
}
.readBtn--white:hover {background: #fff !important;color: #111 !important;}

/* Modal */
.bio-modal {
  background: linear-gradient(180deg,#000 0%,#111 100%) !important;
  color: #fff;
  border-radius: 12px;
}
.bio-modal .modal-header,
.bio-modal .modal-body,
.bio-modal .modal-footer {
  background: transparent;
  border: none;
  color: #fff;
}
.bio-modal .modal-title {font-size: 1.2rem;font-weight: 600;color: #fff;}
.bio-modal .form-label {font-size: .9rem;font-weight: 500;color: #fff;margin-bottom: .4rem;}
.bio-input,
.bio-input:focus,
.bio-modal textarea,
.bio-modal input {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 8px;
  box-shadow: none !important;
}

/* Summernote dark */
.bio-modal .note-editor {background: #111 !important;border: 1px solid #333 !important;border-radius: 8px;color: #fff !important;}
.bio-modal .note-toolbar {background: #222 !important;border: none !important;}
.bio-modal .note-toolbar .btn {background: #333 !important;color: #fff !important;border: none !important;}
.bio-modal .note-toolbar .btn:hover {background: #d90404 !important;color: #fff !important;}
.bio-modal .note-editable {background: #111 !important;color: #fff !important;min-height: 200px;line-height: 1.6;}
.bio-modal .modal-footer .btn {border-radius: 8px;}

/* Read Modal typography */
#bioReadModal .modal-body {max-height: 65vh;overflow-y: auto;}
#bioReadModal h4 {font-size: 1.2rem;margin-bottom: 1rem;color: #fff;}
#bioReadModal p {line-height: 1.6;margin-bottom: .75rem;color: #ddd;}
#bioReadModal a {color: #0dcaf0;text-decoration: underline;}
#bioReadModal a:hover {color: #09a5c0;}

/* Responsive */
@media (min-width: 768px) {#bioList {grid-template-columns: 1fr 1fr;}}
@media (min-width: 1200px) {#bioList {grid-template-columns: 1fr 1fr 1fr;}}

/* Mobile fixes */
@media (max-width: 575.98px) {
  .bio-item .bio-actions .btn {
    min-width: 26px;
    height: 26px;
    font-size: 0.75rem;
    padding: 0.2rem;
  }
  .bio-title-text {
    font-size: 1rem;
    max-width: 65%;
  }
}
