/* ============================================
   MAVİ TEMA - Mat Mor Kurumsal
   Default layout yapısıyla uyumlu
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* Ana Renkler - Mat Mor */
    --primary: #6d597a;
    --primary-light: #8b7a96;
    --primary-lighter: #a89bb2;
    --accent: #6d597a;
    --accent-light: #9b8aa5;
    --accent-subtle: rgba(109, 89, 122, 0.08);
    --bg-body: #faf9fb;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #4a3f52;
    --text-primary: #221f26;
    --text-secondary: #5d5666;
    --text-muted: #7a7285;
    --border-color: #e8e5eb;
    --border-light: #f5f3f7;
    --success: #5a8f7b;
    --danger: #a65d5d;
    --warning: #b8956a;
    --info: #6a8fa6;
    --shadow-sm: 0 1px 2px rgba(109,89,122,0.04);
    --shadow-md: 0 4px 6px -1px rgba(109,89,122,0.06), 0 2px 4px -2px rgba(109,89,122,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(109,89,122,0.08), 0 4px 6px -4px rgba(109,89,122,0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ===== NAVBAR ===== */
.navbar-corp {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
    min-height: 72px;
    border: none;
    z-index: 1030;
}

.navbar-corp .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-corp .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ===== PAGE LAYOUT ===== */
.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .page-card { padding: 1.5rem 1.25rem; }
}

.page-card h1.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.page-card .page-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.page-card .page-content p { margin-bottom: 1.25rem; }

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary);
}

/* ===== ARTICLE LIST ===== */
.article-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover { padding-left: .5rem; }

.article-list-item .article-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: .55rem;
}

.article-list-item .article-info h6 {
    font-size: .925rem;
    font-weight: 600;
    margin-bottom: .25rem;
}
.article-list-item .article-info h6 a { color: var(--text-primary); }
.article-list-item .article-info h6 a:hover { color: var(--primary); }

.article-list-item .article-desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PREV/NEXT ===== */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}
.page-nav a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-primary);
    transition: var(--transition);
    max-width: 48%;
}
.page-nav a:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.page-nav .nav-next { margin-left: auto; text-align: right; }

/* ===== COMMENT SECTION ===== */
.comment-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) { .comment-section { padding: 1.5rem 1.25rem; } }

.comment-item { padding: 1rem 0; border-bottom: 1px solid var(--border-light); }
.comment-item:last-child { border-bottom: none; }
.comment-author { font-weight: 700; font-size: .9rem; color: var(--primary); }
.comment-date { font-size: .75rem; color: var(--text-muted); }
.comment-text { margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: var(--text-secondary); }

/* ===== FORMS ===== */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-size: .9rem;
    transition: var(--transition);
    font-family: var(--font-body);
    color: var(--text-primary);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109,89,122,0.1);
}
textarea.form-control {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: .85rem;
    line-height: 1.6;
}
.form-label { font-weight: 600; font-size: .85rem; color: var(--text-primary); margin-bottom: .4rem; }

/* ===== BUTTONS ===== */
.btn { font-family: var(--font-body); font-weight: 600; font-size: .875rem; border-radius: var(--radius-sm); padding: .55rem 1.25rem; transition: var(--transition); }

.btn-corp { background: var(--primary); color: #fff; border: none; }
.btn-corp:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: var(--accent-light); color: #fff; }

.btn-outline-corp { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-corp:hover { background: var(--primary); color: #fff; }

.btn-soft-success { background: rgba(90,143,123,0.1); color: var(--success); border: none; }
.btn-soft-success:hover { background: rgba(90,143,123,0.2); color: var(--success); }
.btn-soft-danger { background: rgba(166,93,93,0.1); color: var(--danger); border: none; }
.btn-soft-danger:hover { background: rgba(166,93,93,0.2); color: var(--danger); }
.btn-soft-warning { background: rgba(184,149,106,0.1); color: var(--warning); border: none; }
.btn-soft-warning:hover { background: rgba(184,149,106,0.2); color: var(--warning); }
.btn-soft-info { background: rgba(106,143,166,0.1); color: var(--info); border: none; }
.btn-soft-info:hover { background: rgba(106,143,166,0.2); color: var(--info); }

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.admin-sidebar .sidebar-brand .brand-icon {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700;
}
.admin-sidebar .sidebar-brand span { font-weight: 700; font-size: 1rem; }

.sidebar-nav { padding: .75rem 0; }
.sidebar-nav .nav-section { padding: .5rem 1.25rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.35); margin-top: .5rem; }
.sidebar-nav .nav-link { display: flex; align-items: center; gap: .65rem; padding: .6rem 1.25rem; color: rgba(255,255,255,0.6) !important; font-size: .875rem; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; }
.sidebar-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.05); }
.sidebar-nav .nav-link.active { color: #fff !important; background: rgba(109,89,122,0.15); border-left-color: var(--primary-light); }
.sidebar-nav .nav-link .nav-icon { width: 20px; text-align: center; font-size: .9rem; }

.admin-main { margin-left: 260px; flex: 1; padding: 2rem; min-height: 100vh; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.admin-card .card-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-light); }

/* ===== TABLE ===== */
.table-corp { font-size: .875rem; }
.table-corp thead th { background: var(--bg-body); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 2px solid var(--border-color); padding: .75rem 1rem; }
.table-corp tbody td { padding: .75rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.table-corp tbody tr:hover { background: var(--accent-subtle); }

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius-sm); font-size: .9rem; border: none; }
.alert-success { background: rgba(90,143,123,0.08); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger { background: rgba(166,93,93,0.08); color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(184,149,106,0.08); color: #8a6d12; border-left: 4px solid var(--warning); }
.alert-info { background: rgba(106,143,166,0.08); color: var(--info); border-left: 4px solid var(--info); }

/* ===== BADGES ===== */
.badge-corp { background: var(--accent-subtle); color: var(--accent); font-weight: 600; font-size: .75rem; padding: .35rem .65rem; border-radius: 50px; }
.badge-success { background: rgba(90,143,123,0.1); color: var(--success); }
.badge-danger { background: rgba(166,93,93,0.1); color: var(--danger); }

/* ===== PAGINATION ===== */
.pagination { flex-wrap: wrap; gap: .25rem; }
.pagination .page-link { border-radius: var(--radius-sm) !important; border: 1px solid var(--border-color); color: var(--text-secondary); font-size: .85rem; font-weight: 500; padding: .4rem .75rem; margin: 0; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link:hover { background: var(--accent-subtle); border-color: var(--primary); color: var(--primary); }

/* ===== CAPTCHA ===== */
.captcha-box { background: var(--bg-body); border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: .75rem 1rem; display: inline-flex; align-items: center; gap: .75rem; font-weight: 600; font-size: .9rem; color: var(--primary); }
.captcha-box input { width: 80px; text-align: center; border: 1.5px solid var(--border-color); border-radius: 6px; padding: .4rem; font-weight: 600; }

/* ===== FOOTER ===== */
.footer-corp { background: var(--primary); color: rgba(255,255,255,0.6); padding: 1.5rem 0; font-size: .8rem; text-align: center; margin-top: 3rem; }

/* ===== UTILITY ===== */
.text-accent { color: var(--accent) !important; }
.bg-accent-subtle { background: var(--accent-subtle) !important; }
.fw-semibold { font-weight: 600 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease forwards; }
