/* --- GAMZE NUR GÜRBÜZ PORTFOLYO - TAM ONARILMIŞ EDİSYON --- */

:root {
    --primary: #2c3e50;
    --accent: #d4a5a5;
    --bg-color: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --soft-bg: #fdfaf9;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-color: #eee;
}

[data-theme="dark"] {
    --primary: #f8c8dc;
    --accent: #d4a5a5;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --soft-bg: #1e1e1e;
    --card-bg: #252525;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --border-color: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--text-color); 
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

/* --- NAVİGASYON --- */
.navbar {
    position: fixed; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 8%; background: var(--nav-bg); z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 600; font-style: italic; }
.logo span { color: var(--accent); margin-right: 5px; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-color); font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Tema Değiştirme Butonu */
.theme-btn {
    background: none; border: none; color: var(--text-color);
    cursor: pointer; font-size: 1.1rem; transition: 0.3s ease;
}
.theme-btn:hover { transform: rotate(15deg); color: var(--accent); }

/* --- HERO SECTION --- */
.hero { height: 100vh; display: flex; align-items: center; position: relative; background: var(--bg-color); }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; width: 100%; z-index: 2; align-items: center; padding: 0 8%; }
.hero-image-side img {
    max-width: 85%; max-height: 75vh; 
    object-fit: cover; border-radius: 10px;
    border: 12px solid var(--card-bg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.hero-text-side { padding-left: 10%; }
.name { font-family: 'Playfair Display', serif; font-size: 3.2rem; display: inline-block; }
.subtitle { font-size: 1.3rem; color: var(--accent); margin: 10px 0; font-weight: 400; letter-spacing: 1px;}
.description { color: var(--text-light); margin-bottom: 30px; font-weight: 300; }

.btn { padding: 12px 30px; border-radius: 4px; text-decoration: none; display: inline-block; transition: 0.3s; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;}
.btn-more { background: var(--primary); color: #fff; margin-right: 15px; }
.btn-contact { border: 1.5px solid var(--primary); color: var(--text-color); }

/* --- HAKKIMDA --- */
.about { padding: 120px 8%; background: var(--bg-color); }
.about-flex { display: flex; gap: 60px; align-items: center; }
.about-content { flex: 1.2; }
.about-img-frame { flex: 0.8; }
.about-img-frame img { 
    width: 100%; 
    max-height: 550px; 
    object-fit: cover; 
    border-radius: 10px; 
    box-shadow: 20px 20px 0px var(--accent); 
}
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 30px; color: var(--text-color); }
.section-title.center { text-align: center; }
.about-p { margin-bottom: 20px; color: var(--text-light); }

/* --- EĞİTİM & DENEYİM --- */
.education { padding: 80px 5%; background: var(--soft-bg); }
.edu-card {
    background: var(--card-bg); padding: 1.8rem 3rem; border-radius: 12px;
    display: flex; align-items: center; gap: 40px; box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    max-width: 1100px; margin: 0 auto 25px auto; transition: all 0.3s ease; width: 100%;
}
.edu-icon { font-size: 2.8rem; color: var(--accent); flex-shrink: 0; }
.edu-info h3 { font-family: 'Playfair Display', serif; margin-bottom: 4px; font-size: 1.4rem; font-weight: 600; }

/* --- BLOG --- */
.blog { padding: 80px 8%; background: var(--bg-color); }
.blog-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.blog-nav-btn {
    background: var(--accent); color: white; border: none; width: 45px; height: 45px; border-radius: 50%;
    cursor: pointer; position: absolute; z-index: 10; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s ease;
}
.blog-nav-btn:hover { transform: scale(1.1); background: var(--primary); }
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.blog-container-frame {
    border: 2px dashed var(--accent); padding: 35px 20px; border-radius: 30px;
    background: #ffffff; width: 100%; overflow-x: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.02);
}
.blog-slider { display: flex; gap: 25px; transition: transform 0.5s ease-in-out; }
.blog-post-card {
    flex: 0 0 220px; background: #ffffff; border: 1.5px dashed var(--accent);
    border-radius: 15px; height: 380px; display: flex; flex-direction: column;
    overflow: hidden; transition: 0.3s; position: relative;
}

/* Sabitlenen Yazı Efekti */
.pinned-post { border: 2px solid var(--accent); box-shadow: 0 0 15px rgba(212, 165, 165, 0.3); }
.pinned-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; z-index: 5; }

/* ✅ BLOG RESİM ONARIMI - object-fit: cover yaptım */
.blog-img-container { 
    width: 100%; 
    height: 135px; 
    border-bottom: 1.5px dashed var(--accent); 
    overflow: hidden; 
    background: #f9f9f9; 
}
.blog-img-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* contain yerine cover */
}

.blog-card-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.line-clamp-title { 
    font-size: 0.95rem; 
    font-family: 'Playfair Display', serif; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.line-clamp-desc { 
    font-size: 0.75rem; 
    color: var(--text-light); 
    margin-top: 5px; 
    display: -webkit-box; 
    -webkit-line-clamp: 4; 
    line-clamp: 4; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.blog-link { margin-top: auto; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.75rem; }

/* --- ADMİN DURUM ROZETLERİ --- */
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-active { color: #2ecc71; background: #e8f7ef; }
.status-draft { color: #e67e22; background: #fdf2e9; }

/* --- İLETİŞİM --- */
.contact { padding: 100px 8%; text-align: center; background: var(--soft-bg); }
.contact-desc { max-width: 750px; margin: 0 auto 30px; color: var(--text-light); font-size: 1.05rem;}
.social-wrapper { display: flex; justify-content: center; gap: 25px; margin-top: 50px; }
.social-card {
    width: 60px; height: 60px; background: var(--card-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--text-color); border: 1px solid var(--border-color);
    transition: 0.4s; text-decoration: none;
}
.social-card:hover { background: var(--accent); color: white; transform: scale(1.1); }

/* --- BLOG DETAY --- */
.post-detail-wrapper { max-width: 900px; margin: 120px auto 50px; padding: 0 20px; }
.post-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; text-align: center; margin-bottom: 30px; word-wrap: break-word; }
.post-main-img { width: 100%; max-height: 500px; object-fit: contain; border-radius: 20px; border: 8px solid #fff; box-shadow: 0 15px 35px rgba(0,0,0,0.1); display: block; margin: 0 auto 40px; background: #f9f9f9;}
.post-content { background: var(--card-bg); padding: 50px; border-radius: 25px; box-shadow: 0 5px 25px rgba(0,0,0,0.03); }

/* ✅ ADMİN PANELLERİ - GENİŞLETİLDİ */
.admin-card {
    max-width: 1400px; /* 900px'den 1400px'e çıkarıldı */
    margin: 120px auto 50px; 
    background: white;
    padding: 50px 60px; /* padding artırıldı */
    border-radius: 25px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; /* 30px'den 40px'e */
    border-bottom: 2px solid var(--soft-bg); 
    padding-bottom: 25px; /* 20px'den 25px'e */
}

.upload-section { 
    background: var(--soft-bg); 
    padding: 35px; /* 25px'den 35px'e */
    border-radius: 15px; 
    border: 2px dashed var(--accent); 
    text-align: center; 
    margin-bottom: 40px; /* 30px'den 40px'e */
}

/* ✅ FORM ELEMANLARI - GENİŞLETİLDİ */
.form-group { 
    margin-bottom: 25px; /* 15px'den 25px'e */
}

.form-group input, 
.form-group textarea {
    width: 100%; 
    padding: 16px 20px; /* 12px'den 16px 20px'e */
    border: 2px solid var(--border-color); /* 1px'den 2px'e */
    border-radius: 12px; /* 8px'den 12px'e */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

/* ✅ BUTONLAR - İYİLEŞTİRİLDİ */
.btn-save, .btn-submit { 
    background: var(--primary); 
    color: white; 
    padding: 18px 45px; /* 15px 40px'den büyütüldü */
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-save:hover, .btn-submit:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
    background: #34495e;
}

.cancel-link {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.cancel-link:hover {
    color: var(--accent);
}

/* ✅ TABLO STİLLERİ - İYİLEŞTİRİLDİ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

table tr {
    border-bottom: 2px solid var(--soft-bg); /* 1px'den 2px'e */
}

table td {
    padding: 20px 15px; /* 15px'den 20px 15px'e */
    font-size: 1rem;
}

table td strong {
    font-size: 1.1rem;
    color: var(--text-color);
}

table td small {
    color: var(--text-light);
    font-size: 0.9rem;
}

table td a {
    color: #e74c3c;
    font-size: 1.3rem;
    transition: all 0.3s;
}

table td a:hover {
    color: #c0392b;
    transform: scale(1.2);
}

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; font-size: 0.85rem; color: var(--text-light); background: var(--bg-color); }

/* --- ✅ HAMBURGER MENÜ AYARLARI (BURAYA EKLENDİ) --- */

/* Normalde butonu gizle */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* ✅ RESPONSİVE AYARLAR */
@media (max-width: 1200px) {
    .admin-card {
        max-width: 95%;
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .hero-container, .about-flex { 
        grid-template-columns: 1fr; 
        flex-direction: column; 
        text-align: center; 
    }
    .hero-text-side { 
        padding: 40px 0; 
        padding-left: 0; 
    }
    .edu-card { 
        flex-direction: column; 
        text-align: center; 
        padding: 2rem; 
        gap: 20px; 
    }
    .admin-card {
        padding: 30px 25px;
    }
}

/* ✅ MOBİL HAMBURGER AKTİFLEŞTİRME */
@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    
    .menu-toggle { 
        display: flex; 
        z-index: 1001; 
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Menü kapalıyken sağda gizli */
        top: 0;
        flex-direction: column;
        background: var(--nav-bg);
        width: 70%;
        height: 100vh;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 20px rgba(0,0,0,0.05);
        gap: 2rem;
        padding: 0;
        margin: 0;
    }

    /* Menü açıldığında */
    .nav-links.active { 
        right: 0; 
    }

    .nav-links li { 
        margin-left: 0; 
    }

    .nav-links a { 
        font-size: 1.1rem; 
    }

    /* Hamburger Animasyon (X işareti) */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Admin Ayarları Mobilde Bozulmasın */
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
    }
    
    .btn-save, .btn-submit {
        padding: 16px 35px;
        width: 100%;
    }
}