@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-base: #f9fafb;
    --bg-surface: #ffffff;
    --bg-input: #f3f4f6;
    --border-subtle: #e5e7eb;
    --border-strong: #d1d5db;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --brand-primary: #3b82f6;
    --brand-primary-hover: #2563eb;
    --brand-primary-light: #eff6ff;
    --founder-gold: #d97706;
    --founder-gold-light: #fef3c7;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-input: #0f172a;
    --border-subtle: #334155;
    --border-strong: #475569;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --brand-primary: #60a5fa;
    --brand-primary-hover: #3b82f6;
    --brand-primary-light: rgba(59, 130, 246, 0.15);
    --founder-gold: #f59e0b;
    --founder-gold-light: rgba(245, 158, 11, 0.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: var(--brand-primary); text-decoration: none; transition: 0.2s ease; }
a:hover { color: var(--brand-primary-hover); }
::selection { background-color: var(--brand-primary-light); color: var(--brand-primary); }

#scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--brand-primary); z-index: 9999; }

.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky; top: 0; z-index: 1000;
    padding: 10px 0;
    width: 100%;
}

[data-theme="dark"] .top-nav {
    background: rgba(30, 41, 59, 0.95);
}

.top-nav .main-container {
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
}

.navbar-brand { 
    font-weight: 800; 
    color: var(--text-primary) !important; 
    font-size: 1.25rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.navbar-brand img { width: 32px; height: 32px; border-radius: var(--radius-sm); }

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: nowrap;
}

.btn-nav { 
    color: var(--text-secondary); 
    background: transparent; 
    border: none; 
    padding: 8px 16px; 
    border-radius: var(--radius-full); 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: 0.2s; 
    cursor: pointer; 
    text-decoration: none; 
    white-space: nowrap;
}
.btn-nav:hover { background-color: var(--bg-input); color: var(--text-primary); }
.icon-btn { padding: 8px; border-radius: 50%; border: 1px solid var(--border-subtle); }

.main-container { max-width: 900px; margin: 0 auto; padding: 40px 20px; width: 100%; }

.breadcrumb-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 16px; }
.breadcrumb { margin: 0; padding: 0; font-size: 0.9rem; font-weight: 600; display: flex; gap: 8px; list-style: none; }
.breadcrumb-item a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--text-primary); }
.breadcrumb-item.active { color: var(--text-primary); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--border-strong); margin-right: 8px; }

.breadcrumb-actions { display: flex; gap: 8px; }
.btn-action { background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-secondary); width: 36px; height: 36px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.btn-action:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-input); }

.article-content-area { margin-bottom: 48px; background: var(--bg-surface); padding: 48px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.article-title { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-bottom: 1.5rem; letter-spacing: -0.02em; }

.meta-info { border-bottom: 1px solid var(--border-subtle); padding-bottom: 24px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.meta-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-tag { background: var(--bg-base); color: var(--text-primary); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border-subtle); }
.meta-lock { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.2); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.meta-stats { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.meta-stats i { opacity: 0.7; margin-right: 4px; }

.article-body { font-size: 1.1rem; line-height: 1.8; color: var(--text-primary); }
.article-body h2 { margin-top: 40px; margin-bottom: 20px; font-weight: 800; font-size: 1.75rem; letter-spacing: -0.02em; }
.article-body h3 { margin-top: 32px; margin-bottom: 16px; font-weight: 700; font-size: 1.3rem; }
.article-body p, .article-body ul { margin-bottom: 1.5rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 24px 0; border: 1px solid var(--border-subtle); }
.article-body pre { background: #0f172a; color: #f8fafc; padding: 20px; border-radius: var(--radius-md); overflow-x: auto; font-family: 'Fira Code', monospace; font-size: 0.9rem; margin: 24px 0; }

.attachment-box { background: var(--bg-base); border: 1px solid var(--border-subtle); padding: 20px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
.attachment-info h5 { margin: 0 0 4px 0; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.attachment-info p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.btn-download { background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-primary); border: none; padding: 8px 16px; border-radius: var(--radius-full); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; text-decoration: none; transition: 0.2s; }
.btn-download:hover { background: var(--bg-input); }

.feedback-box {
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

.feedback-box h4 { font-weight: 800; font-size: 1.2rem; margin-bottom: 24px; color: var(--text-primary); }

.feedback-box .d-flex { gap: 16px !important; }

.btn-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    white-space: nowrap;
}

.btn-vote:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.btn-vote-up:hover { background: rgba(16, 185, 129, 0.1); color: var(--success-color); border-color: var(--success-color); }
.btn-vote-down:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); border-color: var(--danger-color); }

[data-theme="dark"] .btn-vote { background: var(--bg-base); border-color: var(--border-strong); }

.comments-section { margin-top: 48px; border-top: 1px solid var(--border-subtle); padding-top: 32px; }
.comments-title { font-weight: 800; font-size: 1.35rem; margin-bottom: 24px; color: var(--text-primary); }

.comment-form-container { display: flex; gap: 20px; margin-bottom: 48px; }
.avatar-initials { width: 44px; height: 44px; border-radius: 50%; background: var(--border-subtle); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
.current-user-avatar { background: var(--brand-primary-light); color: var(--brand-primary); }

.comment-input-wrapper { flex-grow: 1; }
.comment-input-name { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 12px 16px; font-size: 0.95rem; width: 100%; margin-bottom: 12px; color: var(--text-primary); font-family: inherit; transition: 0.2s; }
.comment-input-text { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 16px; font-size: 0.95rem; width: 100%; min-height: 100px; resize: none; color: var(--text-primary); font-family: inherit; transition: 0.2s; }
.comment-input-name:focus, .comment-input-text:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-light); }

.bot-checkbox-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-surface); border: 1.5px solid var(--border-subtle);
    padding: 14px 20px; border-radius: 14px; min-width: 320px; transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.bot-checkbox-card:hover { border-color: var(--brand-primary); background: var(--bg-input); }
.bot-label { font-weight: 600; color: var(--text-primary); cursor: pointer; margin: 0; font-size: 1rem; user-select: none; letter-spacing: -0.01em; }

.custom-checkbox { position: relative; display: inline-block; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.custom-checkbox .checkmark { position: absolute; top: 0; left: 0; height: 28px; width: 28px; background-color: var(--bg-surface); border: 2px solid var(--border-strong); border-radius: 8px; transition: 0.2s; }
.custom-checkbox:hover input ~ .checkmark { border-color: var(--brand-primary); transform: scale(1.05); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--brand-primary); border-color: var(--brand-primary); transform: scale(1); }
.custom-checkbox .checkmark:after { content: ""; position: absolute; display: none; left: 9px; top: 4px; width: 7px; height: 14px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.bot-checkbox-card i { color: var(--text-tertiary); font-size: 1.25rem; opacity: 0.8; }

.comment-footer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.btn-submit-comment { background: var(--brand-primary); color: #ffffff; border: none; padding: 10px 28px; border-radius: var(--radius-full); font-weight: 700; cursor: pointer; transition: 0.2s; height: 48px; }
.btn-submit-comment:hover { background: var(--brand-primary-hover); transform: translateY(-2px); }

.reply-indicator { background: var(--brand-primary-light); color: var(--brand-primary); padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--brand-primary); }
.reply-indicator button { background: transparent; border: none; color: var(--brand-primary); font-size: 1.1rem; cursor: pointer; }

.comments-list { display: flex; flex-direction: column; gap: 40px; }
.comment-item { display: flex; gap: 20px; }
.comment-content { flex-grow: 1; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-author { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.comment-time { font-size: 0.85rem; color: var(--text-tertiary); }
.comment-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin: 8px 0; word-wrap: break-word; }

.comment-actions { display: flex; gap: 16px; align-items: center; }
.btn-action-text { background: transparent; border: none; color: var(--text-tertiary); font-size: 0.85rem; font-weight: 600; padding: 0; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color 0.2s; }
.btn-action-text:hover { color: var(--brand-primary); }

.replies-list { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; padding-left: 24px; border-left: 2px solid var(--border-subtle); }
.avatar-sm { width: 34px; height: 34px; font-size: 0.85rem; }

.founder-item .comment-author { color: var(--founder-gold); font-weight: 800; }
.avatar-founder { background: var(--founder-gold-light); color: var(--founder-gold); border: 1px solid var(--founder-gold); }
.badge-founder { background: var(--founder-gold-light); color: var(--founder-gold); font-size: 0.65rem; padding: 2px 8px; border-radius: 4px; font-weight: 800; text-transform: uppercase; border: 1px solid var(--founder-gold); }
[data-theme="dark"] .avatar-founder { border-color: rgba(245, 158, 11, 0.4); }
[data-theme="dark"] .badge-founder { border-color: rgba(245, 158, 11, 0.4); }
.badge-personnel { background: var(--brand-primary-light); color: var(--brand-primary); font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }

.no-comments { text-align: center; padding: 40px 0; color: var(--text-tertiary); font-weight: 500; background: var(--bg-surface); border-radius: var(--radius-md); border: 1px dashed var(--border-strong); }

.related-section { margin-top: 48px; border-top: 1px solid var(--border-subtle); padding-top: 32px; }
.related-title { font-weight: 800; font-size: 1.25rem; margin-bottom: 20px; color: var(--text-primary); }
.related-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.related-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 16px; border-radius: var(--radius-md); display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-primary); transition: 0.2s; box-shadow: var(--shadow-xs); text-decoration: none; }
.related-card:hover { border-color: var(--brand-primary); color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card i { font-size: 1.5rem; color: var(--text-tertiary); transition: 0.2s; }
.related-card:hover i { color: var(--brand-primary); }

.main-footer { text-align: center; padding: 32px 0; color: var(--text-secondary); font-size: 0.9rem; border-top: 1px solid var(--border-subtle); margin-top: 48px; }
[data-theme="dark"] .main-footer { color: var(--text-secondary); }

.feedback-toast { position: fixed; bottom: 24px; right: 24px; background: var(--text-primary); color: var(--bg-surface); padding: 12px 24px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem; transform: translateY(100px); opacity: 0; transition: 0.4s; z-index: 9999; box-shadow: var(--shadow-md); }
.feedback-toast.show { transform: translateY(0); opacity: 1; }
/* MOBİL MENÜ DRAWER TASARIMI */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 1040; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-drawer { position: fixed; top: 0; right: 0; width: 280px; height: 100%; background: var(--bg-surface); z-index: 1050; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-left: 1px solid var(--border-subtle); }
.mobile-menu-drawer.active { transform: translateX(0); }

.mobile-menu-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 1.1rem; }
.close-menu-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 1.3rem; cursor: pointer; transition: 0.2s; padding: 0; display: flex; align-items: center; justify-content: center; }
.close-menu-btn:hover { color: var(--danger-color); transform: scale(1.1); }

.mobile-menu-links { padding: 20px 16px; flex-grow: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.mobile-nav-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: var(--radius-md); transition: all 0.2s ease; }
.mobile-nav-item i { width: 20px; text-align: center; font-size: 1.1rem; opacity: 0.7; }
.mobile-nav-item:hover { background: var(--bg-base); color: var(--text-primary); }
.mobile-nav-item.active { background: var(--accent-glow); color: var(--accent); }
.mobile-nav-item.active i { opacity: 1; color: var(--accent); }

.mobile-menu-footer { padding: 24px 20px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 12px; background: var(--bg-surface); }
.mobile-theme-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: var(--bg-base); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); font-weight: 600; cursor: pointer; transition: 0.2s; font-size: 0.95rem; }
.mobile-theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: var(--text-primary); color: var(--bg-surface); border-radius: var(--radius-md); font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: 0.2s; }
.mobile-login-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.1); }
@media (max-width: 768px) {
    .top-nav { padding: 10px 0; }
    .navbar-brand { font-size: 1.1rem; }
    .btn-nav { padding: 8px; font-size: 0; width: 36px; height: 36px; justify-content: center; }
    .btn-nav i { font-size: 1rem; margin: 0; }
    
    .main-container { padding: 20px 15px; }
    .article-content-area { padding: 24px; }
    .article-title { font-size: 1.75rem; }
    
    .feedback-box .d-flex { flex-direction: row; gap: 10px !important; justify-content: center; }
    .btn-vote { min-width: 100px; flex: 1; padding: 10px 8px; font-size: 0.9rem; }
    
    .comment-footer-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .bot-checkbox-card { min-width: 100%; }
    .replies-list { padding-left: 16px; margin-left: 0; }
    .replies-list::before { left: -16px; }
}