/**
 * OR6 Blog - Eksi Sozluk Minimalist Style
 * Pure text, no images, clean typography
 * Accent: #d97706 (amber) | BG: #fefefe | Text: #333
 */

/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary: #d97706;
    --primary-hover: #b45309;
    --primary-light: #fef3c7;
    --bg-main: #fefefe;
    --bg-card: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s ease;
    --container-max: 1100px;
}

/* ===========================
   Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   Navbar - Simple Top Bar
   =========================== */
.site-navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.site-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.site-logo {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.site-logo:hover {
    color: var(--text-primary);
}

.site-logo strong {
    font-weight: 700;
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.75rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.site-nav a:hover {
    color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
}

/* ===========================
   Breadcrumb - Simple Text
   =========================== */
.site-breadcrumb {
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.site-breadcrumb a {
    color: var(--text-muted);
}

.site-breadcrumb a:hover {
    color: var(--primary);
}

.site-breadcrumb .sep {
    margin: 0 0.35rem;
    color: #ccc;
}

.site-breadcrumb .current {
    color: var(--text-secondary);
}

/* ===========================
   Main Layout
   =========================== */
.site-content {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.content-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ===========================
   Article Count Header
   =========================== */
.content-header {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===========================
   Entry List - Eksi Style
   =========================== */
.entry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.entry-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.entry-title a {
    color: var(--primary);
}

.entry-title a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.entry-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.entry-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.entry-meta .sep {
    margin: 0 0.4rem;
    color: #ccc;
}

.entry-meta a {
    color: var(--text-muted);
}

.entry-meta a:hover {
    color: var(--primary);
}

/* ===========================
   Empty State
   =========================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ===========================
   Pagination
   =========================== */
.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 1.25rem 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    display: block;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    text-decoration: none;
    transition: var(--transition);
}

.pagination .page-item .page-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--bg-main);
    border-color: var(--border-light);
    cursor: default;
}

/* ===========================
   Article Detail
   =========================== */
.article-detail {
    padding: 1.5rem 0;
}

.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-category-link {
    font-size: 0.82rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.article-category-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.article-meta .sep {
    margin: 0 0.5rem;
    color: #ccc;
}

/* Table of Contents */
.article-toc {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #fafafa;
}

.toc-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.25rem;
}

.toc-item a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.toc-item a:hover {
    color: var(--primary);
}

.toc-level-3 {
    padding-left: 1rem;
}

.toc-level-3 a {
    font-size: 0.82rem;
}

/* Article Content */
.article-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
    scroll-margin-top: 60px;
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
    scroll-margin-top: 60px;
}

.article-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.article-content p {
    margin-bottom: 1rem;
}

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

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: #fafafa;
}

.article-content pre {
    background: #2d2d2d;
    color: #e2e8f0;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.85rem;
    border-radius: 4px;
}

.article-content code {
    background: #f5f5f5;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.88em;
    color: var(--primary-hover);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.article-content th,
.article-content td {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* Article Tags - Inline text links */
.article-tags {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-tags .tag-label {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.article-tags a {
    color: var(--text-secondary);
    margin-right: 0.15rem;
}

.article-tags a:hover {
    color: var(--primary);
}

.article-tags .tag-sep {
    color: #ccc;
    margin: 0 0.15rem;
}

/* Share - Minimal text links */
.article-share {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.share-title {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.share-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.share-links a,
.share-links button {
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.share-links a:hover,
.share-links button:hover {
    color: var(--primary);
}

.share-links button.copied {
    color: #16a34a;
}

/* Related Articles - Simple text list */
.related-articles {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--primary);
}

.related-list a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.related-list .related-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

/* ===========================
   Sidebar
   =========================== */
.blog-sidebar {
    position: sticky;
    top: 60px;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

/* Sidebar Search */
.sidebar-search {
    display: flex;
}

.sidebar-search input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: var(--bg-card);
    font-family: var(--font-family);
    outline: none;
    color: var(--text-primary);
}

.sidebar-search input:focus {
    border-color: var(--primary);
}

.sidebar-search button {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.sidebar-search button:hover {
    color: var(--primary);
}

/* Sidebar Lists */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.sidebar-list a:hover {
    color: var(--primary);
}

.sidebar-list .count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Sidebar Post List */
.sidebar-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-posts li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-posts li:last-child {
    border-bottom: none;
}

.sidebar-posts a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sidebar-posts a:hover {
    color: var(--primary);
}

.sidebar-posts .post-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Sidebar Tags */
.sidebar-tags {
    font-size: 0.82rem;
    line-height: 1.9;
}

.sidebar-tags a {
    color: var(--text-secondary);
    margin-right: 0.15rem;
}

.sidebar-tags a:hover {
    color: var(--primary);
}

.sidebar-tags .tag-sep {
    color: #ccc;
    margin: 0 0.1rem;
}

/* ===========================
   Footer - Minimal
   =========================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-left a {
    color: var(--primary);
}

.footer-left a:hover {
    color: var(--primary-hover);
}

.footer-links-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links-inline a {
    color: var(--text-muted);
}

.footer-links-inline a:hover {
    color: var(--primary);
}

.footer-credit {
    color: #ccc;
}

.footer-credit a {
    color: #ccc;
}

.footer-credit a:hover {
    color: var(--text-muted);
}

/* ===========================
   Category / Tag Header
   =========================== */
.category-header {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.category-title strong {
    font-weight: 600;
    color: var(--primary);
}

.category-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* ===========================
   Static Pages
   =========================== */
.static-page {
    padding: 1.5rem 0;
}

.static-page-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.static-page-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.static-page-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
}

.static-page-content p {
    line-height: 1.8;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.static-page-content ul {
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
}

.static-page-content li {
    margin-bottom: 0.3rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
}

.contact-form-wrapper .form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
}

.contact-form-wrapper .form-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* ===========================
   Search Results
   =========================== */
.search-results-info {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

/* ===========================
   Error Page (404)
   =========================== */
.error-page {
    padding: 3rem 0;
    text-align: center;
}

.error-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.error-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===========================
   Buttons
   =========================== */
.btn-amber {
    background-color: var(--primary);
    color: #fff;
    border: none;
    font-weight: 500;
    border-radius: 4px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-amber:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* text-amber helper */
.text-amber {
    color: var(--primary) !important;
}

/* ===========================
   Back to Top
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.back-to-top.visible {
    display: flex;
}

/* ===========================
   Form Overrides
   =========================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

/* ===========================
   Alert Overrides
   =========================== */
.alert {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-sidebar {
        width: 100%;
    }

    .blog-sidebar {
        position: static;
    }

    .site-navbar .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-bottom: 0.5rem;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .site-nav li:last-child a {
        border-bottom: none;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-inline {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-meta {
        font-size: 0.78rem;
    }

    .share-links {
        gap: 0.6rem;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .site-navbar,
    .site-breadcrumb,
    .blog-sidebar,
    .article-share,
    .related-articles,
    .site-footer,
    .back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .article-content {
        font-size: 11pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .site-content {
        display: block;
    }

    .content-sidebar {
        display: none;
    }
}
