/* Blog sayfaları için ortak stiller (index.html temasıyla uyumlu) */
:root {
    --bg-dark: #050505;
    --bg-panel: rgba(20, 20, 35, 0.6);
    --neon-blue: #00f3ff;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#canvas-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 4px; }

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
}

.nav-links { display: flex; }
.nav-links li { margin-left: 30px; }

.nav-links a {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.nav-links a::before { content: '<'; margin-right: 5px; color: var(--neon-blue); opacity: 0; transition: var(--transition); }
.nav-links a::after { content: '/>'; margin-left: 5px; color: var(--neon-blue); opacity: 0; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--neon-blue); }
.nav-links a:hover::before, .nav-links a:hover::after,
.nav-links a.active::before, .nav-links a.active::after { opacity: 1; }

.hamburger {
    display: none;
    color: var(--neon-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    padding: 140px 0 80px;
    min-height: 100vh;
}

/* --- LİSTE SAYFASI --- */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--neon-blue);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--neon-blue);
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin: 20px 0 60px;
}

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

.blog-card {
    background: #0f0f13;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    transform: translateY(-6px);
}

.blog-card-img {
    height: 190px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.06); }

/* Kapak resmi yoksa / yüklenemezse gösterilen alan */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #0b1a24, #120b24);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    color: var(--neon-blue);
    font-size: 3rem;
    opacity: 0.8;
}

.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-body h2 {
    font-size: 1.15rem;
    margin: 12px 0 10px;
    line-height: 1.4;
}

.blog-card-body p {
    color: #a0a0a0;
    font-size: 1rem;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--neon-blue);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tag {
    color: var(--neon-blue);
    border: 1px solid rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.05);
    padding: 1px 8px;
    border-radius: 4px;
}

.status-message {
    text-align: center;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    padding: 40px 0;
}

/* --- DETAY SAYFASI --- */
.post {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 30px;
}

.back-link:hover { text-shadow: 0 0 10px var(--neon-blue); }

.post-header h1 {
    font-size: 2.3rem;
    line-height: 1.25;
    margin: 15px 0;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    border-left: 3px solid var(--neon-blue);
    padding-left: 15px;
    margin-bottom: 30px;
}

.post-cover {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a35;
    margin-bottom: 40px;
}

.post-cover img {
    width: 100%;
    display: block;
}

.post-content {
    font-size: 1.2rem;
}

.post-content p { margin-bottom: 22px; }

.post-content h2 {
    font-size: 1.4rem;
    color: var(--neon-blue);
    margin: 45px 0 18px;
}

.post-content ul {
    margin: 0 0 22px;
}

.post-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.post-content li::before {
    content: '>';
    position: absolute;
    left: 6px;
    color: var(--neon-blue);
    font-family: 'Fira Code', monospace;
}

.post-content blockquote {
    border-left: 3px solid var(--neon-blue);
    background: rgba(0, 243, 255, 0.05);
    padding: 18px 22px;
    margin: 0 0 22px;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content figure { margin: 30px 0; }

.post-content figure img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #2a2a35;
    display: block;
}

.post-content figcaption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

.code-block {
    position: relative;
    margin: 0 0 26px;
}

.code-block pre {
    background: #0b0b10;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 22px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cfd8e3;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 243, 255, 0.08);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 4px;
    padding: 3px 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    cursor: pointer;
}

.copy-btn:hover { background: rgba(0, 243, 255, 0.18); }

/* --- FOOTER --- */
footer {
    background: #020202;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.copyright {
    color: #555;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }

    .nav-links.active { clip-path: circle(140% at 100% 0); }
    .nav-links li { margin: 15px 0; }
    .hamburger { display: block; }

    main { padding-top: 120px; }
    .page-title { font-size: 1.8rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-header h1 { font-size: 1.6rem; }
    .post-subtitle { font-size: 1.1rem; }
    .post-content { font-size: 1.1rem; }
}
