/* ===== TEKNOLOJIK TEMA — MustafaKARSLI.com ===== */

:root {
    --mk-bg: #070b14;
    --mk-surface: #ffffff;
    --mk-accent: #06b6d4;
    --mk-accent2: #3b82f6;
    --mk-glow: rgba(6, 182, 212, 0.35);
}

/* Arka plan ızgarası */
body {
    background-color: #f0f4f8;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* Navigasyon */
.glass-nav {
    background: rgba(7, 11, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}
.glass-nav a.nav-link {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.glass-nav a.nav-link:hover,
.glass-nav a.nav-link.active {
    color: #22d3ee;
}
.tech-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}
.logo-glow {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Duyuru bandı */
.ticker-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

/* Tech kart */
.tech-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Manşet hero */
.hero-manset {
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
.hero-with-widgets {
    min-height: 420px;
    height: auto;
}
@media (min-width: 1024px) {
    .hero-with-widgets {
        height: 520px;
        min-height: 520px;
    }
}
.hero-manset::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Manşet üzerindeki widget'lar */
.hero-widgets-overlay {
    padding: 0.25rem;
}
.hero-widget-card {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.hero-widget-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-widget-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.hero-widget-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.02em;
}

/* İçerik bölüm blokları */
.section-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.section-block.alt {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.section-block-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.875rem;
    margin-bottom: 1rem;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}
.section-accent {
    display: block;
    width: 4px;
    height: 1.25rem;
    border-radius: 9999px;
    flex-shrink: 0;
}
.section-esma { border-left: 4px solid #10b981; }
.section-soz  { border-left: 4px solid #8b5cf6; }
.section-duyurular { border-top: 3px solid #f97316; }
.section-makaleler { border-top: 3px solid #2563eb; }
.section-oneri     { border-top: 3px solid #f59e0b; }
.section-yorumlar  { border-top: 3px solid #8b5cf6; }

/* Alt kart stilleri */
.duyuru-mini-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.duyuru-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.12);
}
.makale-mini-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.makale-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}
.oneri-mini-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.875rem;
    transition: all 0.2s;
}
.oneri-mini-card:hover {
    background: #fef3c7;
    border-color: #fbbf24;
}
.yorum-mini-card {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 0.875rem;
}

.sidebar-below-hero {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 0.75rem;
}
.hero-badge {
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 0 20px var(--mk-glow);
}
.hero-cat-badge {
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.25);
    border: 1px solid rgba(34, 211, 238, 0.5);
    backdrop-filter: blur(4px);
}
.hero-title {
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 24px rgba(0,0,0,0.6);
}
.hero-desc {
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.hero-text-panel {
    background: linear-gradient(to top, rgba(2,6,23,0.85) 0%, rgba(2,6,23,0.4) 70%, transparent 100%);
    margin: 0 -1.75rem -1.75rem;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 0 0 2rem 2rem;
}
@media (min-width: 768px) {
    .hero-text-panel {
        margin: 0 -3rem -3rem;
        padding: 2.5rem 3rem 3rem;
    }
}

/* İstatistik kutuları */
.stat-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1.25rem;
    color: #fff;
}
.stat-box .stat-num {
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ders numarası rozeti */
.ders-badge {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #22d3ee;
    font-family: ui-monospace, monospace;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
}

/* Sidebar widget */
.widget-tech {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}
.sidebar-panel {
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.widget-tech .widget-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.875rem;
    margin-bottom: 0.875rem;
    border-bottom: 2px solid #f1f5f9;
}
.widget-tech .widget-head h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.widget-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Kategori chip */
.kat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s;
    white-space: nowrap;
}
.kat-chip:hover {
    background: #0f172a;
    color: #22d3ee;
    border-color: #22d3ee;
    transform: translateY(-2px);
}
.kat-chip .kat-count {
    background: #f1f5f9;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    color: #64748b;
}
.kat-chip:hover .kat-count {
    background: rgba(6,182,212,0.2);
    color: #22d3ee;
}

/* Makale içeriği */
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}
.article-content h2 { font-size: 1.5rem; border-left: 4px solid #06b6d4; padding-left: 1rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content p { margin-bottom: 1.25em; line-height: 1.85; }
.article-content a { color: #0891b2; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #0e7490; }
.article-content img {
    border-radius: 1rem;
    margin: 1.5em auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}
.article-content ul, .article-content ol { margin: 1em 0 1.5em 1.5em; }
.article-content li { margin-bottom: 0.5em; }
.article-content blockquote {
    border-left: 4px solid #06b6d4;
    padding: 1rem 1.25rem;
    margin: 1.5em 0;
    background: #f0fdfa;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #475569;
}
.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid rgba(6,182,212,0.2);
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
}
.article-content code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.15em 0.4em;
    border-radius: 0.35rem;
    font-family: ui-monospace, monospace;
    font-size: 0.875em;
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.article-content th, .article-content td { border: 1px solid #e2e8f0; padding: 0.75rem 1rem; }
.article-content th { background: #f8fafc; font-weight: 700; }

/* Ders navigasyonu */
.ders-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.ders-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.2s;
    font-size: 0.8rem;
}
.ders-nav a:hover { background: #0f172a; border-color: #06b6d4; color: #fff; }
.ders-nav a:hover .ders-nav-label { color: #22d3ee; }
.ders-nav-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; color: #94a3b8; text-transform: uppercase; }
.ders-nav.next { text-align: right; }

/* Scrollbar gizle */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Mobil menü */
#mobile-menu { transition: opacity 0.25s ease, visibility 0.25s ease; }
#mobile-menu.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#mobile-menu:not(.hidden) { opacity: 1; visibility: visible; }

/* Yukarı çık */
#scroll-top { transition: opacity 0.3s, transform 0.3s, visibility 0.3s; }
#scroll-top.hidden-btn { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }

/* Kategori gizle/göster */
.kategori-gizli { display: none; }
.kategori-gizli.acik { display: flex; }

/* Animasyonlar */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(6,182,212,0.3); }
    50% { box-shadow: 0 0 20px rgba(6,182,212,0.6); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s ease forwards; }
