/* ==========================================================================
   Yerleşimler: giriş ekranı, slider, duyurular, uygulama kabukları
   ========================================================================== */

/* ---------- Marka ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none !important;
}
.brand-mark {
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variation-settings: "opsz" 48;
}
.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.66;
}

/* ---------- Giriş ekranı ---------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}
.auth-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
}
.auth-visual .auth-brand {
  position: absolute;
  z-index: 4;
  top: 32px;
  left: 40px;
  color: #fff;
}
.auth-visual .auth-brand .brand-word {
  color: #fff;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 56px 56px 28px;
  background: var(--paper);
}
.auth-panel-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.auth-intro {
  margin-top: auto;
  padding-top: 24px;
}
.auth-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 120;
}
.auth-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-2);
  max-width: 36ch;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.auth-form .btn {
  margin-top: 4px;
}
.auth-help {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.auth-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Duyurular ---------- */
.news {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.news-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.news-head h2 svg {
  color: var(--clay-600);
}
.news-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.news-list {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.news-item {
  position: relative;
  padding: 14px 18px 15px;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child {
  border-bottom: 0;
}
.news-item.is-important {
  background: linear-gradient(90deg, var(--clay-50), rgba(251, 241, 234, 0) 70%);
}
.news-item.is-important::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--clay-600);
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-3);
}
.news-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.news-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--clay-700);
}
.news-item h3 {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.news-body {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.news-body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-700);
}
.news-empty {
  padding: 22px 18px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Slider ---------- */
.slider {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease), visibility 0s;
}
.slide-backdrop,
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide-backdrop {
  object-fit: cover;
  filter: blur(30px) saturate(1.1) brightness(0.55);
  transform: scale(1.15);
}
.slide-img {
  object-fit: contain;
}
.slide.fit-cover .slide-img {
  object-fit: cover;
}
.slide.fit-cover .slide-backdrop {
  display: none;
}
.slider-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 20, 17, 0.86) 0%, rgba(11, 20, 17, 0.38) 30%, rgba(11, 20, 17, 0) 55%),
    linear-gradient(180deg, rgba(11, 20, 17, 0.5) 0%, rgba(11, 20, 17, 0) 20%);
}
.slider-ui {
  position: absolute;
  z-index: 3;
  left: 40px;
  right: 40px;
  bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.slider-caption {
  max-width: 560px;
  min-width: 0;
}
.slider-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.66);
}
.slider-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.slider-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
}
.slider-caption > * {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.slider-caption.is-changing > * {
  opacity: 0;
  transform: translateY(6px);
}
.slider-controls {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.slider-arrows {
  display: flex;
  gap: 8px;
}
.slider-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(11, 20, 17, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s, border-color 0.15s;
}
.slider-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}
.slider-dots {
  display: flex;
  gap: 6px;
}
.slider-dot {
  position: relative;
  width: 30px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
}
.slider-dot::before,
.slider-dot span {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 2px;
  border-radius: 2px;
}
.slider-dot::before {
  right: 0;
  background: rgba(255, 255, 255, 0.3);
}
.slider-dot span {
  width: 0;
  background: #fff;
}
.slider-dot.is-done span {
  width: 100%;
}
.slider-dot.is-active span {
  animation: dot-fill var(--slide-duration, 6500ms) linear forwards;
}
.slider.is-paused .slider-dot.is-active span {
  animation-play-state: paused;
}
@keyframes dot-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.slider-fallback {
  position: absolute;
  inset: 0;
  background: var(--ink-950);
}
.slider-fallback svg {
  width: 100%;
  height: 100%;
}

/* ---------- Uygulama kabuğu (yönetim) ---------- */
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink-900);
  color: var(--ink-300);
  border-right: 1px solid var(--ink-950);
  z-index: 40;
}
.sidebar-brand {
  padding: 22px 22px 18px;
  color: #fff;
}
.sidebar-brand .brand-word {
  color: #fff;
  font-size: 21px;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 16px;
}
.nav-group + .nav-group {
  margin-top: 18px;
}
.nav-label {
  padding: 0 10px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--ink-300);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color 0.12s, color 0.12s;
}
.nav-link svg {
  color: var(--ink-400);
}
.nav-link:hover {
  background: var(--ink-850);
  color: #fff;
}
.nav-link.is-active {
  background: var(--ink-800);
  color: #fff;
}
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--leaf);
}
.nav-link.is-active svg {
  color: var(--leaf);
}
.nav-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ink-700);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
}
.sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--ink-800);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: #fff;
  text-align: left;
}
.sidebar-user:hover {
  background: var(--ink-850);
}
.sidebar-user .avatar {
  background: var(--ink-700);
  color: var(--leaf);
}
.sidebar-user small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-400);
}
.shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mobile-bar {
  display: none;
}
.page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 40px 64px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-head > .grow {
  flex: 1 1 340px;
}
.page-head .crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}
.crumbs a {
  color: var(--text-2);
}
.page-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}
.page-desc {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
  max-width: 68ch;
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar .input-icon {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
.toolbar .input {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ---------- Üye kabuğu ---------- */
.member-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 241, 234, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  height: 60px;
  margin: 0 auto;
  padding: 0 32px;
}
.topnav .brand-word {
  font-size: 20px;
}
.topnav-sep {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}
.topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 13.5px;
  font-weight: 500;
}
.user-chip:hover {
  background: var(--surface);
  border-color: var(--line);
}
.user-chip .avatar {
  width: 30px;
  height: 30px;
  background: var(--ink-900);
  color: var(--leaf);
}

/* ---------- Davet ekranı ---------- */
.invite-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: var(--paper);
}
.invite-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.invite-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--ink-900);
}
.invite-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.invite-cover .brand {
  position: absolute;
  left: 20px;
  top: 18px;
  color: #fff;
}
.invite-body {
  padding: 24px 28px 28px;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .auth {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
  }
  .auth-panel {
    padding: 44px 36px 24px;
  }
  .slider-ui {
    left: 28px;
    right: 28px;
  }
  .auth-visual .auth-brand {
    left: 28px;
  }
  .page {
    padding: 28px 28px 56px;
  }
}

@media (max-width: 860px) {
  .auth {
    display: block;
  }
  .auth-visual {
    position: relative;
    height: 54vh;
    min-height: 340px;
    max-height: 520px;
  }
  .auth-visual .auth-brand {
    top: 20px;
    left: 20px;
  }
  .slider-ui {
    left: 20px;
    right: 20px;
    bottom: 22px;
    gap: 16px;
  }
  .slider-text {
    display: none;
  }
  .slider-arrows {
    display: none;
  }
  .auth-panel {
    padding: 32px 20px 24px;
  }
  .auth-intro {
    margin-top: 0;
    padding-top: 0;
  }
  .auth-title {
    font-size: 30px;
  }

  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    transform: translateX(-100%);
    transition: transform 0.22s var(--ease);
  }
  .shell.nav-open .sidebar {
    transform: none;
    box-shadow: var(--shadow-pop);
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(11, 20, 17, 0.45);
  }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 12px;
    background: var(--ink-900);
    color: #fff;
  }
  .mobile-bar .brand-word {
    color: #fff;
    font-size: 19px;
  }
  .mobile-bar .btn-ghost {
    color: #fff;
  }
  .mobile-bar .btn-ghost:hover {
    background: var(--ink-800);
  }
  .page {
    padding: 22px 16px 48px;
  }
  .toolbar {
    padding: 12px;
  }
  .toolbar .input-icon {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar > .row {
    margin-left: 0 !important;
    width: 100%;
    flex-wrap: wrap;
  }
  .toolbar > .row > .select,
  .toolbar > .row > .btn {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
  }
  .page-title {
    font-size: 25px;
  }
  .topnav-inner {
    padding: 0 16px;
  }
  .topnav-sep,
  .topnav .brand-sub,
  .user-chip .chip-name {
    display: none;
  }
  .topnav-inner {
    gap: 8px;
  }
  .invite-body {
    padding: 22px 20px 24px;
  }
}
