/*
 * /komiteler — 15 TDP çalışma komitesi + tek ortak üyelik formu.
 * Grid is 2-kolon editorial (different tone from /tdp-ne-diyor/'s 5-kolon
 * vision grid); cards are click-through to /komiteler/?komite=<slug>
 * which preselects the dropdown in the embedded form.
 */

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* ---------- Breadcrumb (shared pattern) ---------- */

.breadcrumb-nav.tdp-crumb a {
  transition: color 0.15s ease;
}
.breadcrumb-nav.tdp-crumb a:hover,
.breadcrumb-nav.tdp-crumb a:focus-visible {
  color: #c41e3a;
  outline: none;
}

/* ---------- Committee grid ---------- */

.tdp-komiteler-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 991px) {
  .tdp-komiteler-grid { grid-template-columns: 1fr; gap: 16px; }
}

.tdp-komite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.1vw, 28px);
  background: #fff;
  border: 1px solid rgba(10, 10, 15, 0.06);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(10, 10, 15, 0.04);
  text-decoration: none;
  color: #0a0a0f;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.2s ease;
}
.tdp-komite-card:hover,
.tdp-komite-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: 0 24px 50px -24px rgba(10, 10, 15, 0.18);
  outline: none;
}

.tdp-komite-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(196, 30, 58, 0.55);
}

.tdp-komite-icon {
  width: 44px;
  height: 44px;
  background: rgba(196, 30, 58, 0.08);
  color: #c41e3a;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.tdp-komite-card:hover .tdp-komite-icon {
  background: #c41e3a;
  color: #fff;
}

.tdp-komite-title {
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #0a0a0f;
  padding-right: 40px; /* leave space for num chip */
}

.tdp-komite-brief {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 18px;
}

.tdp-komite-cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 10, 15, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c41e3a;
}
.tdp-komite-cta span:last-child {
  display: inline-block;
  transition: transform 0.2s ease;
}
.tdp-komite-card:hover .tdp-komite-cta span:last-child {
  transform: translateX(4px);
}

/* ---------- Form ---------- */

.tdp-komiteler-form .tdp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
@media (max-width: 640px) {
  .tdp-komiteler-form .tdp-form-grid { grid-template-columns: 1fr; }
}

.tdp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.tdp-form-field-wide { grid-column: 1 / -1; }

.tdp-form-field > span {
  font-weight: 700;
  color: #0a0a0f;
  letter-spacing: 0.2px;
}
.tdp-form-field em {
  color: #c41e3a;
  font-style: normal;
  margin-left: 2px;
}

.tdp-form-field input,
.tdp-form-field select,
.tdp-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0a0a0f;
  background: #fafbfd;
  border: 1px solid rgba(10, 10, 15, 0.1);
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.tdp-form-field textarea { resize: vertical; min-height: 100px; }

.tdp-form-field input:focus,
.tdp-form-field select:focus,
.tdp-form-field textarea:focus {
  outline: none;
  border-color: #c41e3a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.tdp-form-submit {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #c41e3a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tdp-form-submit:hover:not(:disabled),
.tdp-form-submit:focus-visible:not(:disabled) {
  background: #9a1730;
  transform: translateY(-2px);
  outline: none;
}
.tdp-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.tdp-form-submit span[aria-hidden] {
  transition: transform 0.2s ease;
}
.tdp-form-submit:hover:not(:disabled) span[aria-hidden] {
  transform: translateX(4px);
}

.tdp-form-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(196, 30, 58, 0.08);
  border-left: 3px solid #c41e3a;
  border-radius: 6px;
  color: #6b1021;
  font-size: 13.5px;
  line-height: 1.6;
}

.tdp-form-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(10, 10, 15, 0.5);
  line-height: 1.6;
}

/* ---------- Success state ---------- */

.tdp-komiteler-success {
  text-align: center;
  padding: 24px 8px;
}
.tdp-komiteler-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: rgba(196, 30, 58, 0.08);
  color: #c41e3a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.tdp-komiteler-success h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0a0a0f;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.tdp-komiteler-success p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .tdp-komite-card,
  .tdp-komite-card:hover,
  .tdp-komite-icon,
  .tdp-form-submit {
    transition: none !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}
