/* Modern Site CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    background-color: #f8fafc;
}

/* Header - Sticky */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #0f4c75;
    border-bottom: 1px solid #0a3552;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(15, 76, 117, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    padding: 5px 0;  /* ← Bu satırı ekleyin */
}


.logo-img {
    height: 40px;
    width: auto;
 
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Bildirim Butonu */
.notification-wrapper {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0f4c75;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.notification-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.notification-body {
    max-height: 300px;
    overflow-y: auto;
}

/* Menü Toggle Butonu */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.menu-toggle:hover span {
    background: #ffffff;
}

/* Sidebar Menü */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 1999;
    transition: right 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h5 {
    margin: 0;
    font-size: 18px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-color);
    line-height: 1;
}

.sidebar-close:hover {
    color: var(--text-color);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Ana İçerik */
.main-content {
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 40px 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* İçerik Kartları */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.content-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.content-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.content-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.content-card-title a:hover {
    color: var(--primary-color);
}

.content-card-excerpt {
    color: var(--secondary-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.content-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.content-date {
    font-size: 13px;
    color: var(--secondary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Footer */
.site-footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--secondary-color);
    font-size: 14px;
}

/* Article Styles */
.article-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-size: 14px;
}

.article-date svg {
    opacity: 0.7;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 1em;
}

.article-body h2, 
.article-body h3, 
.article-body h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-body ul, 
.article-body ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-post-item {
    display: block;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.recent-post-item:hover {
    background: #e0e7ff;
    transform: translateX(5px);
}

.recent-post-item h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.4;
}

.recent-post-date {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Comments Section */
.comments-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.comments-list {
    margin-bottom: 40px;
}

.comment-item {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.comment-date {
    font-size: 13px;
    color: var(--secondary-color);
}

.comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.no-comments {
    text-align: center;
    color: var(--secondary-color);
    padding: 30px;
    font-size: 14px;
}

.comment-form-wrapper {
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comment-form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.comment-form .form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-color);
}

.comment-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

.comment-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.comment-form .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.comment-form .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .sidebar-menu {
        width: 280px;
        right: -280px;
    }
    
    .notification-dropdown {
        width: 280px;
        right: -100px;
    }
    
    .sidebar-widget {
        margin-top: 30px;
        position: static;
    }
}
