/* Bu dosyanın adı: assets/css/style.css */

/* --- 1. DEĞİŞKENLER ve TEMEL AYARLAR --- */
:root {
    --brand-primary: #8b5cf6;
    --brand-secondary: #7c3aed;
    --brand-light: #c4b5fd;
    --bg-main: #fbfaff;
    --bg-soft-lavender: #faf5ff;
    --text-primary: #37304a;
    --text-secondary: #6b7280;
    --shadow-color: rgba(139, 92, 246, 0.1);
    --font-serif: 'Lora', serif;
    --font-sans: 'Montserrat', sans-serif;
    --transition-fast: all 0.2s ease-out;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }


/* --- 2. TİPOGRAFİ --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--brand-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

h1 { font-size: 3.5rem; letter-spacing: -1.5px; line-height: 1.1; }
h2 { font-size: 2.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(139, 92, 246, 0.15); margin-bottom: 2.5rem; }
h3 { font-size: 1.75rem; }
p { font-size: 1.1rem; }

a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover { color: var(--brand-primary); }


/* --- 3. ANİMASYONLAR --- */
.animate-fade-in { 
    animation: fadeIn 0.8s ease-out .2s forwards; 
    opacity: 0; 
    transform: translateY(20px);
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.floating { animation: floating 5s ease-in-out infinite; }
@keyframes floating { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

@keyframes backgroundpan { 0% { background-position: 0% center; } 100% { background-position: -200% center; } }

@keyframes burstAndFade { 0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 1; } 100% { transform: translate(var(--end-x), var(--end-y)) scale(1) rotate(var(--end-rotation)); opacity: 0; } }


/* --- 4. BİLEŞENLER --- */

/* Kalp Efekti */
.heart-burst-effect { position: absolute; pointer-events: none; z-index: 9999; user-select: none; animation: burstAndFade 0.6s ease-out forwards; }
.heart-purple { color: #8b5cf6; } .heart-pink { color: #ec4899; } .heart-violet { color: #a855f7; }

/* --- Header ve Navigasyon (MOBİL İYİLEŞTİRMELERİ EKLENDİ) --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    font-family: var(--font-sans);
    box-shadow: 0 4px 20px -5px var(--shadow-color);
}
header nav {
    position: relative;
    padding-top: 0.5rem; /* Mobil için daha kompakt */
    padding-bottom: 0.5rem;
}
header .logo { 
    height: 2.75rem; /* Mobil için daha KÜÇÜK logo (44px) */
    width: auto; 
    transition: var(--transition-fast);
}
header .nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
header .desktop-menu { 
    display: none; /* Mobilde masaüstü menü gizli */
}
#menu-button { 
    display: block; /* Mobilde buton görünür */
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-secondary);
}
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1rem 0;
    /* Menünün açılıp kapanma animasyonu için */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}
#mobile-menu.active { /* 'hidden' yerine 'active' kullanacağız */
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu ul { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem; 
}
#mobile-menu a { 
    font-size: 1.125rem; 
}

/* YARDIMCI SINIF (Javascript'in kullandığı 'hidden' yerine) */
.hidden {
    display: none;
}

/* Masaüstü Görünümü (768px ve üstü) */
@media (min-width: 768px) {
    header nav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    header .logo {
        height: 3.5rem; /* Masaüstü için ORİJİNAL logo boyutu (56px) */
    }
    header .desktop-menu { 
        display: flex; 
        align-items: center; 
        gap: 2.5rem; 
    }
    #menu-button { 
        display: none; /* Masaüstünde buton gizli */
    }
    #mobile-menu {
        display: none !important; /* Masaüstünde mobil menü her zaman gizli */
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    border: 1px solid #e9d5ff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, var(--bg-soft-lavender), #f3e8ff, #e9d5ff, var(--bg-soft-lavender));
    background-size: 400% 400%;
    animation: backgroundpan 15s ease infinite;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px var(--shadow-color);
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #6d28d9;
}
@media (min-width: 768px) { .hero-section h1 { font-size: 3.75rem; } }
.hero-section p { font-size: 1.125rem; max-width: 48rem; margin: 0 auto 2.5rem auto; color: #5a5a5a; }
@media (min-width: 768px) { .hero-section p { font-size: 1.25rem; } }
.hero-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-decoration { position: absolute; opacity: 0.7; }

/* Butonlar */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-sans); font-weight: 600; 
    padding: 0.8rem 2rem; border-radius: 9999px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px -5px rgba(0,0,0,0.1);
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 20px -5px var(--shadow-color); }
.btn-primary { background: linear-gradient(45deg, var(--brand-primary) 0%, var(--brand-secondary) 100%); color: white; }
.btn-secondary { background-color: white; color: var(--brand-primary); border-color: #e2e8f0; }
.btn-secondary:hover { border-color: var(--brand-primary); background-color: var(--bg-soft-lavender); }

/* Kartlar */
.card-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -10px var(--shadow-color);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    display: block; /* a etiketi için */
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px -10px var(--shadow-color); }
.card-image-wrapper { overflow: hidden; }
.card-image { transition: var(--transition-smooth); width: 100%; height: 14rem; object-fit: cover; }
.card:hover .card-image { transform: scale(1.05) rotate(1deg); }
.card-content { padding: 1.5rem; }
.card-meta { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.5rem; display: flex; align-items: center; }
.card-title { font-size: 1.25rem; margin-bottom: 0.75rem; transition: color 0.3s ease; }
.card:hover .card-title { color: var(--brand-primary); }
.card-excerpt { color: var(--text-secondary); font-size: 0.875rem; }
.card-readmore { margin-top: 1rem; display: flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--brand-primary); }
.category-tag {
    position: absolute; top: 1rem; left: 1rem;
    padding: 0.25rem 0.75rem; background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px); color: white; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.3);
}

/* Kategori Bölümü */
.category-section { margin-bottom: 4rem; }
.category-section h2 { text-align: center; }
.category-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
.category-card { text-align: center; padding: 1.5rem; }
.category-icon-wrapper {
    width: 5rem; height: 5rem; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem auto; transition: transform 0.3s ease;
}
.category-card:hover .category-icon-wrapper { transform: scale(1.1); }
.category-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.category-card p { font-size: 0.875rem; }

/* Footer */
.footer-gradient {
    background: linear-gradient(135deg, #581c87 0%, #7e22ce 100%);
    color: white;
    font-family: var(--font-sans);
}
.footer-content { padding: 4rem 1.5rem; text-align: center; }
.footer-logo { height: 4rem; width: auto; margin-bottom: 1.5rem; }
.footer-text { margin-top: 1rem; color: #e9d5ff; font-size: 1.125rem; max-width: 36rem; margin: 1rem auto 0 auto; }
.social-links { display: flex; justify-content: center; margin-top: 2rem; gap: 1.5rem; font-size: 1.5rem; }
.social-links a { color: #e9d5ff; }
.social-links a:hover { color: white; transform: scale(1.25); }
.copyright { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(196, 181, 253, 0.3); text-align: center; color: #c4b5fd; }

/* Yardımcı Sınıflar */
.divider { height: 1px; background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.2), transparent); margin: 4rem 0; }
.line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }