:root {
    --bg: #07090d;
    --bg-elev: #10151c;
    --bg-card: #131a23;
    --line: rgba(180, 220, 210, 0.12);
    --text: #e8eef4;
    --muted: #8b9cb0;
    --accent: #ff2a4d;
    --accent-dim: #c8102e;
    --danger: #ff6b7a;
    --max: 1120px;
    --siber: #ff5d6c;
    --yz: #c084fc;
    --teknoloji: #38bdf8;
    --dijital-haklar: #34d399;
    --kose: #fbbf24;
    --rehber: #60a5fa;
    --font: "Outfit", system-ui, sans-serif;
    --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(255, 42, 77, 0.10), transparent 50%),
        linear-gradient(180deg, #0b1017 0%, var(--bg) 220px);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 20;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 13, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.85rem 1.25rem 0.4rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.logo {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-decoration: none !important;
    white-space: nowrap;
}
.logo-cyber { color: var(--accent); }
.logo-news { color: #fff; }

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.9rem;
    flex: 1;
}
.nav-link {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active {
    color: var(--accent);
    text-decoration: none;
    border-bottom-color: var(--accent);
}
.header-social { display: flex; gap: 0.45rem; }
.social-icon {
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.social-icon svg { width: 0.95rem; height: 0.95rem; }
.social-icon:hover { color: var(--accent); text-decoration: none; border-color: var(--accent); }
.header-tagline {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem 0.7rem;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-burger {
    display: none;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    cursor: pointer;
    margin-left: auto;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block;
    height: 2px;
    width: 1.1rem;
    background: var(--text);
    position: relative;
    margin: 0.95rem auto 0;
}
.nav-burger span::before, .nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
    margin: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.hero { margin-bottom: 2.5rem; }
.hero-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--bg-card);
    color: inherit;
    text-decoration: none !important;
    min-height: 380px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}
.hero-fallback, .card-fallback {
    background: linear-gradient(135deg, #2a1014 0%, #ff2a4d55 40%, #0a0a0c 100%);
    min-height: 220px;
}
.hero-copy { padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
    margin: 0.6rem 0 0.8rem;
    font-weight: 650;
}
.deck { color: var(--muted); font-size: 1.1rem; margin: 0 0 1rem; }
.byline { color: var(--muted); font-size: 0.88rem; margin: 0; }

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    background: rgba(10, 10, 14, 0.88);
    color: #fff;
    width: fit-content;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.12);
}
.badge-siber { background: rgba(120, 10, 28, 0.95); color: #ffe4e8; border-color: rgba(255,42,77,.5); }
.badge-yz { background: rgba(60, 20, 90, 0.95); color: #f3e8ff; border-color: rgba(192,132,252,.45); }
.badge-teknoloji { background: rgba(8, 50, 80, 0.95); color: #e0f2fe; border-color: rgba(56,189,248,.45); }
.badge-dijital-haklar { background: rgba(8, 60, 45, 0.95); color: #d1fae5; border-color: rgba(52,211,153,.45); }
.badge-kose { background: rgba(70, 45, 5, 0.95); color: #fef3c7; border-color: rgba(251,191,36,.45); }
.badge-rehber { background: rgba(15, 45, 90, 0.95); color: #dbeafe; border-color: rgba(96,165,250,.45); }
.card-media .badge, .hero-slide .badge {
    backdrop-filter: blur(4px);
}

.section { margin: 2.4rem 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}
.section-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.section-head p, .section-more { color: var(--muted); font-size: 0.9rem; margin: 0; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    overflow: hidden;
}
.card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.card a:hover h3 { color: var(--accent); }
.card-media { position: relative; }
.card-media img, .card-fallback { width: 100%; height: 180px; object-fit: cover; }
.card-media .badge { position: absolute; left: 0.7rem; top: 0.7rem; }
.card h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0.85rem 1rem 0.4rem;
}
.card p { margin: 0 1rem 0.5rem; color: var(--muted); font-size: 0.92rem; }
.card .byline { margin: 0 1rem 1rem; }

.article-page { max-width: 760px; margin: 0 auto; }
.article-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--line);
}
.article-page h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.15;
    margin: 0.6rem 0;
}
.article-body { font-size: 1.08rem; }
.article-body h2, .article-body h3 { font-family: var(--font); margin-top: 1.8rem; color: var(--accent); font-size: 1.25rem; line-height: 1.35; }
.article-body p { margin: 1rem 0; }
.article-body a { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.4rem 0;
    padding: 0.2rem 0 0.2rem 1rem;
    color: var(--muted);
}
.article-body img { border-radius: 0.6rem; margin: 1rem 0; }
.article-body code, .codey {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
}
.article-body pre {
    background: #0c1218;
    border: 1px solid var(--line);
    padding: 1rem;
    overflow: auto;
    border-radius: 0.6rem;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2.5rem 0 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}
.share-bar p { margin: 0 0.5rem 0 0; font-weight: 600; }
.share-btn {
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none !important;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn.is-copied { border-color: var(--accent); color: var(--accent); }

.page-head h1 { font-family: var(--serif); font-size: 2.4rem; margin: 0.2rem 0; }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-size: 0.78rem; font-weight: 700; margin: 0; }
.empty, .empty-home { color: var(--muted); }
.not-found { padding: 3rem 0; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
}

.pagination { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; color: var(--muted); }

.site-footer {
    border-top: 1px solid var(--line);
    background: #05070a;
    padding: 2.5rem 1.25rem 1.5rem;
}
.footer-grid {
    max-width: var(--max);
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: var(--text); }
.footer-about { color: var(--muted); }
.copyright {
    max-width: var(--max);
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}
.flash { max-width: var(--max); margin: 0.8rem auto; padding: 0.7rem 1rem; border-radius: 0.5rem; }
.flash-ok { background: rgba(255, 42, 77, 0.15); }
.flash-error { background: rgba(255, 107, 122, 0.15); color: var(--danger); }

@media (max-width: 900px) {
    .hero-card, .card-grid, .card-grid-3, .footer-grid { grid-template-columns: 1fr; }
    .hero-image { min-height: 220px; }
    .header-social { display: none; }
    .nav-burger { display: block; }
    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #0c1118;
        border-bottom: 1px solid var(--line);
        padding: 0.8rem 1.25rem 1rem;
        flex-direction: column;
    }
    .nav-toggle:checked ~ .nav { display: flex; }
    .header-inner { position: relative; flex-wrap: wrap; }
}


/* Hero slideshow */
.hero-slider {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-card);
}
.hero-track { position: relative; width: 100%; }
.hero-slide {
    display: none;
    text-decoration: none !important;
    color: inherit;
    width: 100%;
}
.hero-slide.is-active { display: block; }
.hero-slide-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 360px;
}
.hero-slide .hero-image,
.hero-slide .hero-fallback {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}
.hero-slide .hero-copy {
    padding: 1.5rem 1.4rem 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    background: var(--bg-card);
}
.hero-nav {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 5;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
}
.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 0;
}
.hero-dot.is-active { background: var(--accent); width: 1.45rem; }
.hero-arrows {
    position: absolute;
    inset: 40% 0.4rem auto 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 4;
}
.hero-arrows button {
    pointer-events: auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.6);
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}
@media (max-width: 800px) {
    .hero-slide-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-slide .hero-image,
    .hero-slide .hero-fallback {
        min-height: 200px;
        max-height: 240px;
    }
    .hero-slide .hero-copy {
        padding: 1rem 1rem 3.4rem;
        background: #0c1118;
    }
    .hero-slide .hero-copy h1 {
        font-size: 1.35rem;
        margin: 0.35rem 0;
    }
    .hero-slide .deck { font-size: 0.95rem; margin: 0; }
    .hero-arrows { inset: 90px 0.35rem auto 0.35rem; }
}
