/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

/* Main Content */
main {
    min-height: 60vh;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Başlıklar */
h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Blog Liste Sayfası */
article {
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Blog Detay Sayfası */
.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.blog-back-link:hover {
    color: #2980b9;
}

.blog-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.blog-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.blog-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.blog-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.blog-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-tags {
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.blog-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin: 0.5rem 0.3rem;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.blog-tag:hover {
    background: #2980b9;
}

/* Responsive - Mobil Uyum */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-image {
        max-height: 250px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: #2c3e50 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    border-radius: 8px;
}

.dropdown-content a:hover {
    background: #f0f0f0;
    color: #3498db !important;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}