:root {
  --ink: #143139;
  --paper: #f6f6f0;
  --white: #ffffff;
  --line: #d4ded8;
  --lime: #d9ef50;
  --cyan: #75ddd1;
  --orange: #ffb273;
  --muted: #5e7075;
  --red: #ae4234;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, 'Times New Roman', serif; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin: auto; }
.site-header { position: relative; color: #fff; background: var(--ink); border-bottom: 5px solid var(--lime); z-index: 100; }
.topbar { min-height: 73px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; color: #fff; font-size: 25px; font-weight: bold; text-decoration: none; }
.brand b { color: var(--lime); }
.site-nav { display: flex; flex: 1; gap: 21px; }
.site-nav a { color: #d6e4df; font: 13px Arial, sans-serif; text-decoration: none; transition: color .15s; }
.site-nav a.active, .site-nav a:hover { color: var(--lime); }
.member-link, .admin-link { padding: 9px 11px; color: var(--ink); background: var(--lime); font: 700 11px Arial, sans-serif; text-decoration: none; white-space: nowrap; border-radius: 2px; }
.member-link { color: #eff7f1; background: transparent; border: 1px solid #638087; }
.user-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.logout-link { padding: 8px 11px; color: #fca5a5; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); font: 700 11px Arial, sans-serif; text-decoration: none; white-space: nowrap; border-radius: 2px; transition: all .15s ease; }
.logout-link:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Mobil Hamburger Menü */
.mobile-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #ffffff; transition: transform .2s, opacity .2s; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer { display: none; background: #0e242a; border-top: 1px solid #234d58; padding: 16px 20px 24px; }
.mobile-drawer.open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { color: #d6e4df; font: 14px Arial, sans-serif; text-decoration: none; padding: 8px 0; border-bottom: 1px solid #1c3c45; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--lime); font-weight: bold; }
.mobile-user { color: var(--cyan) !important; }
.mobile-logout { color: #fca5a5 !important; }

/* Hero Alanı */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #e0efe9; }
.hero .shell { min-height: 370px; display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: 40px; padding: 52px 0; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 11px; color: #257075; font: 700 11px Arial, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 16px; font-size: clamp(42px, 5.5vw, 70px); font-weight: normal; letter-spacing: 0; line-height: .97; }
h1 em { color: #277277; }
h2 { margin-bottom: 0; font-size: 28px; font-weight: normal; }
h3 { margin-bottom: 0; font-size: 21px; font-weight: normal; }
.hero p:not(.eyebrow) { max-width: 580px; color: #4e6267; font-size: 18px; line-height: 1.45; }
.hero-visual { min-height: 285px; overflow: hidden; border: 1px solid #9bbbb3; box-shadow: 8px 8px 0 var(--cyan); }
.hero-visual img { width: 100%; height: 100%; min-height: 285px; display: block; object-fit: cover; filter: saturate(.8) contrast(1.05); }

/* Arama ve Butonlar */
.search { max-width: 610px; display: flex; margin-top: 27px; background: #fff; border: 1px solid #aac0ba; box-shadow: 5px 5px 0 var(--lime); }
.search input { min-width: 0; flex: 1; padding: 14px 15px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; color: var(--ink); background: var(--lime); font: 700 12px Arial, sans-serif; cursor: pointer; text-decoration: none; border-radius: 2px; }
.search button { flex: 0 0 54px; }
.button { padding: 10px 13px; }
.button.secondary { background: #e4ede7; }
.button.danger { color: #fff; background: var(--red); }
.button.small { padding: 7px 9px; font-size: 11px; }

/* Filtre Çipleri ve Toolbar */
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font: 700 12px Arial, sans-serif; color: #23585c; background: #e2eeea; border: 1px solid #b6d3cc; text-decoration: none; border-radius: 20px; transition: all .15s ease; }
.chip:hover { background: #cce7e0; border-color: #9ac2b8; color: var(--ink); }
.chip.active { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.sort-box { display: flex; align-items: center; gap: 8px; font: 13px Arial, sans-serif; color: var(--muted); }
.sort-box select { width: auto; padding: 6px 10px; font-size: 13px; border: 1px solid #aac0ba; background: #fff; }

/* Sayfalama (Pagination) */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 20px; flex-wrap: wrap; }
.page-btn, .page-num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #b0c9c2; background: #fff; color: var(--ink); font: 700 13px Arial, sans-serif; text-decoration: none; border-radius: 3px; transition: all .15s; }
.page-btn:hover, .page-num:hover { background: #e0f0ea; border-color: #8bb3a8; }
.page-num.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-dots { padding: 0 6px; color: var(--muted); font-size: 14px; }

/* İçerik ve Grid */
.content { padding: 36px 0 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.section-head a { color: #277075; font: 700 12px Arial, sans-serif; text-decoration: none; }
.count, .muted { color: var(--muted); font: 13px/1.45 Arial, sans-serif; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.model-card { min-height: 230px; display: flex; flex-direction: column; padding: 18px; background: var(--white); border: 1px solid var(--line); transition: transform .16s, box-shadow .16s; }
.model-card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--cyan); }
.card-top { display: flex; justify-content: space-between; gap: 9px; }
.task, .status, .badge-task { display: inline-block; padding: 5px 7px; color: #164b47; background: var(--cyan); font: 700 10px Arial, sans-serif; text-transform: uppercase; white-space: nowrap; border-radius: 2px; }
.status.private { color: #75501a; background: #ffe9b2; }
.description { margin: 13px 0; color: var(--muted); font-size: 14px; line-height: 1.43; }
.tags { color: #256b6d; font: 12px/1.4 Arial, sans-serif; }
.card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.card-bottom small { color: var(--muted); font: 11px/1.45 Arial, sans-serif; }
.empty { padding: 50px 24px; margin-top: 18px; border: 1px dashed #92aaa3; background: #e5f0eb; text-align: center; }
.empty h3 { font-size: 26px; }
.empty p { max-width: 490px; margin: 12px auto 0; color: var(--muted); line-height: 1.5; }
.empty .button { margin-top: 20px; }
.datasets-band { margin-top: 54px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dataset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 17px; }
.dataset { padding: 18px; border-top: 5px solid var(--orange); background: #f4ead7; }
.dataset:nth-child(2n) { border-color: var(--cyan); background: #dfefea; }
.dataset p { margin: 10px 0 0; color: #54676c; font-size: 14px; line-height: 1.4; }
.site-footer { padding: 23px 0; border-top: 1px solid var(--line); color: #5d7074; font: 12px Arial, sans-serif; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #1e6a6a; }

/* Model Detay ve Repo Stilleri */
.repo-head { padding: 46px 0 29px; border-bottom: 1px solid var(--line); background: #e5f0eb; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.repo-meta span { padding: 6px 8px; border: 1px solid #a7c5bd; color: #42636a; background: #f7faf6; font: 11px Arial, sans-serif; border-radius: 2px; }
.repo-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr); gap: 35px; padding: 34px 0 62px; }
.panel { padding: 22px; border: 1px solid var(--line); background: #fff; }
.panel + .panel { margin-top: 17px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #5c757a; text-align: left; font: 700 10px Arial, sans-serif; letter-spacing: .6px; text-transform: uppercase; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td { font-size: 14px; }
td small { color: var(--muted); font: 11px Arial, sans-serif; }
.sidebar-block { padding: 17px 0; border-bottom: 1px solid var(--line); }
.sidebar-block:last-child { border-bottom: 0; }
.sidebar-block h3 { margin-bottom: 8px; font-size: 16px; }
.sidebar-block p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Yıldız (Star) ve Beğeni (Like) Butonları */
.star-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #a2c4bc; background: #fff; color: var(--ink); font: 700 12px Arial, sans-serif; text-decoration: none; border-radius: 4px; cursor: pointer; transition: all .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.star-button:hover { background: #f0f7f4; border-color: #6da296; }
.star-button.starred { background: var(--ink); color: #fff; border-color: var(--ink); }
.star-badge { display: inline-block; padding: 2px 7px; background: rgba(0,0,0,0.08); border-radius: 10px; font-size: 11px; }
.star-button.starred .star-badge { background: rgba(255,255,255,0.2); }

.like-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font: 700 11px Arial, sans-serif; border: 1px solid #d4ded8; background: #f7faf8; color: #435b60; border-radius: 14px; cursor: pointer; transition: all .15s; }
.like-button:hover { border-color: #ff8b7b; background: #fff4f2; }
.like-button.liked { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.like-button-disabled { display: inline-block; font: 11px Arial, sans-serif; color: var(--muted); }

/* SHA-256 Kopyalama */
.sha-box { display: flex; align-items: center; gap: 6px; }
.sha-box code { font-family: monospace; font-size: 12px; color: #325d62; background: #eef6f3; padding: 3px 6px; border-radius: 3px; border: 1px solid #d2e4de; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; font: 700 10px Arial, sans-serif; border: 1px solid #9dc2b8; background: #fff; color: #215c60; border-radius: 3px; cursor: pointer; transition: all .15s; }
.copy-btn:hover { background: #e0f2ec; }
.copy-btn.copied { background: #22c55e; color: #fff; border-color: #22c55e; }

/* Markdown README Gövdesi */
.markdown-body { font-size: 15px; line-height: 1.65; color: #22383d; padding: 8px 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { font-family: Arial, sans-serif; font-weight: 700; color: var(--ink); margin-top: 24px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.markdown-body h1 { font-size: 24px; }
.markdown-body h2 { font-size: 20px; }
.markdown-body h3 { font-size: 16px; border-bottom: 0; }
.markdown-body p { margin-bottom: 16px; }
.markdown-body code { font-family: Consolas, Monaco, monospace; font-size: 13px; background: #eaf1ed; padding: 2px 6px; border-radius: 3px; color: #164e52; }
.markdown-body pre { background: #143139; color: #d6f2e8; padding: 16px; border-radius: 4px; overflow-x: auto; font-family: Consolas, Monaco, monospace; font-size: 13px; line-height: 1.45; }
.markdown-body pre code { background: transparent; padding: 0; color: inherit; }
.markdown-body blockquote { margin: 16px 0; padding: 10px 18px; border-left: 4px solid var(--cyan); background: #eaf5f2; color: #274b50; font-style: italic; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin-bottom: 16px; }
.markdown-body li { margin-bottom: 6px; }
.markdown-body table { margin: 18px 0; border: 1px solid var(--line); }
.markdown-body th, .markdown-body td { border: 1px solid var(--line); padding: 8px 12px; }
.markdown-body th { background: #eaf1ed; }

/* Formlar ve Yardımcılar */
.prose { max-width: 780px; padding: 51px 0 70px; }
.prose h1 { font-size: clamp(39px, 5vw, 61px); }
.prose h2 { margin: 34px 0 11px; font-size: 26px; }
.prose p, .prose li { color: #475e64; font-size: 17px; line-height: 1.58; }
.prose li { margin: 8px 0; }
.form-layout { max-width: 680px; padding: 48px 0 70px; }
.form-layout h1 { font-size: 44px; }
label { display: block; margin: 16px 0 6px; font: 700 12px Arial, sans-serif; }
input, textarea, select { width: 100%; padding: 11px; color: var(--ink); border: 1px solid #a8c0ba; background: #fff; font-size: 15px; border-radius: 2px; }
textarea { min-height: 130px; resize: vertical; }
.notice, .error { margin: 18px 0; padding: 12px 16px; font: 14px/1.4 Arial, sans-serif; border-radius: 3px; }
.notice { color: #16533c; background: #dcfce7; border-left: 4px solid #16a34a; }
.error { color: #8c2d21; background: #fee2e2; border-left: 4px solid var(--red); }
.community-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr); gap: 33px; padding: 40px 0 65px; }
.thread { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.thread:hover h3 { color: #206368; }
.thread h3 { margin-bottom: 7px; font-size: 18px; }
.thread p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.thread small { color: #60777b; font: 11px Arial, sans-serif; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border: 0; }
.comment p { margin: 8px 0 0; color: #4e656a; line-height: 1.45; }
.cookie-banner { position: fixed; right: 18px; bottom: 18px; z-index: 10; width: min(440px, calc(100% - 36px)); padding: 18px; border: 1px solid #88aaa1; background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--cyan); }
.cookie-banner p { margin: 0 0 12px; color: #dbe7e2; font: 13px/1.4 Arial, sans-serif; }
.cookie-banner a { color: var(--lime); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .button.secondary { color: #fff; background: transparent; border: 1px solid #617e83; }
.hide { display: none; }

/* Responsive Düzenler */
@media (max-width: 850px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .model-grid, .dataset-grid { grid-template-columns: repeat(2, 1fr); }
  .repo-layout, .community-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 26px, 1180px); }
  .site-nav { display: none; }
  .user-nav { display: none; }
  .mobile-toggle { display: flex; }
  .topbar { justify-content: space-between; }
  .model-grid, .dataset-grid, .auth-grid { grid-template-columns: 1fr; }
  .hero .shell { min-height: 0; padding: 43px 0 37px; }
  h1 { font-size: 38px; }
  .footer-row { flex-direction: column; }
  .repo-head { padding: 35px 0 25px; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; }
}