/**
 * TOABOX Site Template - Stil Dosyası
 * Profesyonel Haber Sitesi Tasarımı
 * - Düz çizgiler, köşeler keskin
 * - Açık tema
 * - Animasyon yok
 * - İçerik odaklı
 */

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== VARIABLES ==================== */
:root {
    --primary: #1a1a1a;
    --secondary: #2563eb;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --max-width: 1200px;
    --header-height: 60px;
}

/* ==================== BASE ==================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TOP BANNER ==================== */
.top-banner {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    text-align: center;
}

/* ==================== HEADER ==================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
    border: 1px solid var(--border);
}

.nav-link:hover {
    background: var(--bg-gray);
}

/* ==================== CATEGORY NAV ==================== */
.category-nav {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.category-list {
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.category-link {
    display: inline-block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-right: 1px solid var(--border);
}

.category-link:first-child {
    border-left: 1px solid var(--border);
}

.category-link:hover,
.category-link.active {
    background: var(--bg);
    color: var(--secondary);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 30px 0 50px;
    min-height: 60vh;
}

/* ==================== LAYOUT: Two Column ==================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

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

/* ==================== FEATURED POST ==================== */
.featured-post {
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.featured-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.featured-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
}

.featured-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

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

.featured-title a:hover {
    color: var(--secondary);
}

.featured-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.featured-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* ==================== TOC BOX ==================== */
.toc-box {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 25px;
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--primary);
}

.toc-box ul {
    list-style: none;
    padding-left: 0;
}

.toc-box li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.toc-box li:last-child {
    border-bottom: none;
}

.toc-box a {
    font-size: 14px;
    color: var(--text);
}

.toc-box a:hover {
    color: var(--secondary);
}

/* ==================== POST GRID ==================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.post-card {
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

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

.post-card-title a:hover {
    color: var(--secondary);
}

.post-card-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-card {
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Search */
.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-right: none;
    font-size: 14px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-btn {
    padding: 10px 14px;
    background: var(--primary);
    color: var(--bg);
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    background: var(--secondary);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts a {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

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

/* Category List Sidebar */
.category-list-sidebar {
    list-style: none;
}

.category-list-sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.category-list-sidebar a {
    font-size: 14px;
}

/* Archive List */
.archive-list {
    list-style: none;
}

.archive-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.archive-list a {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.archive-list .count {
    color: var(--text-light);
}

/* ==================== SINGLE POST ==================== */
.single-post {
    max-width: 800px;
}

.post-header {
    margin-bottom: 25px;
}

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

.post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 14px;
    color: var(--text-light);
}

.post-meta span {
    margin-right: 15px;
}

.post-featured-image {
    margin-bottom: 25px;
}

.post-featured-image img {
    width: 100%;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 24px;
    margin: 35px 0 15px;
}

.post-content h3 {
    font-size: 20px;
    margin: 30px 0 12px;
}

.post-content h4 {
    font-size: 18px;
    margin: 25px 0 10px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-light);
}

.post-content img {
    margin: 25px 0;
}

.post-content a {
    color: var(--secondary);
    text-decoration: underline;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--bg-gray);
}

.pagination .active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

/* ==================== FOOTER AD ==================== */
.footer-ad {
    background: var(--bg-gray);
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--primary);
    color: #e5e7eb;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #9ca3af;
}

.social-links a:hover {
    color: #fff;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #9ca3af;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #9ca3af;
}

.footer-contact a {
    color: #9ca3af;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #6b7280;
}

/* ==================== CONTACT PAGE ==================== */
.contact-content {
    max-width: 600px;
}

.contact-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-form {
    border: 1px solid var(--border);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    font-size: 15px;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 14px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--secondary);
}

/* ==================== SEARCH RESULTS ==================== */
.search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.search-header h1 {
    font-size: 24px;
}

.search-header p {
    color: var(--text-light);
    margin-top: 8px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

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

.breadcrumb span {
    margin: 0 8px;
}

/* ==================== NO POSTS ==================== */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-posts h2 {
    margin-bottom: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .category-nav {
        -webkit-overflow-scrolling: touch;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .post-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .featured-content {
        padding: 18px;
    }
    
    .post-card-content {
        padding: 15px;
    }
    
    .sidebar-card {
        padding: 15px;
    }
}
