* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    background: rgba(15, 12, 41, 0.95);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO Stilleri (Nova Forge) */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #00d4ff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
    margin: 2rem 0;
    border-radius: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

/* Blog Grid ve Kart Stilleri */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

/* **GÖRSEL GÜNCELLEMESİ** */
.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden; /* Resim sığmazsa taşmayı önler */
}

/* Kart Kapak Resmi (image_url ile yüklenirse) */
.card-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi, blog-image container'ını tamamen kaplayacak şekilde boyutlandırır */
    transition: transform 0.3s ease;
}

/* Kart üzerine gelindiğinde resmi hafifçe büyütme efekti */
.blog-card:hover .card-cover-image {
    transform: scale(1.05);
}
/* **GÖRSEL GÜNCELLEMESİ SONU** */

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.blog-excerpt {
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #808080;
    font-size: 0.9rem;
}

.read-more {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #7b2ff7;
}

/* FOOTER Stilleri */
footer {
    background: rgba(15, 12, 41, 0.95);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #00d4ff;
    transform: scale(1.2);
}

/* **DETAY SAYFASI STİLLERİ** */

.blog-detail-content {
    padding-top: 2rem;
}

.detail-title {
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    background: linear-gradient(45deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-category {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-meta {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.detail-content-body {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.detail-content-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.detail-content-body h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
    border-left: 4px solid #7b2ff7;
    padding-left: 15px;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    font-size: 1.1rem;
    color: #7b2ff7;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #00d4ff;
}

/* Media Queries */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 2.5rem;
    }
}

/* ============================= */
/* RESPONSIVE NAV / MOBILE MENU */
/* ============================= */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

/* Mobil görünüm */
@media (max-width: 768px) {

    header {
        padding: 1.5rem 0;
    }

    nav ul {
        position: absolute;
        top: 90px;
        right: 2rem;
        flex-direction: column;
        background: rgba(15, 12, 41, 0.98);
        padding: 1.5rem 2rem;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
        display: none;
        gap: 1.2rem;
        z-index: 999;
        animation: menuFade 0.25s ease;
    }

    nav ul.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    nav a {
        font-size: 1.1rem;
    }
}

/* Menü animasyonu */
@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* blog.css sonuna ekle */
.nav-toggle {
    -webkit-appearance: none;
    appearance: none;
    z-index: 2000; /* Her şeyin üstünde olsun */
    position: relative;
    color: #ffffff !important;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 5px 15px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* JS müdahale edene kadar gizli */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Header yüksekliğine göre ayarla */
        left: 0;
        width: 100%;
        background: rgba(15, 12, 41, 0.98);
        padding: 2rem 0;
        z-index: 1500;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
}