/* Turkish Developers v3 — light refresh on top of community.css + community-human.css.
   Same palette (brick red + teal), sharper type, clearer contrast. Admin layout untouched. */
body:not(.admin-layout) {
  --bg: #f6f4ef;
  --panel: #fff;
  --text: #1c2326;
  --text-soft: #4a5659;
  --muted: #6b777a;
  --line: #e2e0d9;
  --line-strong: #cfccc2;
  --brand: #b23a2e;
  --brand-strong: #922d23;
  --brand-tint: #fbece9;
  --brand2: #17677b;
  --brand2-tint: #e5f1f3;
  --ink: #1c2326;
  --r: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(28,35,38,.05), 0 2px 8px -2px rgba(28,35,38,.06);
  --shadow-2: 0 2px 4px rgba(28,35,38,.05), 0 16px 32px -12px rgba(28,35,38,.18);
  --f-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:not(.admin-layout) h1, body:not(.admin-layout) h2, body:not(.admin-layout) h3 { font-family: var(--f-head); letter-spacing: -.025em; }

/* ---------- header ---------- */
body:not(.admin-layout) .site-header { min-height: 64px; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
body:not(.admin-layout) .brand span { font-family: var(--f-head); font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); -webkit-text-fill-color: currentColor; }
body:not(.admin-layout) .brand-logo-mark { width: 30px; height: 30px; }
body:not(.admin-layout) .nav > a:not(.btn):not(.language-switch) { position: relative; padding: 8px 2px; color: var(--text-soft); font-weight: 600; }
body:not(.admin-layout) .nav > a:not(.btn):not(.language-switch)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
body:not(.admin-layout) .nav > a:not(.btn):hover { color: var(--ink); }
body:not(.admin-layout) .nav > a:not(.btn):hover::after, body:not(.admin-layout) .nav > a[aria-current="page"]::after { transform: scaleX(1); }
/* "Üye Ol" was red text on red: nav link colour won the specificity fight */
body:not(.admin-layout) .nav > a.btn.primary, body:not(.admin-layout) .nav > a.btn.primary:hover { color: #fff; background: var(--brand); border-color: var(--brand); padding: 9px 16px; border-radius: 999px; font-weight: 700; }
body:not(.admin-layout) .nav > a.btn.primary:hover { background: var(--brand-strong); }
body:not(.admin-layout) .language-switch { border-radius: 999px; }

/* ---------- buttons, chips, badges ---------- */
body:not(.admin-layout) .btn { border-radius: 999px; font-weight: 700; }
body:not(.admin-layout) .btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
body:not(.admin-layout) .chips span { background: var(--brand2-tint); border: 0; color: var(--brand2); border-radius: 6px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; padding: 5px 9px; }
body:not(.admin-layout) .role-badge { min-height: 20px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
body:not(.admin-layout) .role-super-admin { background: #fdf3d7; color: #8a5a00; border-color: #f3dc9c; }
body:not(.admin-layout) .role-admin { background: var(--brand-tint); color: var(--brand); border-color: #f2c9c3; }
body:not(.admin-layout) .role-moderator, body:not(.admin-layout) .role-forum-moderator, body:not(.admin-layout) .role-project-editor { background: var(--brand2-tint); color: var(--brand2); border-color: #bcdbe1; }
body:not(.admin-layout) .role-user { background: #f0efea; color: #5d6669; border-color: #e0ded6; }
body:not(.admin-layout) .status-pending { background: #fdf3d7; color: #8a5a00; border-color: #f3dc9c; }
body:not(.admin-layout) .status-approved { background: #e3f4ea; color: #1d7442; border-color: #bfe3cc; }
body:not(.admin-layout) .status-rejected { background: var(--brand-tint); color: var(--brand); border-color: #f2c9c3; }
body:not(.admin-layout) .status-hidden { background: #f0efea; color: #5d6669; }

/* ---------- cards ---------- */
body:not(.admin-layout) .project-card { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
body:not(.admin-layout) .project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
body:not(.admin-layout) .project-cover { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--line); background: #efede7; }
body:not(.admin-layout) .project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
body:not(.admin-layout) .project-card:hover .project-cover img { transform: scale(1.03); }
body:not(.admin-layout) .project-body h3 { font-size: 19px; line-height: 1.25; }
body:not(.admin-layout) .project-body h3 a { color: var(--ink); }
body:not(.admin-layout) .project-body > p { color: var(--text-soft); }
body:not(.admin-layout) .card-stats { padding-top: 10px; border-top: 1px dashed var(--line); }
body:not(.admin-layout) .content-card, body:not(.admin-layout) .reply-card { border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
body:not(.admin-layout) input:not([type=checkbox]):not([type=radio]):not([type=file]), body:not(.admin-layout) select, body:not(.admin-layout) textarea { border-radius: 10px; }
body:not(.admin-layout) input:focus, body:not(.admin-layout) select:focus, body:not(.admin-layout) textarea:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(23,103,123,.15); }
body:not(.admin-layout) .page-head h1 { font-size: clamp(30px, 3.6vw, 44px); }
body:not(.admin-layout) .eyebrow { color: var(--brand); font-family: var(--f-mono); font-weight: 600; letter-spacing: .08em; }
body:not(.admin-layout) .weekly-project { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
body:not(.admin-layout) .footer { background: #efede7; }

/* ---------- home ---------- */
.td-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 12px var(--f-mono); color: var(--text-soft); letter-spacing: .02em; }
.td-live { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 0 rgba(35,165,90,.5); animation: td-pulse 2s infinite; }
@keyframes td-pulse { 70% { box-shadow: 0 0 0 8px rgba(35,165,90,0); } 100% { box-shadow: 0 0 0 0 rgba(35,165,90,0); } }
.td-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 56px 0 48px; }
.td-hero-copy h1 { margin: 18px 0 16px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; color: var(--ink); }
.td-hero-copy h1 em { font-style: normal; color: var(--brand); position: relative; z-index: 0; }
.td-hero-copy h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em; background: var(--brand-tint); z-index: -1; border-radius: 4px; }
.td-hero-copy > p { max-width: 54ch; font-size: 17px; line-height: 1.6; color: var(--text-soft); margin: 0 0 24px; }
.td-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 6px 6px 6px 16px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-1); transition: border-color .2s, box-shadow .2s; }
.td-search:focus-within { border-color: var(--brand2); box-shadow: 0 0 0 4px rgba(23,103,123,.12); }
.td-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
body:not(.admin-layout) .td-search input { flex: 1; min-width: 0; border: 0 !important; background: none; box-shadow: none !important; padding: 10px 0; font-size: 15px; }
.td-search button { flex: none; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.td-search button:hover { background: var(--brand2); }
.td-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.td-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; border: 1.5px solid transparent; }
.td-btn svg { width: 17px; height: 17px; }
.td-btn-red { background: var(--brand); color: #fff !important; box-shadow: 0 6px 18px -8px rgba(178,58,46,.7); }
.td-btn-red:hover { background: var(--brand-strong); transform: translateY(-1px); }
.td-btn-line { background: #fff; color: var(--ink) !important; border-color: var(--line-strong); }
.td-btn-line:hover { border-color: var(--ink); }
.td-btn-white { background: #fff; color: var(--brand) !important; }
.td-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 32px 0 0; padding: 0; }
.td-stats div { display: flex; flex-direction: column-reverse; }
.td-stats dd { margin: 0; font: 700 28px/1 var(--f-head); color: var(--ink); letter-spacing: -.03em; }
.td-stats dt { margin-top: 6px; font: 500 12px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.td-hero-side { display: grid; gap: 16px; }
.td-weekly { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); color: var(--ink) !important; text-decoration: none; transition: transform .2s; transform: rotate(.6deg); }
.td-weekly:hover { transform: rotate(0) translateY(-3px); }
.td-weekly-cover { position: relative; display: block; aspect-ratio: 16/8; background: #efede7; }
.td-weekly-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-weekly-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff; color: #8a5a00; font: 700 11.5px var(--f-mono); box-shadow: var(--shadow-1); }
.td-weekly-badge svg { width: 14px; height: 14px; }
.td-weekly-body { display: grid; gap: 5px; padding: 16px 18px 18px; }
.td-weekly-body small { font: 500 11.5px var(--f-mono); color: var(--muted); }
.td-weekly-body strong { font: 700 21px/1.2 var(--f-head); letter-spacing: -.02em; }
.td-weekly-body > span { color: var(--text-soft); font-size: 14px; }
.td-weekly-body em { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 13px; color: var(--muted); }
.td-weekly-body em svg { width: 14px; height: 14px; } .td-weekly-body em svg + svg, .td-weekly-body em svg:nth-of-type(2) { margin-left: 10px; }
.td-code { background: #1c2326; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); transform: rotate(-.8deg); margin-left: 24px; }
.td-code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #252e31; }
.td-code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .td-code-bar i:nth-child(2) { background: #febc2e; } .td-code-bar i:nth-child(3) { background: #28c840; }
.td-code-bar span { margin-left: 8px; font: 500 12px var(--f-mono); color: #8b9a9e; }
.td-code pre { margin: 0; padding: 16px 18px 18px; font: 500 13px/1.75 var(--f-mono); color: #e6edf0; overflow-x: auto; white-space: pre; }
.td-code b { color: #ff8a7a; font-weight: 600; } .td-code s { text-decoration: none; color: #ff8a7a; } .td-code u { text-decoration: none; color: #7fd1e2; }
.td-code q { color: #b9e28c; } .td-code q::before, .td-code q::after { content: none; } .td-code i { font-style: normal; color: #6f8287; }

.td-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-bottom: 48px; }
.td-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 6px 20px 16px; }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; }
.td-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; color: var(--ink); }
.td-head h2 svg { width: 19px; height: 19px; color: var(--brand); }
.td-head a { font-weight: 700; font-size: 14px; color: var(--brand2); text-decoration: none; }
.td-head a:hover { text-decoration: underline; }
.td-topic { display: flex; gap: 16px; padding: 14px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: 10px; color: inherit !important; text-decoration: none; transition: background .15s; }
.td-topic:hover { background: #f8f6f1; }
.td-topic-count { flex: none; display: grid; place-items: center; align-content: center; width: 54px; height: 54px; border-radius: 12px; background: #f3f1ec; color: var(--muted); }
.td-topic-count.has { background: var(--brand2-tint); color: var(--brand2); }
.td-topic-count b { font: 700 18px/1 var(--f-head); }
.td-topic-count small { font: 500 10px var(--f-mono); margin-top: 2px; }
.td-topic-main { display: grid; gap: 3px; min-width: 0; }
.td-topic-main strong { font: 650 16px/1.35 var(--f-head); color: var(--ink); }
.td-topic:hover .td-topic-main strong { color: var(--brand); }
.td-topic-main > span { color: var(--text-soft); font-size: 14px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.td-topic-main small { font: 500 12px var(--f-mono); color: var(--muted); }
.td-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 12px; font-weight: 700; color: var(--text-soft) !important; text-decoration: none; }
.td-more:hover { border-color: var(--brand); color: var(--brand) !important; }
.td-more svg { width: 16px; height: 16px; }
.td-side { display: grid; gap: 16px; }
.td-channels { display: grid; gap: 4px; padding-bottom: 4px; }
.td-channels a { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink) !important; text-decoration: none; font-size: 14.5px; }
.td-channels a:hover { background: #f8f6f1; }
.td-channels a > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); }
.td-channels svg { width: 16px; height: 16px; }
.td-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; padding: 2px 0 6px; }
.td-members a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--text-soft) !important; min-width: 0; }
.td-members .mini-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 700; }
.td-members .mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.td-members small { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-discord { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: #5865f2; color: #fff !important; text-decoration: none; font-weight: 700; box-shadow: var(--shadow-1); transition: transform .15s; }
.td-discord:hover { transform: translateY(-2px); }
.td-discord svg { width: 22px; height: 22px; }
.td-discord span { display: grid; flex: 1; } .td-discord small { font-weight: 500; opacity: .85; }
.td-section { margin-bottom: 48px; }
.td-section > .td-head { padding-top: 0; }
.td-join { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 8px 0 56px; padding: 36px 40px; border-radius: 20px; background: var(--brand); color: #fff; background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,.14), transparent 40%), radial-gradient(circle at 0% 100%, rgba(0,0,0,.14), transparent 45%); }
.td-join .td-pill { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.td-join h2 { margin: 14px 0 12px; font-size: clamp(26px, 3vw, 36px); color: #fff; }
.td-join ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; opacity: .95; }
.td-join li { display: flex; align-items: center; gap: 6px; } .td-join li svg { width: 16px; height: 16px; }
.td-join .td-btn { padding: 15px 26px; font-size: 16px; }

@media (max-width: 960px) {
  .td-hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .td-hero-side { grid-template-columns: 1fr 1fr; }
  .td-code { margin-left: 0; transform: none; } .td-weekly { transform: none; }
  .td-home-grid { grid-template-columns: 1fr; }
  .td-side { grid-template-columns: 1fr 1fr; }
  .td-discord { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .td-hero-copy h1 { font-size: 40px; }
  .td-hero-copy > p { font-size: 16px; }
  .td-hero-side, .td-side { grid-template-columns: 1fr; }
  .td-code { display: none; }
  .td-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .td-search button { padding: 11px 16px; }
  .td-panel { padding: 4px 14px 12px; }
  .td-topic { gap: 12px; }
  .td-topic-count { width: 46px; height: 46px; }
  .td-join { padding: 28px 22px; }
  .td-join .td-btn { width: 100%; justify-content: center; }
  .td-hero-cta .td-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .td-live { animation: none; } .td-weekly, .td-code { transform: none; } }

/* base css gives every <section> 46px vertical margin */
.td-hero, .td-panel, .td-side > section, .td-home-grid section { margin: 0; }
.td-hero { margin-top: -8px; }
.td-section { margin: 0 0 48px; }
/* language link sat between Forum and Projeler on /forum (its href contains /forum and got order:-1) */
body:not(.admin-layout) .nav > a.language-switch { order: 10; }
/* empty required fields were drawn red before the user typed anything */
body:not(.admin-layout) input:invalid:placeholder-shown:not(:focus), body:not(.admin-layout) input:invalid:not(:focus):not(:user-invalid) { border-color: var(--line-strong); box-shadow: none; }

/* ---------- dropdowns & mobile menu: legacy dark panels → light ---------- */
body:not(.admin-layout) .nav-settings-menu,
body:not(.admin-layout) .nav-notification-menu { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 10px rgba(28,35,38,.06), 0 24px 48px -16px rgba(28,35,38,.28); backdrop-filter: none; }
body:not(.admin-layout) .nav-settings-menu a,
body:not(.admin-layout) .nav-settings-menu button { color: var(--ink); font-weight: 600; border-radius: 9px; }
body:not(.admin-layout) .nav-settings-menu a svg,
body:not(.admin-layout) .nav-settings-menu button svg { color: var(--muted); }
body:not(.admin-layout) .nav-settings-menu a:hover,
body:not(.admin-layout) .nav-settings-menu button:hover { background: #f4f2ed; color: var(--brand); }
body:not(.admin-layout) .nav-settings-menu a:hover svg,
body:not(.admin-layout) .nav-settings-menu button:hover svg { color: var(--brand); }
body:not(.admin-layout) .nav-settings-menu form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
body:not(.admin-layout) .nav-notification-menu > header strong { color: var(--ink); }
body:not(.admin-layout) .nav-notification-menu > header button { color: var(--brand2); }
body:not(.admin-layout) .nav-notification-item { color: var(--ink); border-bottom-color: var(--line); }
body:not(.admin-layout) .nav-notification-item:hover { background: #f8f6f1; }
body:not(.admin-layout) .nav-notification-item.is-unread { background: var(--brand2-tint); }
body:not(.admin-layout) .nav-notification-item.is-unread:hover { background: #d9ebee; }
body:not(.admin-layout) .nav-notification-icon { background: #f0efea; color: var(--muted); }
body:not(.admin-layout) .nav-notification-item.is-unread .nav-notification-icon { background: var(--brand2); color: #fff; box-shadow: none; }
body:not(.admin-layout) .nav-notification-all { color: var(--brand2); }
body:not(.admin-layout) .nav-notification-toggle,
body:not(.admin-layout) .nav-settings-toggle { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 999px; }
body:not(.admin-layout) .nav-notification-toggle:hover,
body:not(.admin-layout) .nav-notifications[open] .nav-notification-toggle,
body:not(.admin-layout) .nav-settings-toggle:hover,
body:not(.admin-layout) .nav-settings[open] .nav-settings-toggle { background: #f4f2ed; border-color: var(--line-strong); }
body:not(.admin-layout) select option { background: #fff; color: var(--ink); }
body:not(.admin-layout) .weekly-project-meta em { background: rgba(255,255,255,.75); color: var(--ink); border-color: var(--line); }
@media (max-width: 760px) {
  body:not(.admin-layout) .nav { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(28,35,38,.28); backdrop-filter: none; }
  body:not(.admin-layout) .nav > a:not(.btn):not(.language-switch) { padding: 12px 10px; border-radius: 9px; }
  body:not(.admin-layout) .nav > a:not(.btn):not(.language-switch)::after { display: none; }
  body:not(.admin-layout) .nav > a:not(.btn):hover { background: #f4f2ed; }
  body:not(.admin-layout) .nav > a.btn.primary { justify-content: center; }
}