.ya-communities-app,
.ya-community-detail {
  --ya-community-radius: 22px;
  color: var(--ya-text, #171717);
}

.ya-communities-app [hidden],
.ya-community-detail [hidden] {
  display: none !important;
}

/* Topluluk dizini */
.ya-communities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--ya-line, #dedcd5);
  background: var(--ya-surface, #fff);
}

.ya-communities-header > div:first-child { min-width: 0; }
.ya-communities-header span,
.ya-community-card__eyebrow,
.ya-community-featured header span,
.ya-community-hero__identity > span,
.ya-community-section-heading span,
.ya-community-about__main > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ya-accent-strong, #9a6c00);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ya-communities-header h1,
.ya-community-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.ya-communities-header p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--ya-muted, #6d6a63);
  line-height: 1.5;
}

.ya-communities-header .ya-primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ya-communities-header .ya-primary-button svg { width: 18px; height: 18px; }

.ya-communities-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--ya-line, #dedcd5);
  background: color-mix(in srgb, var(--ya-background, #f8f7f3) 94%, transparent);
  backdrop-filter: blur(14px);
}

.ya-community-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 999px;
  background: var(--ya-surface, #fff);
}

.ya-community-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ya-community-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.ya-community-tabs,
.ya-community-detail-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 999px;
  background: var(--ya-surface-soft, #f0efea);
}

.ya-community-tabs button,
.ya-community-detail-tabs button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ya-muted, #6d6a63);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ya-community-tabs button.is-active,
.ya-community-detail-tabs button.is-active {
  background: var(--ya-accent, #f4c536);
  color: var(--ya-text, #171717);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .14);
}

.ya-community-featured,
.ya-community-directory {
  padding: 22px;
}

.ya-community-featured {
  border-bottom: 1px solid var(--ya-line, #dedcd5);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ya-accent-soft, #fff3bf) 36%, #fff), var(--ya-background, #f8f7f3));
}

.ya-community-featured > header,
.ya-community-directory > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ya-community-featured h2,
.ya-community-directory h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.ya-community-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ya-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ya-community-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: var(--ya-community-radius);
  background: var(--ya-surface, #fff);
  box-shadow: 0 8px 24px rgba(25, 21, 12, .035);
}

.ya-community-card__main {
  color: inherit;
  text-decoration: none;
}

.ya-community-card--featured {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.ya-community-card--featured .ya-community-card__main {
  display: block;
}

.ya-community-card__cover {
  position: relative;
  height: 112px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 197, 54, .74), rgba(255, 245, 202, .8)),
    var(--ya-community-card-cover, none) center/cover no-repeat;
}

.ya-community-card__cover > span {
  position: absolute;
  left: 16px;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 4px solid var(--ya-surface, #fff);
  border-radius: 18px;
  background: var(--ya-accent-soft, #fff0b0);
  color: var(--ya-accent-strong, #9a6c00);
  box-shadow: 0 8px 20px rgba(25, 21, 12, .12);
}

.ya-community-card__cover img,
.ya-community-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-community-card__cover svg,
.ya-community-card__image svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.ya-community-card--featured .ya-community-card__content {
  padding: 34px 16px 16px;
}

.ya-community-card__content { min-width: 0; }

.ya-community-card__content > strong {
  display: block;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ya-community-card__content p {
  display: -webkit-box;
  margin: 7px 0 11px;
  overflow: hidden;
  color: var(--ya-muted, #6d6a63);
  font-size: .8rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ya-community-card__content > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  color: var(--ya-muted, #6d6a63);
  font-size: .68rem;
  font-weight: 700;
}

.ya-community-card__content > div span:last-child {
  flex-basis: 100%;
}

.ya-community-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 13px;
  border-top: 1px solid var(--ya-line, #dedcd5);
}

.ya-community-card__action .ya-primary-button,
.ya-community-card__action .ya-secondary-button {
  min-width: 86px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: .76rem;
}

.ya-community-card__enter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
}

.ya-community-card__enter svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ya-community-card--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ya-community-card--compact .ya-community-card__main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 14px;
}

.ya-community-card--compact .ya-community-card__image {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 17px;
  background: var(--ya-accent-soft, #fff0b0);
  color: var(--ya-accent-strong, #9a6c00);
}

.ya-community-card--compact .ya-community-card__content p {
  margin-bottom: 8px;
  -webkit-line-clamp: 1;
}

.ya-community-card--compact .ya-community-card__content > div span:last-child {
  flex-basis: auto;
}

.ya-community-card--compact .ya-community-card__action {
  align-self: stretch;
  justify-content: center;
  padding: 12px;
  border-top: 0;
  border-left: 1px solid var(--ya-line, #dedcd5);
}

.ya-community-state {
  padding: 30px 22px;
  color: var(--ya-muted, #6d6a63);
  text-align: center;
}

.ya-communities-app > .ya-load-more,
.ya-community-view > .ya-load-more {
  display: block;
  margin: 0 auto 26px;
}

/* Topluluk ayrıntısı */
.ya-community-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ya-line, #dedcd5);
  background: var(--ya-surface, #fff);
}

.ya-community-hero__cover {
  height: 146px;
  background:
    linear-gradient(135deg, rgba(244, 197, 54, .72), rgba(255, 244, 196, .76)),
    var(--ya-community-cover, none) center/cover no-repeat;
}

.ya-community-hero__body {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 0 26px 22px;
  transform: translateY(-28px);
  margin-bottom: -28px;
}

.ya-community-hero__icon {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  overflow: hidden;
  border: 5px solid var(--ya-surface, #fff);
  border-radius: 26px;
  background: var(--ya-accent-soft, #fff0b0);
  color: var(--ya-accent-strong, #9a6c00);
  box-shadow: 0 12px 28px rgba(30, 25, 10, .12);
}

.ya-community-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-community-hero__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.ya-community-hero__identity {
  min-width: 0;
  padding-top: 32px;
}

.ya-community-hero__identity h1 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.ya-community-hero__identity p {
  max-width: 650px;
  margin: 8px 0 10px;
  color: var(--ya-muted, #6d6a63);
  font-size: .9rem;
  line-height: 1.5;
}

.ya-community-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  color: var(--ya-muted, #6d6a63);
  font-size: .76rem;
}

.ya-community-hero__stats strong { color: var(--ya-text, #171717); }

.ya-community-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding-bottom: 3px;
}

.ya-community-detail-tabs {
  position: sticky;
  top: 0;
  z-index: 7;
  width: max-content;
  max-width: calc(100% - 36px);
  margin: 14px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ya-community-detail-tabs::-webkit-scrollbar { display: none; }

.ya-community-detail-body {
  width: min(920px, calc(100% - 36px));
  margin: 18px auto 34px;
}

.ya-community-view { min-width: 0; }

.ya-community-quick-compose {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 20px;
  background: var(--ya-surface, #fff);
}

.ya-community-quick-compose .ya-avatar,
.ya-community-composer .ya-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.ya-community-quick-compose__prompt {
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 999px;
  background: var(--ya-surface-soft, #f5f3ed);
  color: var(--ya-muted, #6d6a63);
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
}

.ya-community-quick-compose .ya-secondary-button {
  min-height: 40px;
  padding: 8px 13px;
  font-size: .76rem;
}

.ya-community-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 15px;
  margin-bottom: 16px;
  border: 1px solid var(--ya-accent, #f4c536);
  border-radius: 20px;
  background: var(--ya-surface, #fff);
  box-shadow: 0 10px 28px rgba(25, 21, 12, .06);
}

.ya-community-composer textarea {
  width: 100%;
  min-height: 94px;
  box-sizing: border-box;
  resize: vertical;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.5;
}

.ya-community-composer footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--ya-line, #dedcd5);
}

.ya-community-composer footer span {
  margin-right: auto;
  color: var(--ya-muted, #6d6a63);
  font-size: .72rem;
}

.ya-community-composer .ya-text-button {
  border: 0;
  background: transparent;
  color: var(--ya-muted, #6d6a63);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.ya-community-composer .ya-form-message { margin-top: 8px; }

.ya-community-join-prompt {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--ya-accent, #f4c536);
  border-radius: 18px;
  background: var(--ya-accent-soft, #fff3bf);
}

.ya-community-join-prompt span {
  color: var(--ya-muted, #6d6a63);
  font-size: .82rem;
}

.ya-community-feed {
  display: grid;
  gap: 13px;
}

.ya-community-feed .ya-feed-post {
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 20px;
  background: var(--ya-surface, #fff);
}

.ya-community-origin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 190px;
  color: var(--ya-accent-strong, #9a6c00);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
}

.ya-community-origin svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.ya-community-origin span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ya-community-pin-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ya-accent-soft, #fff3bf);
  color: var(--ya-accent-strong, #9a6c00);
  font-size: .65rem;
  font-weight: 900;
}

.ya-community-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ya-community-section-heading h2,
.ya-community-about h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ya-community-section-heading > strong {
  font-size: 1.35rem;
}

.ya-community-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.ya-community-member-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 17px;
  background: var(--ya-surface, #fff);
  color: inherit;
  text-decoration: none;
}

.ya-community-member-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.ya-community-member-card span { min-width: 0; }
.ya-community-member-card strong,
.ya-community-member-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ya-community-member-card strong { font-size: .86rem; }
.ya-community-member-card small { margin-top: 3px; color: var(--ya-muted, #6d6a63); font-size: .7rem; }

.ya-community-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: 18px;
  align-items: start;
}

.ya-community-about__main,
.ya-community-about aside section {
  padding: 22px;
  border: 1px solid var(--ya-line, #dedcd5);
  border-radius: 20px;
  background: var(--ya-surface, #fff);
}

.ya-community-about__main > div {
  margin-top: 14px;
  color: var(--ya-muted, #6d6a63);
  line-height: 1.7;
}

.ya-community-about aside {
  display: grid;
  gap: 12px;
}

.ya-community-about aside h3 {
  margin: 0 0 12px;
  font-size: .96rem;
}

.ya-community-about dl,
.ya-community-about dl div {
  margin: 0;
}

.ya-community-about dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ya-line, #dedcd5);
}

.ya-community-about dl div:last-child { border-bottom: 0; }
.ya-community-about dt { color: var(--ya-muted, #6d6a63); font-size: .74rem; }
.ya-community-about dd { margin: 0; font-size: .78rem; font-weight: 800; text-align: right; }
.ya-community-rules { color: var(--ya-muted, #6d6a63); font-size: .82rem; line-height: 1.65; }

/* Yönetici oluşturma penceresi */
.ya-community-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: var(--ya-surface, #fff);
  color: var(--ya-text, #171717);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.ya-community-dialog::backdrop {
  background: rgba(20, 18, 12, .48);
  backdrop-filter: blur(5px);
}

.ya-community-dialog form { display: grid; gap: 18px; padding: 24px; }
.ya-community-dialog header,
.ya-community-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ya-community-dialog header span { display: block; color: var(--ya-accent-strong, #9a6c00); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ya-community-dialog header strong { display: block; margin-top: 4px; font-size: 1.35rem; }
.ya-community-dialog header > button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ya-surface-soft, #f0efea); font-size: 1.5rem; cursor: pointer; }
.ya-community-dialog label { display: grid; gap: 7px; font-weight: 800; }
.ya-community-dialog input[type="text"],
.ya-community-dialog textarea,
.ya-community-dialog input[type="file"] { width: 100%; box-sizing: border-box; padding: 14px 15px; border: 1px solid var(--ya-line, #dedcd5); border-radius: 16px; background: var(--ya-surface-soft, #f7f5ef); color: inherit; font: inherit; }
.ya-community-dialog footer { justify-content: flex-end; }

@media (max-width: 980px) {
  .ya-community-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ya-community-card--featured:last-child { display: none; }
  .ya-community-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ya-communities-header {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 17px 18px;
  }

  .ya-communities-header .ya-primary-button { align-self: flex-start; }

  .ya-communities-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 12px;
  }

  .ya-community-search { width: auto; }
  .ya-community-tabs { overflow-x: auto; scrollbar-width: none; }
  .ya-community-tabs::-webkit-scrollbar { display: none; }

  .ya-community-featured,
  .ya-community-directory { padding: 15px 12px; }
  .ya-community-featured__grid,
  .ya-community-grid { grid-template-columns: 1fr; }
  .ya-community-card--featured:last-child { display: grid; }

  .ya-community-card--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .ya-community-card--compact .ya-community-card__action {
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--ya-line, #dedcd5);
    border-left: 0;
  }

  .ya-community-hero__cover { height: 108px; }
  .ya-community-hero__body {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
    padding: 0 15px 18px;
    transform: translateY(-22px);
    margin-bottom: -22px;
  }
  .ya-community-hero__icon { width: 74px; height: 74px; border-width: 4px; border-radius: 21px; }
  .ya-community-hero__identity { padding-top: 27px; }
  .ya-community-hero__identity h1 { font-size: 1.75rem; }
  .ya-community-hero__identity p { font-size: .82rem; }
  .ya-community-hero__actions { grid-column: 1 / -1; justify-content: stretch; padding: 0; }
  .ya-community-hero__actions > * { flex: 1 1 130px; text-align: center; }

  .ya-community-detail-tabs {
    justify-content: flex-start;
    width: calc(100% - 24px);
    max-width: none;
    margin-top: 11px;
  }

  .ya-community-detail-body {
    width: calc(100% - 24px);
    margin-top: 13px;
  }

  .ya-community-quick-compose {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px;
  }
  .ya-community-quick-compose .ya-avatar,
  .ya-community-composer .ya-avatar { width: 38px; height: 38px; }
  .ya-community-quick-compose .ya-secondary-button { grid-column: 2; justify-self: start; }
  .ya-community-composer { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
  .ya-community-member-grid { grid-template-columns: 1fr; }
  .ya-community-about { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .ya-community-tabs button,
  .ya-community-detail-tabs button { padding-inline: 12px; font-size: .74rem; }
  .ya-community-card__content > div span:last-child { flex-basis: 100%; }
  .ya-community-dialog form { padding: 18px; }
  .ya-community-hero__body { grid-template-columns: 64px minmax(0, 1fr); }
  .ya-community-hero__icon { width: 64px; height: 64px; border-radius: 18px; }
  .ya-community-hero__identity h1 { font-size: 1.55rem; }
  .ya-community-hero__stats { gap: 5px 10px; font-size: .7rem; }
  .ya-community-composer footer { flex-wrap: wrap; }
}
