/**
 * HBR Data — Açık Projeler (open-projects) · DOSYA 10
 * Bu dosya SİLÜNMEZ: js/open-projects.js'in enjekte ettiği kartlar ve modal
 * buradaki selektörlere dayanır. Rollout 4 kapsamında yalnızca RENK ve FONT
 * değerleri hd token'larına (var(--hd-...) / color-mix ile token türevi)
 * çevrildi; selektörler ve düzen kuralları (kutu ölçüleri, grid, radius,
 * gap, padding) aynen korundu. Böylece enjekte edilen kartlar iki temada
 * da uyumlu görünür. Bu sayfada css/style.css YÜKLENMEZ; ortak katman
 * css/hd-core.css bu dosyadan ÖNCE bağlanır.
 * Not: .projects-hero/.open-badge/.cta-section kuralları yeni hd hero/CTA
 * markup'ında kullanılmaz (ölü kural), ancak sözleşme gereği korunur.
 * --header-height artık tanımsız olduğundan hero padding'i 68px (hd header
 * yüksekliği) sabitine bağlandı.
 */

/* ---------- Bu dosyada kullanılan ek tonlar (çekirdekte karşılığı yok) ---------- */
:root {
  --hd-hue-blue: #2563EB;
  --hd-hue-pink: #DB2777;
  --hd-hue-violet: #7C3AED;
  --hd-hue-amber: #B45309;
  --hd-hue-cyan: #0E7490;
  --hd-ok: #15803D;
  --hd-err: #B3261E;
  --hd-overlay: rgba(0, 0, 0, 0.65);
  --hd-shadow-modal: rgba(0, 0, 0, 0.5);
}

:root[data-hd-theme="dark"] {
  --hd-hue-blue: #60A5FA;
  --hd-hue-pink: #F472B6;
  --hd-hue-violet: #A78BFA;
  --hd-hue-amber: #FBBF24;
  --hd-hue-cyan: #22D3EE;
  --hd-ok: #22C55E;
  --hd-err: #F87171;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-hd-theme="light"]) {
    --hd-hue-blue: #60A5FA;
    --hd-hue-pink: #F472B6;
    --hd-hue-violet: #A78BFA;
    --hd-hue-amber: #FBBF24;
    --hd-hue-cyan: #22D3EE;
    --hd-ok: #22C55E;
    --hd-err: #F87171;
  }
}

        .projects-hero {
            padding: calc(68px + 56px) 0 56px;
            background: linear-gradient(135deg, var(--hd-dark) 0%, var(--hd-dark) 40%, var(--hd-paper-2) 100%);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .projects-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--hd-emerald) 8%, transparent), transparent);
            pointer-events: none;
        }

        .open-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: color-mix(in srgb, var(--hd-emerald) 10%, transparent);
            color: var(--hd-emerald-bright);
            border: 1px solid color-mix(in srgb, var(--hd-emerald) 25%, transparent);
            padding: 6px 14px;
            border-radius: 9999px;
            font-size: 0.78rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            margin-bottom: 18px;
        }

        .open-badge::before {
            content: '';
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--hd-ok);
            box-shadow: 0 0 6px var(--hd-ok);
            animation: blink 1.4s ease-in-out infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1
            }

            50% {
                opacity: 0.4
            }
        }

        .projects-hero h1 {
            font-family: var(--hd-font-body);
            font-size: clamp(1.8rem, 3.5vw, 2.6rem);
            font-weight: 800;
            color: var(--hd-paper-on-dark);
            letter-spacing: -0.04em;
            line-height: 1.2;
            margin-bottom: 14px;
        }

        .projects-hero p {
            color: color-mix(in srgb, var(--hd-paper-on-dark) 70%, transparent);
            font-size: 1rem;
            max-width: 520px;
            margin: 0 auto;
            line-height: 1.65;
        }

        .projects-section {
            padding: 56px 0 80px;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
        }

        .proj-card {
            background: var(--hd-paper-2);
            border: 1px solid color-mix(in srgb, var(--hd-emerald) 18%, transparent);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            position: relative;
            overflow: hidden;
            transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
        }

        .proj-card:hover {
            border-color: color-mix(in srgb, var(--hd-emerald) 50%, transparent);
            transform: translateY(-2px);
            box-shadow: 0 8px 32px color-mix(in srgb, var(--hd-emerald) 10%, transparent);
        }

        .proj-card-status {
            position: absolute;
            top: 0;
            right: 0;
            background: color-mix(in srgb, var(--hd-ok) 12%, transparent);
            color: var(--hd-ok);
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 4px 10px;
            border-bottom-left-radius: 8px;
        }

        .proj-card-title {
            font-family: var(--hd-font-body);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--hd-ink);
            letter-spacing: -0.02em;
            line-height: 1.3;
            padding-right: 48px;
        }

        .proj-card-types {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .proj-type-badge {
            font-size: 0.72rem;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 9999px;
            border: 1px solid;
        }

        .pt-Transcription {
            background: color-mix(in srgb, var(--hd-hue-blue) 15%, transparent);
            color: var(--hd-hue-blue);
            border-color: color-mix(in srgb, var(--hd-hue-blue) 30%, transparent);
        }

        .pt-Voice {
            background: color-mix(in srgb, var(--hd-hue-pink) 15%, transparent);
            color: var(--hd-hue-pink);
            border-color: color-mix(in srgb, var(--hd-hue-pink) 30%, transparent);
        }

        .pt-AI {
            background: color-mix(in srgb, var(--hd-hue-violet) 15%, transparent);
            color: var(--hd-hue-violet);
            border-color: color-mix(in srgb, var(--hd-hue-violet) 30%, transparent);
        }

        .pt-Localization {
            background: color-mix(in srgb, var(--hd-emerald) 15%, transparent);
            color: var(--hd-emerald-bright);
            border-color: color-mix(in srgb, var(--hd-emerald) 30%, transparent);
        }

        .pt-Data {
            background: color-mix(in srgb, var(--hd-hue-amber) 15%, transparent);
            color: var(--hd-hue-amber);
            border-color: color-mix(in srgb, var(--hd-hue-amber) 30%, transparent);
        }

        .pt-default {
            background: color-mix(in srgb, var(--hd-ink-soft) 15%, transparent);
            color: var(--hd-ink-soft);
            border-color: color-mix(in srgb, var(--hd-ink-soft) 30%, transparent);
        }

        .proj-card-lang {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--hd-ink-soft);
            font-size: 0.85rem;
        }

        .proj-card-desc {
            color: var(--hd-ink-soft);
            font-size: 0.875rem;
            line-height: 1.6;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .proj-card-deadline {
            font-size: 0.75rem;
            color: var(--hd-ink-soft);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .proj-form-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: var(--hd-emerald-bright);
            background: color-mix(in srgb, var(--hd-emerald) 8%, transparent);
            border: 1px solid color-mix(in srgb, var(--hd-emerald) 20%, transparent);
            padding: 4px 10px;
            border-radius: 6px;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 900;
            background: var(--hd-overlay);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .modal-overlay.hidden {
            display: none;
        }

        .modal-box {
            background: var(--hd-paper);
            border: 1px solid var(--hd-line);
            border-radius: 20px;
            padding: 28px 28px 24px;
            max-width: 520px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--hd-ink-soft);
            font-size: 1.3rem;
            line-height: 1;
            transition: color 0.2s;
        }

        .modal-close:hover {
            color: var(--hd-ink);
        }

        .modal-title {
            font-family: var(--hd-font-body);
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--hd-ink);
            letter-spacing: -0.03em;
            margin-bottom: 4px;
        }

        .modal-sub {
            font-size: 0.82rem;
            color: var(--hd-ink-soft);
            margin-bottom: 20px;
        }

        .apply-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .apply-form label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--hd-ink-soft);
            margin-bottom: 5px;
        }

        .apply-form input,
        .apply-form select,
        .apply-form textarea {
            width: 100%;
            padding: 10px 14px;
            background: var(--hd-paper-2);
            border: 1px solid var(--hd-line);
            border-radius: 10px;
            color: var(--hd-ink);
            font-size: 0.875rem;
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s;
        }

        .apply-form input:focus,
        .apply-form select:focus,
        .apply-form textarea:focus {
            border-color: var(--hd-emerald);
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--hd-emerald) 15%, transparent);
        }

        .apply-form textarea {
            min-height: 80px;
            resize: vertical;
        }

        .equip-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .equip-label {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 12px;
            border-radius: 8px;
            border: 1px solid var(--hd-line);
            background: var(--hd-paper-2);
            cursor: pointer;
            font-size: 0.82rem;
            color: var(--hd-ink-soft);
            transition: all 0.18s;
        }

        .equip-label:has(input:checked) {
            border-color: var(--hd-emerald);
            background: color-mix(in srgb, var(--hd-emerald) 10%, transparent);
            color: var(--hd-ink);
        }

        .equip-label input {
            display: none;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .form-error {
            background: color-mix(in srgb, var(--hd-err) 10%, transparent);
            border: 1px solid color-mix(in srgb, var(--hd-err) 30%, transparent);
            color: var(--hd-err);
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 0.82rem;
        }

        .form-success-msg {
            text-align: center;
            padding: 24px 0;
        }

        .form-success-msg .checkmark {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: color-mix(in srgb, var(--hd-ok) 15%, transparent);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
        }

        .form-success-msg h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--hd-ink);
            margin-bottom: 6px;
        }

        .form-success-msg p {
            font-size: 0.875rem;
            color: var(--hd-ink-soft);
        }

        .btn-apply {
            width: 100%;
            padding: 12px 20px;
            background: var(--hd-emerald);
            color: var(--hd-paper);
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            font-family: inherit;
        }

        .btn-apply:hover {
            background: var(--hd-btn-bg-hover);
        }

        .btn-apply:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .proj-card-apply-btn {
            margin-top: auto;
            width: 100%;
            padding: 11px 16px;
            background: var(--hd-emerald);
            color: var(--hd-paper);
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            font-family: inherit;
        }

        .proj-card-apply-btn:hover {
            background: var(--hd-btn-bg-hover);
            transform: translateY(-1px);
        }

        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid color-mix(in srgb, var(--hd-emerald) 20%, transparent);
            border-top-color: var(--hd-emerald);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--hd-ink-soft);
        }

        .empty-state p {
            margin-bottom: 24px;
        }

        /* Boş durum CTA'sı: JS'in ürettiği .btn.btn-primary, style.css olmadan
           stillenmez — hd-btn görünümüne bağlanan küçük uyumluluk kuralı. */
        .empty-state .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 12px 26px;
            background: var(--hd-emerald);
            border: 1px solid var(--hd-emerald);
            color: var(--hd-paper);
            font-weight: 500;
            font-size: 0.95rem;
            text-decoration: none;
            font-family: var(--hd-font-body);
        }

        .empty-state .btn:hover {
            background: var(--hd-btn-bg-hover);
            border-color: var(--hd-btn-bg-hover);
        }

        .cta-section {
            padding: 56px 0;
            border-top: 1px solid var(--hd-line);
            text-align: center;
        }

        .cta-section h3 {
            font-family: var(--hd-font-body);
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--hd-ink);
            letter-spacing: -0.03em;
            margin-bottom: 10px;
        }

        .cta-section p {
            color: var(--hd-ink-soft);
            font-size: 0.925rem;
            margin-bottom: 24px;
        }

        .proj-instruction-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px 16px;
            border-radius: 12px;
            background: color-mix(in srgb, var(--hd-hue-amber) 10%, transparent);
            border: 1px solid color-mix(in srgb, var(--hd-hue-amber) 30%, transparent);
            color: var(--hd-hue-amber);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            font-family: inherit;
            margin-bottom: 8px;
        }
        .proj-instruction-btn:hover {
            background: color-mix(in srgb, var(--hd-hue-amber) 20%, transparent);
            color: var(--hd-hue-amber);
        }
        .proj-file-upload-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px 16px;
            border-radius: 12px;
            background: color-mix(in srgb, var(--hd-hue-cyan) 10%, transparent);
            border: 1px solid color-mix(in srgb, var(--hd-hue-cyan) 30%, transparent);
            color: var(--hd-emerald-bright);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: background 0.2s;
            font-family: inherit;
            margin-top: 8px;
        }
        .proj-file-upload-btn:hover {
            background: color-mix(in srgb, var(--hd-hue-cyan) 20%, transparent);
        }
        .file-upload-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--hd-overlay);
            backdrop-filter: blur(4px);
            padding: 16px;
        }
        .file-upload-modal {
            background: var(--hd-paper);
            border: 1px solid color-mix(in srgb, var(--hd-ink-soft) 20%, transparent);
            border-radius: 16px;
            box-shadow: 0 25px 50px -12px var(--hd-shadow-modal);
            padding: 24px 32px;
            max-width: 440px;
            width: 100%;
            position: relative;
        }
        .file-upload-modal h3 { color: var(--hd-ink); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
        .file-upload-modal .fu-sub { color: var(--hd-ink-soft); font-size: 0.8rem; margin-bottom: 20px; }
        .file-upload-modal label { display: block; color: var(--hd-ink); font-size: 0.82rem; font-weight: 500; margin-bottom: 6px; }
        .file-upload-modal input[type="text"],
        .file-upload-modal input[type="email"] {
            width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--hd-paper-2);
            border: 1px solid color-mix(in srgb, var(--hd-ink-soft) 20%, transparent); color: var(--hd-ink); font-size: 0.875rem;
            margin-bottom: 14px; font-family: inherit;
        }
        .file-upload-modal input:focus { outline: none; border-color: var(--hd-emerald); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hd-emerald) 20%, transparent); }
        .file-upload-modal .fu-submit {
            width: 100%; padding: 12px; border-radius: 12px; background: var(--hd-emerald); color: var(--hd-paper);
            font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; transition: background 0.2s; font-family: inherit;
        }
        .file-upload-modal .fu-submit:hover { background: var(--hd-btn-bg-hover); }
        .file-upload-modal .fu-submit:disabled { opacity: 0.6; cursor: not-allowed; }
        .file-upload-modal .fu-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--hd-ink-soft); cursor: pointer; font-size: 1.4rem; }
        .file-upload-modal .fu-error { padding: 10px; border-radius: 8px; background: color-mix(in srgb, var(--hd-err) 10%, transparent); border: 1px solid color-mix(in srgb, var(--hd-err) 30%, transparent); color: var(--hd-err); font-size: 0.82rem; margin-bottom: 14px; }

        .apply-step-section { margin: 16px 0; padding: 16px; background: var(--hd-paper-2); border-radius: 12px; border: 1px solid color-mix(in srgb, var(--hd-ink-soft) 15%, transparent); }
        .apply-step-section.step-locked { opacity: 0.45; pointer-events: none; }
        .apply-step-section .step-title { font-size: 0.85rem; font-weight: 600; color: var(--hd-ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
        .apply-step-section .step-num { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--hd-emerald) 15%, transparent); color: var(--hd-emerald-bright); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .apply-step-section .step-check { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--hd-ok) 20%, transparent); color: var(--hd-ok); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
        .step-instruction-dl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: color-mix(in srgb, var(--hd-hue-amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--hd-hue-amber) 30%, transparent); border-radius: 8px; color: var(--hd-hue-amber); font-size: 0.82rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s; }
        .step-instruction-dl:hover { background: color-mix(in srgb, var(--hd-hue-amber) 20%, transparent); }
        .step-confirm-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--hd-ink-soft); cursor: pointer; margin-top: 10px; font-weight: 400; }
        .step-confirm-label input:disabled { cursor: not-allowed; opacity: 0.5; }
        .fu-inline-status { font-size: 0.78rem; margin-top: 6px; color: var(--hd-ink-soft); }
        .fu-inline-status.success { color: var(--hd-ok); }
        .fu-inline-status.error { color: var(--hd-err); }
        .fu-inline-upload-btn { padding: 8px 14px; background: color-mix(in srgb, var(--hd-emerald) 10%, transparent); border: 1px solid color-mix(in srgb, var(--hd-emerald) 30%, transparent); border-radius: 8px; color: var(--hd-emerald-bright); font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 8px; }
        .fu-inline-upload-btn:hover { background: color-mix(in srgb, var(--hd-emerald) 20%, transparent); }
        .fu-inline-upload-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .proj-card-share-btn {
            width: 100%;
            padding: 8px 14px;
            background: transparent;
            border: 1px solid color-mix(in srgb, var(--hd-emerald) 20%, transparent);
            border-radius: 10px;
            color: var(--hd-emerald-bright);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: background 0.2s, border-color 0.2s;
            margin-top: 6px;
        }

        .proj-card-share-btn:hover {
            background: color-mix(in srgb, var(--hd-emerald) 8%, transparent);
            border-color: color-mix(in srgb, var(--hd-emerald) 40%, transparent);
        }

        .proj-card-share-btn.copied {
            color: var(--hd-ok);
            border-color: color-mix(in srgb, var(--hd-ok) 40%, transparent);
            background: color-mix(in srgb, var(--hd-ok) 6%, transparent);
        }

        @keyframes modalblink { 0%, 100% { opacity: 1 } 50% { opacity: 0.3 } }

        /* ---------- Yeni hd hero durum etiketi (DOSYA 10) ---------- */
        .hd-board-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 28px;
            font-family: var(--hd-font-mono);
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--hd-emerald);
        }

        .hd-status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--hd-ok);
            box-shadow: 0 0 6px var(--hd-ok);
            animation: blink 1.4s ease-in-out infinite;
            flex: none;
        }
