/* =================================
   SESİM — Ana tasarım
   ================================= */


:root {
  --navy: #172638;
  --navy-2: #223b53;
  --coral: #ff725e;
  --coral-dark: #e95e4d;
  --teal: #36b8a5;
  --paper: #f4f7fa;
  --ink: #172638;
  --muted: #687788;
  --line: #e3e9ef;
  --white: #ffffff;
  --shadow: 0 12px 35px rgba(23, 38, 56, .08);
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  cursor: pointer;
}


a {
  color: inherit;
  text-decoration: none;
}


/* ÜST MENÜ */


.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  box-shadow: 0 5px 20px rgba(23, 38, 56, .14);
}


.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}


.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  color: var(--white);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}


.brand-plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
}


.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}


.navlinks button {
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #e8eef4;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease;
}


.navlinks button:hover {
  color: var(--teal);
}


.userarea {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}


.user-greeting {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}


/* GENEL ALAN */


.container {
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto 70px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}


.btn:hover {
  transform: translateY(-2px);
}


.btn.primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(255, 114, 94, .2);
}


.btn.primary:hover {
  background: var(--coral-dark);
}


.btn.secondary {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}


.btn.ghost {
  border-color: rgba(255, 255, 255, .35);
  background: transparent;
  color: var(--white);
}


.btn.small {
  min-height: 39px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 13px;
}


.btn.full {
  width: 100%;
}


/* KARŞILAMA ALANI */


.hero {
  position: relative;
  min-height: 365px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: 48px 55px;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: var(--white);
  box-shadow: var(--shadow);
}


.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}


.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}


.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -2px;
}


.hero h1 span {
  color: var(--teal);
}


.hero-description {
  max-width: 620px;
  margin: 20px 0 25px;
  color: #d6e0e9;
  font-size: 16px;
  line-height: 1.8;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.soundmark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 190px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}


.soundmark span {
  display: block;
  color: var(--teal);
  font-size: 100px;
  line-height: 1;
  transform: rotate(-12deg);
}


/* İSTATİSTİKLER */


.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 48px;
}


.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}


.stat strong {
  font-size: 25px;
}


.stat span {
  font-size: 14px;
  color: var(--muted);
}


.stat .btn {
  width: 100%;
  max-width: 180px;
  white-space: normal;
  justify-content: center;
  text-align: center;
}


/* BAŞLIKLAR */


.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}


.section-heading .eyebrow {
  margin-bottom: 5px;
}


.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
}


/* HİKÂYE ALANI */


.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 25px;
  margin-bottom: 55px;
}


.feed {
  min-width: 0;
}


.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}


.chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: all .2s ease;
}


.chip:hover,
.chip.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}


.story-list {
  display: grid;
  gap: 16px;
}


.story-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}


.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(23, 38, 56, .11);
}


.storytop {
  display: flex;
  align-items: center;
  gap: 12px;
}


.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
  background: #eaf4f2;
  font-size: 25px;
}


.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.story-author {
  display: flex;
  flex-direction: column;
  min-width: 0;
}


.story-author strong {
  color: var(--navy);
  font-size: 14px;
}


.story-author span {
  color: var(--muted);
  font-size: 12px;
}


.tag {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 20px;
  background: #eaf7f5;
  color: #218b7d;
  font-size: 11px;
  font-weight: 800;
}


.story-title {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 19px;
}


.story-body {
  margin: 0;
  color: #536273;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}


.storyfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}


.support-btn,
.report-btn {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}


.support-btn {
  color: #218b7d;
}


.support-btn:hover {
  background: #eaf7f5;
}


.report-btn {
  color: var(--muted);
}


.report-btn:hover {
  background: #fff0ed;
  color: var(--coral-dark);
}


/* YAN PANEL */


.side {
  display: grid;
  gap: 16px;
}


.panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  box-shadow: var(--shadow);
}


.panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}


.panel p {
  color: var(--muted);
  font-size: 14px;
}


.panel .eyebrow {
  color: var(--teal);
}


.safety-list {
  display: grid;
  gap: 11px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}


/* TOPLULUK */


.community {
  margin: 55px 0;
}


.community-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  border: 1px solid #d7eee9;
  border-radius: 20px;
  background: linear-gradient(110deg, #e9f8f5, #ffffff);
}


.community-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 65px;
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: var(--white);
  font-size: 32px;
}


.community-preview h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 18px;
}


.community-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}


.status-note {
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 20px;
  background: #ffffff;
  color: #218b7d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}


/* ÖZELLİKLER */


.features {
  margin: 55px 0;
}


.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}


.feature {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  box-shadow: var(--shadow);
}


.emoji {
  display: block;
  margin-bottom: 13px;
  font-size: 31px;
}


.feature h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 18px;
}


.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}


/* ALT BİLGİ */


.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 35px 20px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}


.footer .brand {
  justify-self: auto;
}


.footer p {
  margin: 0;
  color: #d6e0e9;
  font-size: 14px;
}


.footer small {
  max-width: 600px;
  color: #aebdca;
  font-size: 12px;
}


/* MODAL */


.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 24, 37, .68);
}


.modal.open {
  display: flex;
}


.modal-box {
  position: relative;
  width: min(500px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .2);
}


.modal-box h2 {
  margin: 0 0 12px;
  color: var(--navy);
}


.modal-box p,
.modal-box li {
  color: var(--muted);
  font-size: 14px;
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f6;
  color: var(--navy);
  font-size: 25px;
}


.modal-box form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}


.modal-box label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}


.modal-box input,
.modal-box textarea,
.modal-box select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fbfcfd;
  color: var(--ink);
}


.modal-box input:focus,
.modal-box textarea:focus,
.modal-box select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(54, 184, 165, .12);
}


/* BİLDİRİM */


.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  max-width: calc(100% - 44px);
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all .25s ease;
}


.toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* TABLET */


@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 15px 0;
  }


  .navlinks {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
  }


  .userarea {
    grid-column: 2;
    grid-row: 1;
  }


  .layout {
    grid-template-columns: 1fr;
  }


  .side {
    grid-template-columns: repeat(2, 1fr);
  }


  .hero {
    padding: 38px;
  }


  .soundmark {
    flex-basis: 140px;
    width: 140px;
    height: 140px;
  }


  .soundmark span {
    font-size: 75px;
  }
}


/* TELEFON */


@media (max-width: 600px) {
  .nav {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
  }


  .brand,
  .userarea {
    justify-self: center;
  }


  .userarea {
    grid-column: 1;
    grid-row: auto;
  }


.navlinks {
  grid-column: 1;
  grid-row: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}


.navlinks button {
  font-size: 12px;
  padding: 9px 11px;
  white-space: nowrap;
}


  .navlinks button {
    font-size: 12px;
  }


  .container {
    width: calc(100% - 28px);
    margin-top: 18px;
  }


  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 23px;
    border-radius: 22px;
  }


  .hero h1 {
    font-size: 39px;
  }


  .hero-description {
    font-size: 14px;
  }


  .soundmark {
    align-self: center;
    flex-basis: 105px;
    width: 105px;
    height: 105px;
  }


  .soundmark span {
    font-size: 58px;
  }


  .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}


.stat {
  min-width: 0;
  padding: 12px 5px;
  gap: 8px;
  text-align: center;
}


.stat strong {
  font-size: 21px;
}


.stat span {
  font-size: 10px;
}


.stat .btn {
  width: 100%;
  min-width: 0;
  padding: 9px 4px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}

  .section-heading h2 {
    font-size: 23px;
  }


  .side,
  .feature-grid {
    grid-template-columns: 1fr;
  }


  .story-card {
    padding: 17px;
  }


  .storyfoot {
    align-items: flex-start;
  }


  .community-preview {
    flex-wrap: wrap;
    padding: 19px;
  }


  .status-note {
    margin-left: 0;
  }


  .modal-box {
    padding: 25px 20px;
  }
}
@media (max-width: 600px) {
  .hero .btn {
    width: 100%;
    justify-content: center;
  }


  .storyfoot {
    flex-wrap: wrap;
    gap: 10px;
  }


  .modal-box {
    width: calc(100% - 24px);
    max-height: 85vh;
    overflow-y: auto;
  }
}
/* Üst menü bağlantıları */
.navlinks button {
  font-size: 16px;
  font-weight: 800;
  padding: 12px 4px;
  letter-spacing: .2px;
}


.navlinks {
  gap: 30px;
}


/* Beyaz butonlar basıldığında koyulaşsın */
.btn.secondary:active,
.btn.ghost:active {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #ffffff;
  transform: scale(.97);
}
/* Yönetim paneli şikâyet butonu */
.modal-box button[onclick="loadReports()"] {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 12px 0;
}
/* Şikâyet edilen hikâyeyi yayından kaldır butonu */
.modal-box button[onclick^="hideReportedStory"] {
  background: #ff725e;
  color: #ffffff;
  border: 1px solid #ff725e;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 10px 0;
}
.modal-box button[onclick="loadHiddenStories()"] {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 12px 0;
}
.modal-box button[onclick="loadModerationLogs()"] {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 12px 0;
}
/* Hikâye onaylama butonu */
.modal-box button[onclick^="approveStory"] {
  background: #36b8a5;
  color: #ffffff;
  border: 1px solid #36b8a5;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 8px 4px;
}


/* Hikâye reddetme butonu */
.modal-box button[onclick^="rejectStory"] {
  background: #ff725e;
  color: #ffffff;
  border: 1px solid #ff725e;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin: 8px 4px;
}
/* Moderasyon onaylama butonu */
.modal-box button[onclick*="'approved'"] {
  background: #36b8a5 !important;
  color: #ffffff !important;
  border: 1px solid #36b8a5 !important;
}


/* Moderasyon reddetme butonu */
.modal-box button[onclick*="'rejected'"] {
  background: #ff725e !important;
  color: #ffffff !important;
  border: 1px solid #ff725e !important;
}
.conversation-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid #e3e9ef;
  background: #172638;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}


.conversation-action:hover {
  background: #22374d;
}


.conversation-end {
  background: #fff0ed;
  color: #d95343;
  border-color: #ffd2ca;
}


.conversation-end:hover {
  background: #ff725e;
  color: #ffffff;
}
#moderationList .story-card {
  background: #ffffff;
  color: #172638;
  border: 1px solid #e3e9ef;
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0;
}


#moderationList .story-card p,
#moderationList .story-card strong,
#moderationList .story-card small {
  color: #172638;
}
#moderationList .btn.ghost {
  background: #172638;
  color: #ffffff;
  border: 1px solid #172638;
}


#moderationList .btn.ghost:hover {
  background: #22374d;
  color: #ffffff;
}
.footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px !important;
  margin-top: 20px !important;
  width: 100%;
}


.footer-links a {
  display: inline-block;
  color: #36b8a5 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
}


.footer-links a:hover {
  color: #ff725e !important;
}
/* MOBİL EKRAN TAŞMA DÜZELTMESİ */
@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }


  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }


  .container,
  .nav,
  .hero,
  .stats,
  .features,
  .feature-grid,
  .side,
  .story-card,
  .modal-box {
    max-width: 100%;
    min-width: 0;
  }


  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  img,
  input,
  textarea,
  select {
    max-width: 100%;
  }
}