/* onurkvk.com ortak stil dosyası */
:root {
    --zemin: #f5f6f8; --yuzey: #ffffff; --metin: #17212b; --soluk: #566473;
    --cizgi: #dbe0e6; --girdi: #aab4bf;
    --vurgu: #163a63; --vurgu-ustu: #ffffff; --vurgu-koyu: #0e2b4b; --vurgu-acik: #e9eef5;
    --hata: #b42318; --hata-ustu: #ffffff; --hata-acik: #fdecea;
    --ok: #17663f; --ok-acik: #e8f4ec;
    --yazi: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --zemin: #10161d; --yuzey: #171f28; --metin: #e7ecf1; --soluk: #9aa8b6;
        --cizgi: #2a3441; --girdi: #46515f;
        --vurgu: #7fb0e6; --vurgu-ustu: #0b1a2b; --vurgu-koyu: #a6c8ee; --vurgu-acik: #1d2a3a;
        --hata: #f0857b; --hata-ustu: #1a0f0e; --hata-acik: #3a1d1b;
        --ok: #6fcf97; --ok-acik: #183024;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--zemin); color: var(--metin); font: 400 1rem/1.65 var(--yazi); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: var(--vurgu); }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--vurgu); color: var(--vurgu-ustu); }
.btn-primary:hover { background: var(--vurgu-koyu); }

input[type="text"], input[type="email"], input[type="password"], textarea { width: 100%; padding: .65rem .8rem; font: inherit; color: var(--metin); background: var(--yuzey); border: 1px solid var(--girdi); border-radius: 6px; }
input:focus, textarea:focus { outline: none; border-color: var(--vurgu); box-shadow: 0 0 0 3px var(--vurgu-acik); }
textarea { resize: vertical; min-height: 140px; }
.etiket { display: block; margin-bottom: .35rem; font-size: .95rem; font-weight: 500; }

.alert { max-width: 560px; margin: 0 0 1.25rem; padding: .75rem 1rem; border: 1px solid; border-radius: 6px; font-weight: 500; }
.alert-ok { background: var(--ok-acik); color: var(--ok); border-color: var(--ok); }
.alert-hata { background: var(--hata-acik); color: var(--hata); border-color: var(--hata); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ana site ---------- */
.ust { background: var(--yuzey); border-bottom: 1px solid var(--cizgi); }
.ust-ic { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; min-height: 64px; display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; }
.marka { display: flex; align-items: center; color: var(--metin); font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.top-nav { display: flex; }
.top-nav button { appearance: none; margin: 0 0 -1px; padding: 0 .95rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--soluk); font: inherit; font-weight: 500; cursor: pointer; }
.top-nav button:hover { color: var(--metin); }
.top-nav button.active { color: var(--metin); border-bottom-color: var(--vurgu); }

.sayfa { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.tanitim { display: flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--cizgi); }
.avatar-box { flex: none; width: 152px; height: 152px; overflow: hidden; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); }
.avatar-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tanitim h1 { margin-bottom: .5rem; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.rol { margin-bottom: .1rem; font-size: 1.1rem; }
.konum { margin-bottom: 1rem; color: var(--soluk); }
.baglantilar { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 500; }
.baglantilar a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.baglantilar a:hover { text-decoration: underline; }

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { max-width: 68ch; margin-bottom: 1rem; }
.tab-content .giris-yazi { font-size: 1.15rem; line-height: 1.6; }

.alanlar { max-width: 68ch; margin-top: 2rem; border-top: 1px solid var(--cizgi); }
.alanlar > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--cizgi); }
.alanlar dt { color: var(--soluk); }

.proje { max-width: 68ch; padding: 1.75rem 0; border-top: 1px solid var(--cizgi); }
.proje:first-child { padding-top: 0; border-top: 0; }
.proje h2 { margin-bottom: .4rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
.proje p { margin-bottom: 0; }
.etiketler { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; padding: 0; list-style: none; }
.etiketler li { padding: .1rem .6rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 4px; color: var(--soluk); font-size: .85rem; }

.contact-form { display: grid; gap: 1.1rem; max-width: 560px; margin-top: 1.5rem; }
.contact-form .btn { justify-self: start; }
.tab-content p.form-not, .form-not { margin: 0; color: var(--soluk); font-size: .85rem; }
.contact-list { max-width: 560px; margin-top: 2.5rem; border-top: 1px solid var(--cizgi); }
.contact-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--cizgi); color: var(--metin); text-decoration: none; }
.contact-item:hover { color: var(--vurgu); }
.contact-item i { width: 1.25rem; color: var(--soluk); text-align: center; }
.contact-item strong { margin-right: .4rem; font-weight: 600; }

.alt { background: var(--yuzey); border-top: 1px solid var(--cizgi); color: var(--soluk); font-size: .85rem; }
.alt-ic { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; max-width: 960px; margin: 0 auto; padding: 1.25rem 1.5rem; }
.alt p { max-width: 62ch; }
#secretIcon { user-select: none; }

.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 32, .55); }
.modal-kutu { width: 100%; max-width: 540px; padding: 1.75rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.modal-kutu h2 { margin-bottom: 1rem; font-size: 1.2rem; font-weight: 650; }
.modal-metin { max-height: 300px; margin-bottom: 1.5rem; padding-right: .5rem; overflow-y: auto; }
.modal-metin p { margin-bottom: .8rem; font-size: .95rem; }
.modal-kutu .btn { width: 100%; }

/* ---------- Giriş ve 404 ---------- */
body.giris, body.hata { align-items: center; justify-content: center; padding: 1.5rem; }
.login-card, .error-card { width: 100%; max-width: 400px; padding: 2rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.login-card h2, .error-card h1 { margin-bottom: .4rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; }
.sub-title, .error-card p { margin-bottom: 1.5rem; color: var(--soluk); }
.error-code { margin-bottom: .75rem; color: var(--vurgu); font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.login-card .btn { width: 100%; margin-top: 1.1rem; }
.error-msg { margin-top: 1rem; padding: .7rem .9rem; background: var(--hata-acik); border: 1px solid var(--hata); border-radius: 6px; color: var(--hata); font-size: .92rem; }

/* ---------- Yönetim paneli ---------- */
body.panel { display: block; max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.panel .header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.panel .header h1 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 650; }
.logout-btn, .clear-btn, .btn-delete { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem 1rem; background: transparent; border: 1px solid var(--hata); border-radius: 6px; color: var(--hata); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.logout-btn:hover, .clear-btn:hover, .btn-delete:hover { background: var(--hata); color: var(--hata-ustu); }
.nav-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tab-group, .action-btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 6px; color: var(--soluk); font: inherit; font-weight: 600; cursor: pointer; }
.tab-btn:hover { color: var(--metin); }
.tab-btn.active { background: var(--vurgu); border-color: var(--vurgu); color: var(--vurgu-ustu); }
.section-content { display: none; }
.section-content.active { display: block; }

.dashboard-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.stat-card { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.stat-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: var(--vurgu-acik); border-radius: 6px; color: var(--vurgu); font-size: 1.1rem; }
.stat-info h3 { margin-bottom: .15rem; color: var(--soluk); font-size: .85rem; font-weight: 500; }
.stat-info span { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.analytics-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.chart-card { width: 100%; max-width: 450px; padding: 1.25rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.chart-card h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: 1rem; font-weight: 650; }
.chart-card canvas { max-height: 220px !important; }

.messages-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.message-card { padding: 1.25rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.message-card.unread { background: var(--vurgu-acik); border-color: var(--vurgu); }
.msg-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--cizgi); }
.msg-info h3 { margin-bottom: .2rem; font-size: 1.05rem; font-weight: 650; }
.msg-info a { font-size: .85rem; word-break: break-all; }
.msg-date { color: var(--soluk); font-size: .8rem; }
.msg-body { margin-bottom: 1.25rem; white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }
.msg-actions { display: flex; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--cizgi); }
.msg-actions form { flex: 1; display: flex; }
.btn-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; padding: .5rem; border-radius: 6px; font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-read { background: transparent; border: 1px solid var(--vurgu); color: var(--vurgu); }
.btn-read:hover { background: var(--vurgu); color: var(--vurgu-ustu); }

.table-wrapper { width: 100%; margin-bottom: 1.5rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid var(--cizgi); }
th { background: var(--zemin); color: var(--soluk); font-weight: 600; white-space: nowrap; }
tr:hover td { background: var(--zemin); }
td code { color: var(--vurgu); }
td.tarayici { color: var(--soluk); }
.empty-state { padding: 3rem; color: var(--soluk); text-align: center; }
.bot-rozet { padding: 1px 8px; background: var(--hata-acik); border: 1px solid var(--hata); border-radius: 4px; color: var(--hata); font-size: .75rem; font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: 2rem 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: .45rem .8rem; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 6px; color: var(--soluk); font-size: .9rem; font-weight: 600; text-decoration: none; }
.pagination a:hover { border-color: var(--vurgu); color: var(--vurgu); }
.pagination .active { background: var(--vurgu); border-color: var(--vurgu); color: var(--vurgu-ustu); }
.pagination .disabled { background: var(--zemin); color: var(--girdi); cursor: not-allowed; }
.pagination .dots { background: transparent; border-color: transparent; }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
    body.panel { padding: 1rem; }
    .panel .header { flex-direction: column; text-align: center; }
    .nav-tabs, .tab-group { flex-direction: column; align-items: stretch; }
    .tab-btn, .clear-btn { width: 100%; justify-content: center; }
    .action-btn-group { width: 100%; }
    .stat-card { min-width: 100%; }
    .messages-container { grid-template-columns: 1fr; }
    .pagination a, .pagination span { min-width: 32px; padding: .35rem .6rem; font-size: .8rem; }
}
@media (max-width: 560px) {
    .ust-ic { flex-direction: column; align-items: flex-start; gap: 0; padding-top: .5rem; }
    .marka { min-height: 40px; }
    .top-nav { margin-left: -.6rem; min-height: 44px; }
    .top-nav button { padding: 0 .6rem; font-size: .95rem; }
    .sayfa { padding: 2rem 1.25rem 3rem; }
    .tanitim { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .avatar-box { width: 112px; height: 112px; }
    .alanlar > div { grid-template-columns: 1fr; gap: .1rem; }
    .contact-form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
