/* CMS modül sayfaları — rehber / haberler ile aynı modül dili */

.cms-module-page {
  padding-bottom: 2.5rem;
}

.cms-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cms-tabs {
  background: var(--gold-bar);
}

.cms-tabs-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cms-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.cms-tabs .tab-btn {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0.85rem 1.1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.cms-tabs .tab-btn:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.08);
}

.cms-tabs .tab-btn.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
  border-bottom-color: #fff;
}

.cms-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.cms-toolbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.cms-toolbar-meta {
  flex: 1 1 160px;
  min-width: 0;
}

.cms-result {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.cms-hint {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cms-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 420px;
  padding: 0.55rem 0.85rem;
  background: #f8f7f4;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: text;
}

.cms-search svg {
  flex-shrink: 0;
  color: var(--text-light);
}

.cms-search input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
  min-width: 0;
  outline: none;
}

.cms-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 2rem;
}

.cms-loading {
  text-align: center;
}

.cms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cms-grid--faq {
  gap: 0.65rem;
}

.cms-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.cms-item--urgent {
  border-left: 4px solid #c62828;
}

.cms-item--has-media {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.cms-item-media {
  background: #e8e4de;
  min-height: 140px;
}

.cms-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.cms-item-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.cms-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cms-item-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(154, 123, 79, 0.12);
  color: var(--gold-dark);
}

.cms-item-badge--urgent {
  background: #ffebee;
  color: #c62828;
}

.cms-item-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cms-item-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.cms-item-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cms-item-excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555;
}

.cms-item-footer {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.cms-item-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

/* SSS accordion */
.cms-faq-item {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cms-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.cms-faq-item summary::-webkit-details-marker {
  display: none;
}

.cms-faq-item summary::before {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(154, 123, 79, 0.12);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.cms-faq-item[open] summary::before {
  content: "−";
}

.cms-faq-item .cms-faq-answer {
  padding: 0 1.15rem 1rem 2.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #555;
}

.cms-faq-item .cms-faq-answer p {
  margin: 0 0 0.5rem;
}

/* Anket */
.cms-poll-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cms-poll-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cms-poll-option:hover {
  background: #f8f7f4;
}

.cms-poll-option input {
  accent-color: var(--gold);
}

/* Kapalı modül */
.cms-page--unavailable {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.cms-unavailable {
  max-width: 520px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.cms-unavailable-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c62828;
}

.cms-unavailable h1 {
  margin: 0 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.65rem;
}

.cms-unavailable p {
  margin: 0 0 1.25rem;
  color: #555;
  line-height: 1.6;
}

.cms-unavailable .btn-primary {
  display: inline-block;
  text-decoration: none;
}

@media (min-width: 720px) {
  .cms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cms-module-page--faq .cms-grid,
  .cms-grid--faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cms-item--has-media {
    grid-template-columns: 1fr;
  }
  .cms-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cms-search {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .cms-sticky {
    position: static;
    box-shadow: none;
  }

  .cms-main {
    padding-top: 0.85rem;
  }
}
