/* --- KEMAL.NET v1.0 CORE STYLE --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Renk Paleti: Slate Blue & Soft Gold */
    --primary-bg: #f4f7f6;       /* Açık Gri Zemin */
    --sidebar-bg: #2c3e50;       /* Slate Blue (Menü) */
    --text-main: #2c3e50;        /* Ana Metin */
    --text-muted: #7f8c8d;       /* Silik Metin */
    --accent: #d4af37;           /* Soft Gold (Vurgu) */
    --accent-hover: #b59021;     /* Koyu Altın */
    --white: #ffffff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --border-radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- SIDEBAR (SOL MENÜ) --- */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.profile-area { text-align: center; margin-bottom: 40px; }
.profile-img {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    padding: 3px;
    margin-bottom: 15px;
}
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -1px; margin: 0; }
.brand-role { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 5px; display: block; }

.nav-menu { flex: 1; }
.nav-item { margin-bottom: 10px; }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 15px;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    transform: translateX(5px);
}
.nav-link i { width: 20px; text-align: center; }

.sidebar-footer { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; margin-top: 20px; }

/* --- MAIN CONTENT (SAĞ TARAF) --- */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    width: calc(100% - 280px);
}

/* Header & Login Buttons */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}
.page-title h1 { font-size: 32px; font-weight: 800; margin: 0; color: var(--text-main); }
.page-title p { margin: 5px 0 0; color: var(--text-muted); }

.login-actions { display: flex; gap: 15px; }
.btn-login {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    border: 2px solid transparent;
}
.btn-admin { background: var(--text-main); color: var(--white); }
.btn-tali { background: var(--white); color: var(--text-main); border-color: var(--text-main); }
.btn-admin:hover { background: var(--accent); color: white; }
.btn-tali:hover { background: var(--primary-bg); border-color: var(--accent); color: var(--accent); }

/* --- SECTIONS & CARDS --- */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--accent); }

.card-img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; }
.card-title { font-size: 20px; font-weight: 700; margin: 0 0 10px 0; color: var(--text-main); line-height: 1.4; }
.card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; flex: 1; }
.read-more { color: var(--text-main); font-weight: 700; font-size: 13px; margin-top: auto; display: inline-flex; align-items: center; gap: 5px; }
.read-more:hover { color: var(--accent); gap: 10px; }

/* Projects Badge */
.status-badge {
    padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 10px;
}
.status-tamamlandi { background: #e8f5e9; color: #2e7d32; }
.status-devam_ediyor { background: #fff3e0; color: #ef6c00; }

/* Responsive */
@media (max-width: 900px) {
    .sidebar { width: 100%; height: auto; position: relative; padding: 20px; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .top-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nav-menu { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    .nav-item { margin: 0; }
    .profile-area { display: flex; align-items: center; gap: 20px; text-align: left; margin: 0; }
    .profile-img { width: 60px; height: 60px; margin: 0; }
    .nav-link { background: rgba(255,255,255,0.1); padding: 8px 15px; font-size: 13px; }
}