/* ───────────────────────────────────────────────────────────────────────
   uzmanasor.app — tanıtım & duyuru sitesi (full-width, app temasıyla uyumlu)
   ─────────────────────────────────────────────────────────────────────── */
:root {
    --mk-amber:      #ffb600;
    --mk-amber-soft: #ffc931;
    --mk-bg:         #0f0f0f;
    --mk-bg-alt:     #141414;
    --mk-surface:    #1c1c1e;
    --mk-line:       #2a2a2d;
    --mk-text:       #ffffff;
    --mk-text-2:     #ffffff;   /* gri yok: ikincil yazılar da beyaz */
    --mk-text-dim:   #ffffff;   /* gri yok: en sönük yazılar da beyaz */
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--mk-bg);
    color: var(--mk-text);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, .mk-brand { font-family: 'Outfit', 'Inter', sans-serif; }

a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────────────────── */
.mk-header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px clamp(16px, 5vw, 64px);
    background: rgba(15,15,15,0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mk-line);
}
.mk-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
}
.mk-brand .dot { color: var(--mk-amber); }
.mk-logo {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--mk-amber), var(--mk-amber-soft));
    display: grid; place-items: center;
    font-size: 1.1rem; font-weight: 800; color: #0f0f0f;
}
.mk-logo-img {
    width: 38px; height: 38px; border-radius: 10px; object-fit: cover;
    box-shadow: 0 0 0 1px #2a2a2d, 0 4px 16px rgba(255,182,0,0.18);
    animation: mk-logo-glow 4s ease-in-out infinite;
}
@keyframes mk-logo-glow {
    0%,100% { box-shadow: 0 0 0 1px #2a2a2d, 0 4px 16px rgba(255,182,0,0.15); }
    50%     { box-shadow: 0 0 0 1px #3a3a2d, 0 6px 24px rgba(255,182,0,0.40); }
}
.mk-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.mk-nav a { color: var(--mk-text-2); font-size: 0.95rem; font-weight: 500; transition: color .15s; }
.mk-nav a:hover, .mk-nav a.active { color: var(--mk-text); }
.mk-nav .mk-cta { color: #0f0f0f; }

.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 12px;
    background-color: #f0a000;                 /* solid fallback (renders even if gradient fails) */
    background-image: linear-gradient(135deg, #e69500, #ffb600);
    color: #ffffff; font-weight: 800; font-size: 0.98rem;
    text-shadow: 0 1px 3px rgba(110,65,0,0.6);
    border: none; cursor: pointer; transition: transform .12s, box-shadow .12s, filter .12s;
    box-shadow: 0 6px 20px rgba(255,182,0,0.30);
}
.mk-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 28px rgba(255,182,0,0.45); }
.mk-btn.ghost {
    background-color: transparent; background-image: none; color: #ffffff;
    border: 1px solid rgba(255,255,255,0.30); box-shadow: none;
}
.mk-btn.ghost:hover { filter: none; }
.mk-btn.ghost:hover { border-color: var(--mk-amber); color: var(--mk-amber); }
.mk-btn.disabled {
    background-color: #f0a000;
    background-image: linear-gradient(135deg, #e69500, #ffb600);
    color: #ffffff; text-shadow: 0 1px 3px rgba(110,65,0,0.6);
    box-shadow: 0 6px 20px rgba(255,182,0,0.22);
    cursor: not-allowed; pointer-events: none; opacity: 0.92;
}

/* ── İndir sayfası (mağaza kartları) ─────────────────────────────────── */
.mk-store-grid {
    display: grid; gap: 18px; padding: 30px 0 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 0 auto;
}
.mk-store-card {
    background: var(--mk-bg-alt); border: 1px solid var(--mk-line);
    border-radius: 18px; padding: 34px 26px; text-align: center;
}
.mk-store-card .ico { font-size: 2.6rem; margin-bottom: 14px; }
.mk-store-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.mk-store-card p { margin: 0 0 20px; color: var(--mk-text-2); font-size: 0.92rem; }
.mk-soon-note { text-align: center; color: var(--mk-text-2); padding: 8px 0 60px; }
.mk-soon-note a { color: var(--mk-amber); }

/* ── Layout shell ───────────────────────────────────────────────────── */
.mk-main { min-height: calc(100vh - 200px); }
.mk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.mk-hero {
    position: relative; overflow: hidden;
    padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 8vw, 90px);
    text-align: center;
}
.mk-hero::before { display: none; }  /* glow artık tüm-sayfa liquid'de */
@keyframes mk-glow-pulse {
    0%,100% { opacity: 0.7; transform: scale(1); }
    50%     { opacity: 1;   transform: scale(1.08); }
}
/* WebGL fluid gradient canvas (Stripe-style). Low internal res, CSS-upscaled. */
/* Full-page fixed liquid background — covers the whole homepage, stays put while content scrolls */
.mk-liquid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Mobil: fixed WebGL katmanı kaydırırken donmaya yol açıyor → absolute yap ama
   TÜM SAYFAYI kapla (inset:0). İçerikle birlikte kayar (sabit-katman donması yok),
   liquid her yerde görünür. */
@media (max-width: 760px) {
    .mk-main { position: relative; }
    .mk-liquid-bg { position: absolute; inset: 0; height: auto; }
}
.mk-bg-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; display: block;
}
/* Contrast veil so text stays readable over the whole-page gradient */
.mk-bg-veil {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: rgba(15,15,15,0.46);
}
/* All homepage content sits above the fixed liquid */
.mk-main section { position: relative; z-index: 1; }
.mk-footer { position: relative; z-index: 1; background: rgba(10,10,10,0.55); }

/* Drifting aurora — CSS fallback (shown only if WebGL canvas fails) */
.mk-liquid-bg .aurora {
    position: absolute; inset: -25% -15%; z-index: 0; pointer-events: none;
    filter: blur(70px); opacity: 0.6; will-change: transform;
    background:
        radial-gradient(38% 38% at 18% 28%, rgba(255,182,0,0.40), transparent 60%),
        radial-gradient(34% 34% at 82% 18%, rgba(255,110,0,0.28), transparent 60%),
        radial-gradient(44% 44% at 62% 82%, rgba(255,201,49,0.34), transparent 60%),
        radial-gradient(30% 30% at 35% 75%, rgba(255,150,0,0.24), transparent 60%);
    animation: mk-aurora 18s ease-in-out infinite;
}
@keyframes mk-aurora {
    0%,100% { transform: translate(0,0) scale(1)   rotate(0deg); }
    33%     { transform: translate(4%,-3%) scale(1.12) rotate(4deg); }
    66%     { transform: translate(-4%,3%) scale(1.06) rotate(-3deg); }
}

/* Rotating profession word — "Bir [mühendise/doktora/…] sor." */
.mk-rot-line {
    font-family: 'Outfit','Inter',sans-serif;
    font-size: clamp(1.3rem, 3.4vw, 2.1rem); font-weight: 700; color: #fff;
    margin: 0 0 18px; display: inline-flex; align-items: baseline; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.mk-rot { display: inline-block; height: 1.4em; line-height: 1.4em; overflow: hidden; vertical-align: bottom; }
.mk-rot-inner { display: flex; flex-direction: column; animation: mk-roll 12s cubic-bezier(.85,0,.15,1) infinite; }
.mk-rot-inner b { height: 1.4em; line-height: 1.4em; color: #ffc107; font-weight: 800; white-space: nowrap; text-shadow: 0 0 22px rgba(255,182,0,0.45); }
@keyframes mk-roll {
    0%,11%   { transform: translateY(0); }
    14%,25%  { transform: translateY(-1.4em); }
    28%,39%  { transform: translateY(-2.8em); }
    42%,53%  { transform: translateY(-4.2em); }
    56%,67%  { transform: translateY(-5.6em); }
    70%,81%  { transform: translateY(-7em); }
    84%,100% { transform: translateY(-8.4em); }
}

/* Floating depth orbs (GPU-only transform/opacity) */
.mk-hero .orb {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,201,49,0.45), rgba(255,182,0,0.10) 60%, transparent 72%);
    filter: blur(10px); will-change: transform;
}
.mk-hero .orb.o1 { width: 220px; height: 220px; top: 8%;   left: 6%;   animation: mk-float1 11s ease-in-out infinite; }
.mk-hero .orb.o2 { width: 150px; height: 150px; top: 18%;  right: 8%;  animation: mk-float2 9s  ease-in-out infinite; }
.mk-hero .orb.o3 { width: 110px; height: 110px; bottom: 10%; left: 16%; animation: mk-float3 13s ease-in-out infinite; }
.mk-hero .orb.o4 { width: 80px;  height: 80px;  bottom: 22%; right: 20%; animation: mk-float1 15s ease-in-out infinite; }
@keyframes mk-float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px,-34px) scale(1.08); } }
@keyframes mk-float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,28px) scale(1.1); } }
@keyframes mk-float3 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(18px,16px); } 66% { transform: translate(-14px,-12px); } }
.mk-hero .mk-wrap { position: relative; z-index: 3; }
.mk-hero .pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 100px; margin-bottom: 26px;
    background: var(--mk-surface); border: 1px solid var(--mk-line);
    font-size: 0.85rem; color: var(--mk-text-2);
}
.mk-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05;
    margin: 0 0 20px; letter-spacing: -0.03em; font-weight: 800;
}
.mk-hero h1 .hl {
    color: #ffc107;
    text-shadow: 0 0 26px rgba(255,182,0,0.45);
}

/* Blazor FocusOnNavigate focuses <h1> (tabindex -1) → kill the focus box */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus, .mk-main :focus:not(input):not(textarea):not(button):not(a) { outline: none !important; }
.mk-hero p.lead {
    max-width: 640px; margin: 0 auto 36px;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--mk-text-2); line-height: 1.6;
    text-wrap: balance;   /* satırları nizami böl */
}
.mk-hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Feature grid ───────────────────────────────────────────────────── */
.mk-section { padding: clamp(40px, 7vw, 80px) 0; }
.mk-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); text-align: center;
    margin: 0 0 12px; letter-spacing: -0.02em;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.mk-page-head h1, .mk-section .sub { text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.mk-section .sub { text-align: center; color: var(--mk-text-2); margin: 0 auto 48px; max-width: 560px; }
.mk-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.mk-card {
    background: var(--mk-bg-alt); border: 1px solid var(--mk-line);
    border-radius: 18px; padding: 28px 24px;
    transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
    transform-style: preserve-3d; will-change: transform;
}
.mk-card:hover {
    border-color: rgba(255,182,0,0.45);
    transform: perspective(900px) rotateX(5deg) translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,182,0,0.15);
}
.mk-card .ico { animation: mk-bob 4s ease-in-out infinite; }
.mk-card:nth-child(2n) .ico { animation-delay: .6s; }
.mk-card:nth-child(3n) .ico { animation-delay: 1.2s; }
.mk-card:hover .ico { animation-play-state: paused; transform: scale(1.12); }
@keyframes mk-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.mk-card .ico {
    width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
    background: rgba(255,182,0,0.12); display: grid; place-items: center; font-size: 1.5rem;
}
.mk-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.mk-card p { margin: 0; color: var(--mk-text-2); font-size: 0.95rem; line-height: 1.55; }

/* ── CTA band ───────────────────────────────────────────────────────── */
.mk-cta-band {
    margin: 20px auto; max-width: 1080px;
    background: linear-gradient(135deg, rgba(255,182,0,0.12), rgba(255,182,0,0.03));
    border: 1px solid rgba(255,182,0,0.3); border-radius: 24px;
    padding: clamp(34px, 6vw, 60px); text-align: center;
}
.mk-cta-band h2 { margin: 0 0 12px; }
.mk-cta-band p { color: var(--mk-text-2); margin: 0 0 28px; }

/* ── Duyurular ──────────────────────────────────────────────────────── */
.mk-page-head { padding: clamp(40px,7vw,70px) 0 10px; text-align: center; }
.mk-page-head h1 { font-size: clamp(1.9rem,5vw,3rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.mk-page-head p { color: var(--mk-text-2); margin: 0; }

.mk-ann-list { display: flex; flex-direction: column; gap: 16px; padding: 30px 0 60px; }
.mk-ann {
    background: var(--mk-bg-alt); border: 1px solid var(--mk-line);
    border-radius: 16px; padding: 24px 26px; position: relative;
}
.mk-ann.pinned { border-color: rgba(255,182,0,0.45); }
.mk-ann .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mk-ann h3 { margin: 0; font-size: 1.2rem; }
.mk-ann .pin-tag {
    font-size: 0.7rem; font-weight: 700; color: var(--mk-amber);
    background: rgba(255,182,0,0.12); padding: 3px 9px; border-radius: 7px;
}
.mk-ann .meta { color: var(--mk-text-dim); font-size: 0.82rem; margin-bottom: 14px; }
.mk-ann .body { color: var(--mk-text-2); line-height: 1.65; white-space: pre-wrap; }
.mk-ann .del {
    position: absolute; top: 18px; right: 18px;
    background: transparent; border: 1px solid var(--mk-line); color: var(--mk-text-2);
    border-radius: 8px; padding: 5px 11px; cursor: pointer; font-size: 0.8rem;
}
.mk-ann .del:hover { border-color: #e5484d; color: #e5484d; }

.mk-empty { text-align: center; color: var(--mk-text-dim); padding: 70px 20px; }
.mk-empty .em { font-size: 3rem; margin-bottom: 14px; }

/* ── Yönetim (admin) ────────────────────────────────────────────────── */
.mk-admin { max-width: 640px; margin: 0 auto; padding: clamp(40px,7vw,70px) 0 70px; }
.mk-panel {
    background: var(--mk-bg-alt); border: 1px solid var(--mk-line);
    border-radius: 18px; padding: 30px;
}
.mk-panel h2 { margin: 0 0 6px; }
.mk-panel .hint { color: var(--mk-text-2); font-size: 0.9rem; margin: 0 0 22px; }
.mk-field { margin-bottom: 16px; }
.mk-field label { display: block; font-size: 0.85rem; color: var(--mk-text-2); margin-bottom: 6px; }
.mk-input, .mk-textarea {
    width: 100%; padding: 12px 14px; border-radius: 11px;
    background: var(--mk-surface); border: 1px solid var(--mk-line); color: var(--mk-text);
    font-size: 0.98rem; font-family: inherit; outline: none; transition: border-color .15s;
}
.mk-input:focus, .mk-textarea:focus { border-color: var(--mk-amber); }
.mk-textarea { min-height: 150px; resize: vertical; }
.mk-check { display: flex; align-items: center; gap: 9px; color: var(--mk-text-2); font-size: 0.92rem; }
.mk-err { color: #e5484d; font-size: 0.88rem; margin: 10px 0 0; }
.mk-ok  { color: #2ecc71; font-size: 0.88rem; margin: 10px 0 0; }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.mk-footer {
    border-top: 1px solid var(--mk-line); padding: 36px clamp(16px,5vw,64px);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; color: var(--mk-text-dim); font-size: 0.88rem;
}
.mk-footer .links { display: flex; gap: 20px; }
.mk-footer .links a:hover { color: var(--mk-text-2); }

@media (max-width: 720px) {
    .mk-nav a.hide-sm { display: none; }       /* dar ekranda metin linkleri gizli → logo + İndir */
    .mk-header { padding: 11px 16px; gap: 10px; }
    .mk-brand { font-size: 1.12rem; gap: 8px; }
    .mk-logo-img { width: 32px; height: 32px; }
    .mk-nav .mk-btn { padding: 9px 18px; font-size: 0.9rem; }
}
@media (max-width: 380px) {
    .mk-brand { font-size: 1rem; }             /* çok dar: marka yazısı kalır, küçülür */
    .mk-logo-img { width: 28px; height: 28px; }
}

/* ── Duyuru önizleme kartları (sonoyuncu tarzı) ─────────────────────── */
.mk-news-grid {
    display: grid; gap: 20px; padding: 6px 0 60px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.mk-news-card {
    display: flex; flex-direction: column; position: relative;
    background: var(--mk-bg-alt); border: 1px solid var(--mk-line);
    border-radius: 18px; overflow: hidden; color: inherit;
    transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s;
}
.mk-news-card:hover { transform: translateY(-5px); border-color: rgba(255,182,0,0.5); box-shadow: 0 16px 38px rgba(0,0,0,0.45); }
.mk-news-card.pinned { border-color: rgba(255,182,0,0.55); }
.mk-news-cover { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.mk-news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.mk-news-card:hover .mk-news-cover img { transform: scale(1.05); }
.mk-news-cover-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem;
    background: linear-gradient(135deg, #1c1813, #2a1f08); }
.mk-news-cover .pin-tag { position: absolute; top: 10px; left: 10px; }
.mk-news-info { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mk-news-info h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.mk-news-info .meta { color: var(--mk-text-dim); font-size: 0.8rem; margin-bottom: 10px; }
.mk-news-info p { margin: 0 0 14px; color: var(--mk-text-2); font-size: 0.94rem; line-height: 1.55; flex: 1; }
.mk-news-more { color: var(--mk-amber); font-weight: 700; font-size: 0.9rem; }
.mk-news-card .del {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(0,0,0,0.6); border: 1px solid var(--mk-line); color: #fff;
    border-radius: 8px; padding: 5px 11px; cursor: pointer; font-size: 0.8rem;
}
.mk-news-card .del:hover { border-color: #e5484d; color: #e5484d; }

/* ── Duyuru detay sayfası ───────────────────────────────────────────── */
.mk-detail { padding: 30px 0 70px; max-width: 820px; }
.mk-back { display: inline-block; color: var(--mk-amber); font-weight: 600; margin-bottom: 20px; }
.mk-article-cover { width: 100%; border-radius: 18px; margin-bottom: 22px; display: block; }
.mk-article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--mk-text-dim); font-size: 0.85rem; margin-bottom: 12px; }
.mk-article h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1.12; margin: 0 0 22px; letter-spacing: -0.02em; }
.mk-article-body { color: var(--mk-text-2); font-size: 1.08rem; line-height: 1.75; white-space: pre-wrap; }

/* ── Admin: kapak önizleme ──────────────────────────────────────────── */
.mk-cover-prev { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--mk-line); }
.mk-cover-prev img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.mk-cover-del { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.65);
    border: 1px solid var(--mk-line); color: #fff; border-radius: 8px; padding: 5px 11px; cursor: pointer; font-size: 0.82rem; }
.mk-cover-del:hover { border-color: #e5484d; color: #e5484d; }

/* ── Scroll reveal (IntersectionObserver adds .in) ──────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* staggered children for grids/lists */
.reveal.in .mk-card, .reveal.in .mk-ann { animation: mk-rise .55s both; }
.reveal.in .mk-card:nth-child(2), .reveal.in .mk-ann:nth-child(2) { animation-delay: .07s; }
.reveal.in .mk-card:nth-child(3), .reveal.in .mk-ann:nth-child(3) { animation-delay: .14s; }
.reveal.in .mk-card:nth-child(4) { animation-delay: .21s; }
.reveal.in .mk-card:nth-child(5) { animation-delay: .28s; }
.reveal.in .mk-card:nth-child(6) { animation-delay: .35s; }
@keyframes mk-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.mk-hero h1 { animation: mk-rise .7s both; }
.mk-hero .pill { animation: mk-rise .6s both; }
.mk-hero p.lead { animation: mk-rise .8s both; }
.mk-hero .actions { animation: mk-rise .9s both; }

/* Accessibility: honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, .reveal, .mk-card, .mk-hero::before, .mk-logo-img, .mk-hero .orb {
        animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important;
    }
}
