/* Profil sayfası */

body.page-profile {
  background: #f4f7f6;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .profile-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .profile-summary {
    grid-template-columns: 1fr;
  }
}

.profile-sum-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-sum-card__ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.profile-sum-card__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.profile-sum-card__val {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
}

.profile-panel__title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.prof-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prof-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.prof-field input,
.prof-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}

.prof-field textarea {
  min-height: 88px;
  resize: vertical;
}

.btn-prof-save {
  margin-top: 8px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.btn-prof-save:hover {
  filter: brightness(1.03);
}

.prof-pass {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 12px;
  background: #fafafa;
}

.prof-pass:focus-within {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.15);
}

.prof-pass__ico {
  font-size: 16px;
  opacity: 0.65;
  flex-shrink: 0;
}

.prof-pass input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
}

.prof-pass__toggle {
  flex-shrink: 0;
  width: 42px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.prof-pass__toggle:hover {
  background: #f3f4f6;
}

.btn-prof-pass {
  margin-top: 8px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-prof-pass:hover {
  filter: brightness(1.03);
}

@media (max-width: 768px) {
  .profile-sum-card {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .profile-panel {
    padding: 16px 14px 18px;
  }

  .profile-panel__title {
    font-size: 16px;
  }
}

/* Profil sekmeleri */
.profile-tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile-tabs__btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.profile-tabs__btn.is-active {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  background: #eef2ff;
  box-shadow: 0 0 0 2px rgba(93, 95, 239, 0.12);
}

.profile-view[hidden] {
  display: none !important;
}

/* Referanslar tablosu */
.ref-panel-wrap {
  margin-top: 18px;
}

.ref-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ref-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #e8ecef;
  flex-wrap: wrap;
}

.ref-panel__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.ref-panel__title-ico {
  font-size: 18px;
  opacity: 0.75;
}

.ref-panel__personal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: #1f2937;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ref-panel__personal:hover {
  background: #111827;
}

.ref-panel__personal.is-active {
  background: linear-gradient(90deg, #7c4dff, #6366f1);
}

.ref-table {
  overflow-x: auto;
}

.ref-table__head {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  min-width: 720px;
  background: #fafbfc;
  border-bottom: 1px solid #e8ecef;
}

.ref-table__col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid #e8ecef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
}

.ref-table__col:last-child {
  border-right: none;
}

.ref-table__col--sort {
  border: none;
  border-right: 1px solid #e8ecef;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.ref-table__col--sort:hover {
  background: #f1f5f9;
}

.ref-col-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.ref-col-ico--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.ref-col-ico--green {
  background: #dcfce7;
  color: #16a34a;
}

.ref-col-ico--blue {
  background: #dbeafe;
  color: #2563eb;
}

.ref-col-ico--orange {
  background: #ffedd5;
  color: #ea580c;
}

.ref-col-ico--pink {
  background: #fce7f3;
  color: #db2777;
}

.ref-col-ico--gray {
  background: #f1f5f9;
  color: #64748b;
}

.ref-sort-ico {
  font-size: 12px;
  opacity: 0.55;
  margin-left: 2px;
}

.ref-table__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 22px 16px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

.ref-table__empty-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  flex-shrink: 0;
}

.ref-table__body {
  min-width: 720px;
}

.ref-table__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  border-bottom: 1px solid #f1f5f9;
}

.ref-table__row:last-child {
  border-bottom: none;
}

.ref-table__cell {
  padding: 14px 10px;
  border-right: 1px solid #f1f5f9;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.ref-table__cell:last-child {
  border-right: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .ref-panel__head {
    padding: 14px 16px;
  }

  .ref-panel__personal {
    width: 100%;
    justify-content: center;
  }
}
