/* ============================================
   Ana Site Stilleri - Ortak
   ============================================ */

:root {
    --header-height: 64px;
    --footer-min-height: 220px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

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

/* --- Header --- */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    white-space: nowrap;
}
.site-logo img {
    height: 36px;
    width: auto;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.site-nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.site-nav a:hover {
    color: var(--primary);
    background: var(--primary-ghost);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.3rem;
}

/* --- Content Area --- */
.page-content {
    padding: 2.5rem 0 3rem;
}
.content-body {
    font-size: 1rem;
    line-height: 1.8;
}
.content-body h1, .content-body h2, .content-body h3 {
    color: var(--heading);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.content-body p { margin-bottom: 1rem; }
.content-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

.page-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

/* --- Sidebar Son Yazılar & Benzer Yazılar --- */
.articles-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.articles-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1rem;
}
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 0.65rem;
    transition: all var(--transition);
}
.article-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.article-card a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--heading);
    display: block;
    margin-bottom: 0.25rem;
}
.article-card a:hover { color: var(--primary); }
.article-card .desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Prev/Next Navigation --- */
.prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.prev-next-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.prev-next-nav a:hover {
    background: var(--primary-ghost);
    border-color: var(--primary);
}
.prev-next-nav .disabled {
    color: var(--text-muted);
    opacity: 0.4;
    pointer-events: none;
}

/* --- Comment Section --- */
.comments-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.comments-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.comment-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
}
.comment-item .comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading);
}
.comment-item .comment-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.comment-item .comment-body {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
}
.comment-form { margin-top: 1.5rem; }
.comment-form .form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}
.comment-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ghost);
}
.comment-form label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--footer-heading);
    margin-bottom: 0.6rem;
}
.footer-brand img { height: 28px; width: auto; }
.footer-desc {
    font-size: 0.82rem;
    color: var(--footer-muted);
    line-height: 1.6;
}
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}
.footer-col h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 0.7rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--footer-muted);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--footer-heading); }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--footer-muted);
}

/* --- Buttons --- */
.btn-site {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary-site {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary-site:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-site {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-outline-site:hover { border-color: var(--primary); background: var(--primary-ghost); }

/* --- Utilities --- */
.badge-site {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: var(--shadow);
    }
    .site-nav.active { display: flex; }
    .site-nav a { padding: 0.6rem 1rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .page-heading { font-size: 1.4rem; }
    .prev-next-nav { flex-direction: column; }
}

/* --- Home page article list --- */
.home-articles .article-card {
    padding: 1.25rem 1.35rem;
}
