/* Genel Stil Ayarları */
:root {
    --primary-color: #5d3fd3; /* Koyu Mor */
    --secondary-color: #7a5cd6; /* Daha Açık Mor */
    --text-color: #333; /* Koyu Gri Metin */
    --light-color: #fff; /* Beyaz Metin */
    --background-color: #f4f4f4; /* Açık Gri Arka Plan */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header ve Navigasyon Bölümü */
.header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--light-color);
    font-size: 1.8em;
    font-weight: 800;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav .nav-menu a {
    color: var(--light-color);
    padding: 10px 15px;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    border-radius: 5px;
}

.main-nav .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobil Menü Butonu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

/* Mobil Menü (Gizli) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Başlangıçta ekran dışında */
    width: 70%;
    height: 100vh;
    background-color: var(--secondary-color);
    padding: 60px 20px 20px;
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0; /* Aktif olduğunda içeri kayar */
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    color: var(--light-color);
    font-size: 1.2em;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-category-title {
    color: var(--light-color);
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 5px;
}

/* Ana İçerik Bölümleri */
.main-content {
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: var(--light-color);
    text-align: center;
    padding: 6rem 2rem;
    border-bottom: 1px solid #ddd;
}

.hero-section h1 {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Öne Çıkan Kategoriler */
.featured-categories {
    padding: 3rem 0;
    text-align: center;
}

.featured-categories h2 {
    font-size: 2em;
    margin-bottom: 1.5em;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.category-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Son Yazılar */
.recent-posts {
    background-color: #f9f9f9;
    padding: 3rem 0;
}

.recent-posts h2 {
    font-size: 2em;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5em;
}

.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.post-item {
    background: var(--light-color);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: scale(1.02);
}

.post-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}

/* Footer Bölümü */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2em;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 0.9em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: var(--light-color);
    font-size: 0.9em;
    line-height: 2;
}

.social a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--light-color);
}

.social a:hover {
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.8em;
}

/* Mobil Duyarlılık */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .post-item {
        flex-direction: column;
    }

    .post-item img {
        height: 200px;
    }
}