/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--ad-red);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(var(--ad-accent-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--ad-red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ad-navy);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: var(--ad-navy-light);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--ad-navy);
}

.btn-outline:hover {
  border-color: var(--ad-navy);
  background: var(--bg-muted);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

/* Kartlar */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-accent-top {
  border-top: 4px solid var(--ad-red);
}

.card-navy-top {
  border-top: 4px solid var(--ad-navy);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ad-red-soft);
  color: var(--ad-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ad-navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Hero Sağ Vitrin Kartı */
.hero-showcase-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #FFFFFF;
}

.hero-showcase-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #E2E8F0;
}

.showcase-list li:last-child {
  border-bottom: none;
}

/* Rozetler & Etiketler */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-navy {
  background: #E2E8F0;
  color: var(--ad-navy);
}

.badge-red {
  background: var(--ad-red-soft);
  color: var(--ad-red);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

/* Sektör Etiket Bulutu */
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sector-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ad-navy);
  box-shadow: var(--shadow-sm);
}

/* 6 Adımlı Yerleşik Form (Wizard) Stilleri */
.form-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.form-progress-header {
  background: var(--ad-navy);
  color: #FFFFFF;
  padding: 28px 32px;
}

.steps-indicator {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.step-dot {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.step-dot.active {
  background: var(--ad-red);
}

.step-dot.done {
  background: #34D399;
}

.form-body {
  padding: 36px 32px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ad-navy);
  margin-bottom: 6px;
}

.form-label .req {
  color: var(--ad-red);
}

.form-help {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ad-navy);
  box-shadow: 0 0 0 3px rgba(15, 36, 57, 0.08);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}

.choice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.choice-item:hover {
  border-color: var(--ad-navy-light);
  background: var(--bg-muted);
}

.choice-item input {
  margin-top: 4px;
  accent-color: var(--ad-red);
  transform: scale(1.15);
}

.kvkk-scroll-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  max-height: 290px;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.kvkk-scroll-box h4 {
  color: var(--ad-navy);
  margin: 10px 0 4px;
}

.form-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 28px;
}

/* Rehber Arama Çubuğu ve Üye Kartları */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.member-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ad-navy), var(--ad-red));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Modal Pencere */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 35, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Yönetici Tablosu */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-muted);
  color: var(--ad-navy);
  font-weight: 700;
  white-space: nowrap;
}

.alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}

.alert-box.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #FECACA;
}

.alert-box.success {
  display: block;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #BBF7D0;
}

@media (max-width: 960px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

/* Zengin metin içeriği: yayındaki sayfa ve yönetim editörü aynı görünümü paylaşır */
.site-page { max-width: 820px; margin: 0 auto; }
.rich-content { line-height: 1.8; color: var(--text-secondary); overflow-wrap: anywhere; }
.rich-content h2 { color: var(--ad-navy); font-size: 1.5rem; margin: 1.6em 0 .5em; }
.rich-content h3 { color: var(--ad-navy); font-size: 1.2rem; margin: 1.4em 0 .4em; }
.rich-content h4 { color: var(--ad-navy); font-size: 1.05rem; margin: 1.2em 0 .4em; }
.rich-content p { margin: 0 0 1em; }
.rich-content ul, .rich-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.rich-content li { margin: .25em 0; }
.rich-content blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 4px solid var(--ad-red); background: var(--bg-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-primary); }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: .6em 0; }
.rich-content a { color: var(--ad-red); text-decoration: underline; }
.rich-content hr { border: 0; border-top: 1px solid var(--border-color); margin: 1.6em 0; }
.site-page { max-width: 820px; margin: 0 auto; }
.ta-left { text-align: left; } .ta-center { text-align: center; } .ta-right { text-align: right; } .ta-justify { text-align: justify; }
[data-rich] > :first-child { margin-top: 0; }
[data-rich] p { margin: 0 0 .7em; }
[data-rich] p:last-child { margin-bottom: 0; }
[data-rich] ul, [data-rich] ol { margin: 0 0 .7em; padding-left: 1.3em; text-align: left; }
[data-rich] a { color: inherit; text-decoration: underline; }
[data-rich] h2, [data-rich] h3, [data-rich] h4 { margin: .8em 0 .3em; }
[data-rich] img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* Yer tutucu metinler dolu gibi görünmesin */
::placeholder { color: #a8b0bd; opacity: 1; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #eef0f3; color: #6b7280; cursor: not-allowed; }

/* Rehber kartı: ad iki satıra inse de avatar yuvarlak kalır */
.member-avatar { flex: none; }
.member-header { gap: 10px; }
.member-header > div { min-width: 0; }
.member-header h3 { overflow-wrap: anywhere; }

/* Ana sayfa hero görseli: yönetici bir görsel seçtiyse bağlantı ağı yerine o gösterilir */
.hero-visual { min-width: 0; }
.hero-visual .cms-hero-image:not([hidden]) + .adc-ag { display: none; }
.adc-serit-wrap { margin-top: 8px; }

/* Bağlantı görünümlü düğme (ikincil işlemler için) */
.link-button { padding: 4px 2px; border: 0; background: none; color: var(--ad-red); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.link-button:disabled { color: var(--text-muted); cursor: wait; }
/* Alana tıklanınca örnek metin kaybolur; kişi kendi yazdığını karıştırmaz */
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }

/* Panel oturumuyla salt okunur görünüm (kurucular): mezun hesabı isteyen işlem düğmeleri gösterilmez. */
.is-staff-view .city-social button,
.is-staff-view .city-social .badge,
.is-staff-view .city-social a[href="/profilim"],
.is-staff-view [data-qa-report],
.is-staff-view [data-follow-id],
.is-staff-view [data-friend-id],
.is-staff-view [data-cancel-id] { display: none !important; }
