/* Tarım Aşığı — arayüz */
:root {
  --bg0: #f6f2ea;
  --bg1: #eef6ef;
  --paper: #fffdf8;
  --ink: #1b1917;
  --muted: #5c5852;
  --line: rgba(28, 25, 23, 0.12);
  --leaf: #1f5a32;
  --leaf2: #2a6b3c;
  --leaf-soft: rgba(31, 90, 50, 0.12);
  --gold: #c49a3c;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(24, 40, 28, 0.1);
  --shadow-sm: 0 4px 14px rgba(24, 40, 28, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 72rem;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.theme-root {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 90, 50, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(196, 154, 60, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

body.theme-root > *:not(.noise) {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf2);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--leaf);
}

h1,
h2,
h3,
.brand-text,
.footer-brand,
.price-lg,
.price {
  font-family: var(--font-display);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 30% 70% 60% 40% / 40% 50% 60% 50%;
  background: radial-gradient(circle at 30% 30%, #6bbf7a, var(--leaf));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), var(--shadow-sm);
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav > a {
  color: #3d3a36;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
}

.nav > a:hover {
  color: var(--leaf);
  text-decoration: underline;
}

.nav-admin {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 90, 50, 0.12);
  color: var(--leaf-dark) !important;
  font-weight: 700;
  font-size: 0.82rem;
}

.nav-admin:hover {
  background: rgba(31, 90, 50, 0.2);
}

.nav-user {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.25rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn {
    width: 100%;
    justify-content: center;
  }

  .nav form.inline {
    width: 100%;
  }

  .nav form.inline .btn {
    width: 100%;
  }

  .hide-sm {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
  }
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1rem 3.25rem;
}

@media (min-width: 640px) {
  .main {
    padding: 2.75rem 1.35rem 4rem;
  }
}

.hero {
  text-align: center;
  padding: 0.25rem 0 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  max-width: 44rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: balance;
}

.hero-actions {
  margin-top: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.section {
  margin-top: 3.25rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 640px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.more-link {
  font-size: 0.95rem;
  font-weight: 700;
}

.social-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--leaf);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(31, 90, 50, 0.35);
  text-decoration: none;
}

.video-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-body {
  padding: 1.05rem;
}

.video-title {
  font-size: 0.98rem;
  font-weight: 650;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display);
}

.video-meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 46rem;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.callout {
  background: var(--leaf-soft);
  border: 1px solid rgba(31, 90, 50, 0.2);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.96rem;
}

.notice {
  background: linear-gradient(180deg, #fff7e0, #fff1cc);
  border: 1px solid rgba(196, 154, 60, 0.45);
  color: #5c4518;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.notice code {
  background: rgba(255, 255, 255, 0.75);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.feed {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

@media (min-width: 640px) {
  .article-card {
    padding: 1.35rem;
  }
}

@media (min-width: 960px) {
  .article-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.75rem;
  }
}

.article-main h2 {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.embed-wrap {
  position: relative;
  width: 100%;
  background: #0f1412;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.embed-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.comments-aside {
  margin-top: 1.25rem;
}

@media (min-width: 960px) {
  .comments-aside {
    margin-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.35rem;
  }
}

.comments-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.comment-item {
  background: rgba(246, 242, 234, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.comment-body {
  margin: 0;
  font-size: 0.93rem;
  white-space: pre-wrap;
}

.comment-meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 5rem;
  background: #fff;
}

.comment-form textarea:focus {
  outline: 2px solid rgba(31, 90, 50, 0.35);
  outline-offset: 1px;
}

.comment-form button {
  margin-top: 0.55rem;
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--leaf2), var(--leaf));
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 90, 50, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33854a, #1a4e2c);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: rgba(255, 253, 248, 0.7);
  color: var(--leaf);
  border: 1.5px solid rgba(31, 90, 50, 0.45);
}

.btn-outline:hover {
  background: var(--leaf-soft);
  text-decoration: none;
}

.btn-muted {
  background: var(--paper);
  border: 1px solid var(--line);
  color: #3d3a36;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.96rem;
  width: 100%;
  border-radius: 999px;
}

@media (min-width: 640px) {
  .btn-lg {
    width: auto;
  }
}

.hide-sm {
  display: none;
}

@media (min-width: 820px) {
  .hide-sm {
    display: inline-flex;
  }
}

.inline {
  display: inline;
  margin: 0;
}

.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  padding: 2.75rem 1rem;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand {
  font-weight: 750;
  font-size: 1.15rem;
  color: var(--leaf);
  margin: 0;
}

.footer-desc {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 32rem;
}

.footer-heading {
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 0.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3d3a36;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.94rem;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #7b756c;
  margin: 2.25rem 0 0;
}

.listing-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.listing-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(31, 90, 50, 0.32);
  box-shadow: var(--shadow);
}

.listing-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e8e4dc;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.listing-body {
  padding: 1.05rem;
}

.listing-body h2 {
  margin: 0;
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin: 0.35rem 0 0;
  font-weight: 750;
  font-size: 0.98rem;
  color: var(--leaf);
}

.excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 2.75rem 1.25rem;
  border: 1px dashed rgba(28, 25, 23, 0.22);
  border-radius: calc(var(--radius) + 6px);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.6);
}

.back {
  margin: 0 0 1rem;
  font-weight: 700;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.detail-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e8e4dc;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 1.35rem 1.2rem 1.75rem;
}

@media (min-width: 640px) {
  .detail-body {
    padding: 1.75rem 1.75rem 2rem;
  }
}

.detail-body h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.price-lg {
  margin: 0.55rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--leaf);
}

.meta {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.prose {
  margin-top: 1.15rem;
  font-size: 1.02rem;
  color: #2f2c28;
}

.quota-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  background: linear-gradient(135deg, rgba(31, 90, 50, 0.1), rgba(196, 154, 60, 0.12));
  border: 1px solid rgba(31, 90, 50, 0.2);
}

.quota-card-warn {
  background: linear-gradient(135deg, rgba(180, 35, 24, 0.08), rgba(196, 154, 60, 0.15));
  border-color: rgba(180, 35, 24, 0.28);
}

.quota-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d3a36;
}

.quota-body {
  margin: 0.45rem 0 0;
  color: #2f2c28;
  font-size: 0.98rem;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-top: 1.1rem;
}

.stack-form.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-fieldset:disabled .btn-primary {
  filter: grayscale(0.25);
  opacity: 0.75;
}

.stack-form label {
  font-size: 0.88rem;
  font-weight: 750;
  color: #3d3a36;
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: #fff;
}

.stack-form input:focus,
.stack-form textarea:focus {
  outline: 2px solid rgba(31, 90, 50, 0.35);
  outline-offset: 1px;
}

.form-footer {
  text-align: center;
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 1rem;
}

.error-msg {
  background: rgba(180, 35, 24, 0.09);
  border: 1px solid rgba(180, 35, 24, 0.28);
  color: #7a1f18;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
