@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f1ea;
  --ink: #1b1f23;
  --muted: #6b5f57;
  --accent: #d62828;
  --accent-dark: #a11f1f;
  --card: #ffffff;
  --line: #e1d6ca;
  --tag-green: #2f7d4e;
  --tag-red: #b23b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f8f2ea 0%, #f6f1ea 45%, #f2ede6 100%);
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  margin: 0 0 0.6rem 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.container.admin-shell {
  width: min(1560px, 96%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  flex-wrap: nowrap;
}

.site-header {
  position: relative;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-mobile {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav-mobile label {
  display: inline-flex;
  margin-bottom: 0;
}

.mobile-link,
.mobile-write {
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  height: 34px;
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  gap: 0.4rem;
  padding: 0 0.7rem;
  width: auto;
  height: 34px;
}

.mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  height: 34px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.menu-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(27, 31, 35, 0.12);
}

.mobile-section {
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 0.6rem;
}

.mobile-section-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.mobile-section-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.mobile-filter-group label {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

.mobile-filter-group select {
  width: 100%;
}

.mobile-list-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
}

.mobile-list-item:hover {
  background: #f7efe6;
}

.mobile-list-count {
  min-width: 36px;
  height: 28px;
  border-radius: 999px;
  background: #f1e4d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.mobile-list-title {
  flex: 1;
}

.mobile-menu a {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
}

.mobile-menu a:hover {
  background: #f7efe6;
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-auth-title {
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.2rem;
}

.admin-shell {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.admin-sidebar {
  width: 230px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(27, 31, 35, 0.08);
  position: sticky;
  top: 1rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.admin-nav a {
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-weight: 500;
}

.admin-nav a:hover {
  background: #f7efe6;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.brand-toggle {
  display: none;
  margin-left: auto;
}

.nav a {
  font-weight: 500;
}

.nav-desktop a {
  font-size: 0.93rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-desktop a:hover {
  background: #f7efe6;
}

.nav-desktop .btn,
.nav-mobile .btn,
.nav-mobile .mobile-toggle {
  padding: 0.4rem 0.6rem;
}

@media (max-width: 980px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    position: static;
    order: -1;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }

  .admin-nav a {
    margin: 0;
    background: #f7efe6;
  }
}

@media (max-width: 860px) {
  .sidebar {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
    padding-bottom: 0.48rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    padding: 0.64rem 0;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand a {
    min-height: 34px;
    align-items: flex-start;
  }

  .brand span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-top: -2px;
  }

  .brand-logo {
    height: 32px;
    margin-top: -2px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: inline-flex;
    width: 100%;
    justify-content: flex-start;
    gap: 0.2rem;
    margin-left: 0;
  }

  .brand-toggle {
    display: inline-flex;
  }

  #mobile-rahatsizlik-toggle:checked ~ .nav .mobile-menu-trigger {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
  }

  #mobile-rahatsizlik-toggle:checked ~ .mobile-menu-complaints,
  #mobile-menu-toggle:checked ~ .mobile-menu-links {
    display: flex;
    margin-top: 0.6rem;
  }
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0.4rem;
  top: 100%;
}

.dropdown-toggle {
  margin-left: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(27, 31, 35, 0.12);
  padding: 0.4rem;
  margin-top: 0.2rem;
  display: none;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: #f7efe6;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.hero {
  background: linear-gradient(135deg, #ffe5cf 0%, #fdf2e8 60%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(27, 31, 35, 0.08);
  margin-bottom: 2rem;
}

.banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: #f7efe6;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cropper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7efe6;
  position: relative;
  margin-bottom: 0.8rem;
}
.cropper-square {
  aspect-ratio: 1 / 1;
  max-width: 220px;
}

.cropper img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  cursor: grab;
}
.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(27, 31, 35, 0.06);
}
.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f2e7dc;
  background: #f8f1ea;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.list-item {
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.list-link {
  display: block;
  color: inherit;
}
.solution-link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.solution-body {
  flex: 1;
}

.solution-votes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 64px;
  align-items: center;
  font-weight: 700;
  color: var(--ink);
}

.solution-votes .vote-up,
.solution-votes .vote-down {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: #fbf4ee;
}

.solution-votes .vote-up {
  color: #2f7d4e;
}

.solution-votes .vote-down {
  color: #b23b3b;
}

.solution-complaint-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: #fbf4ee;
  transform: translateX(2px);
}

.list-numbered {
  counter-reset: item;
}

.list-numbered .list-item {
  counter-increment: item;
  display: flex;
  gap: 0.8rem;
}

.list-numbered .list-item::before {
  content: counter(item);
  font-weight: 700;
  min-width: 2rem;
  text-align: center;
  color: var(--muted);
  background: #f2e7dc;
  border-radius: 10px;
  padding: 0.2rem 0.4rem;
  height: fit-content;
}

.list-metric {
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(214, 40, 40, 0.12);
  color: var(--accent-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.list-title {
  margin-top: 0.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-solution {
  background: #2f7d4e;
  color: #ffffff;
}

.btn-solution:hover {
  background: #24623d;
}

.btn-like {
  background: #2f7d4e;
  color: #ffffff;
}

.btn-like:hover {
  background: #24623d;
}

input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-family: inherit;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-green {
  background: rgba(47, 125, 78, 0.12);
  color: var(--tag-green);
}

.tag-red {
  background: rgba(178, 59, 59, 0.12);
  color: var(--tag-red);
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(178, 59, 59, 0.12);
  color: var(--tag-red);
}

.alert-success {
  background: rgba(47, 125, 78, 0.12);
  color: var(--tag-green);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-active {
  background: #f2e7dc;
  border-color: #f2e7dc;
}
.tab-solution {
  border-color: #2f7d4e;
  color: #2f7d4e;
}

.tab-solution.tab-active {
  background: rgba(47, 125, 78, 0.16);
  border-color: #2f7d4e;
  color: #24623d;
}

.solution-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(47, 125, 78, 0.18), rgba(47, 125, 78, 0.06));
  border: 1px solid rgba(47, 125, 78, 0.25);
}

.auth-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(214, 40, 40, 0.14), rgba(214, 40, 40, 0.04));
  border: 1px solid rgba(214, 40, 40, 0.2);
}

.auth-cta .btn {
  flex: 0 0 auto;
}

.vote-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.4rem;
}

.sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.sidebar .card {
  padding: 1.2rem;
}

.sidebar .list-item {
  padding: 0.6rem 0;
}

.sidebar .list-title {
  font-size: 0.95rem;
}

.sidebar .list-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar .list-count {
  flex: 0 0 3.8rem;
  text-align: center;
  font-weight: 700;
  background: rgba(214, 40, 40, 0.12);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.2rem 0;
  height: fit-content;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.sidebar-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.sidebar-filters label {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sidebar-filters select {
  margin-bottom: 0;
}

.sidebar select,
.sidebar input[type="date"] {
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  font-size: 0.85rem;
  background: #fbf4ee;
}

.sidebar .cog-panel label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sidebar .cog-panel input[type="date"],
.sidebar .cog-panel select {
  padding: 0.45rem 0.6rem;
  border-radius: 9px;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  background: #fbf4ee;
}

.sidebar .cog-panel .btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.sidebar .section-title {
  align-items: center;
}

.sidebar .cog-wrap {
  position: relative;
}

.sidebar .cog-btn {
  padding: 0.4rem 0.6rem;
}

.sidebar .cog-panel {
  position: absolute;
  top: 120%;
  right: 0;
  width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(27, 31, 35, 0.12);
  padding: 0.8rem;
  display: none;
  z-index: 20;
}

.sidebar .cog-panel.is-open {
  display: block;
}


.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav a {
    margin-left: 0;
    margin-right: 0.8rem;
  }
  .hero {
    padding: 1.6rem;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .auth-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-cta .btn {
    width: 100%;
  }
}
