/*
Theme Name: SEO Tema (Evvel Cevap Benzeri)
Theme URI: https://example.com/
Author: Antigravity
Author URI: https://example.com/
Description: %100 SEO odakli, Schema.org kurallarina uygun, H1-H2 hiyerarsisine dikkat eden, Semantik HTML5 tabanli egitim ve blog temasi. Evvel Cevap tasarimina uygun yapilandirilmistir.
Version: 1.2.0
Text Domain: seotema
*/

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f4f5f7;
    /* Slightly darker off-white for body background */
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: #cc0000;
    transition: color 0.2s, background-color 0.2s;
}

a:hover {
    color: #990000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Wrapper & Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 1. Top Action Bar */
.top-action-bar {
    display: flex;
    width: 100%;
}

.top-action-half {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.top-action-half.left {
    background-color: #555555;
}

.top-action-half.right {
    background-color: #444444;
}

.btn-tikla {
    background-color: #cc0000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.btn-tikla:hover {
    background-color: #a30000;
    color: #fff;
}

/* 2. Utility Header (Date & Small Links) */
.utility-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
}

.utility-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-nav ul {
    display: flex;
    gap: 15px;
}

.utility-nav a {
    color: #666;
}

.utility-nav a:hover {
    color: #cc0000;
}

/* 3. Main Logo Area */
.site-branding-area {
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.evvelcevap-logo {
    display: inline-flex;
    align-items: center;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
}

.evvelcevap-logo .evvel {
    background-color: #cc0000;
    color: #ffffff;
    padding: 0 15px;
    border-radius: 4px;
    position: relative;
    margin-right: 8px;
    line-height: 1.2;
}

.evvelcevap-logo .evvel::after {
    /* The little speech bubble tip */
    content: '';
    position: absolute;
    bottom: -10px;
    right: 15px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #cc0000 transparent transparent transparent;
}

.evvelcevap-logo .cevap {
    color: #222222;
}

/* 4. Main Navigation Menu */
.main-navigation-bar {
    background-color: #222222;
    /* Box shadow for depth */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-nav {
    display: flex;
    justify-content: center;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.site-nav li {
    list-style: none;
}

.site-nav a {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 18px 20px;
}

.site-nav a:hover {
    color: #cc0000;
}

/* 5. Content Layout Container */
.site-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.main-area {
    flex: 1 1 calc(72% - 30px);
    /* Approx 72% width */
    min-width: 0;
}

.sidebar-area {
    flex: 1 1 28%;
    /* Approx 28% width */
}

/* 6. Post Cards (Homepage & Archive Grid) */
#post-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    /* More vertical gap, 30px horizontal */
}

@media (max-width: 768px) {
    #post-grid-container {
        grid-template-columns: 1fr;
    }
}

.post-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.post-card .post-thumbnail-link {
    display: block;
    margin-bottom: 15px;
    /* Space between image and title */
}

.post-card .post-thumbnail-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    /* Soft rounded corners matching screenshot */
    display: block;
}

.post-card-content {
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card h2.entry-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.post-card h2.entry-title a {
    color: #333;
}

.post-card h2.entry-title a:hover {
    color: #cc0000;
}

.entry-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.entry-summary {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 5px;
    /* Push from title */
    font-weight: 700;
    color: #fff !important;
    background-color: #d10000;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 15px;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #a30000;
    color: #fff;
}

/* 7. Single Post Layout */
.single-post-article {
    background: #fff;
    padding: 35px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.single-post-title {
    font-size: 32px;
    color: #111;
    margin-bottom: 15px;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 24px;
    margin: 35px 0 18px;
    color: #cc0000;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.entry-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #222;
}

.entry-content p {
    margin-bottom: 18px;
    font-size: 16px;
    color: #333;
}

.entry-content ul {
    list-style: none;
    /* custom bullets */
    margin-bottom: 20px;
}

.entry-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.entry-content ul li::before {
    content: "•";
    color: #cc0000;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
    line-height: 1.4;
}

/* Footer & Breadcrumbs */
.site-footer {
    background: #222222;
    color: #aaaaaa;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    color: #ffffff;
}

.breadcrumbs {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.breadcrumbs a {
    color: #555;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: #cc0000;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #ccc;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 35px;
}

.pagination *:not(span.screen-reader-text) {
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    color: #333;
    font-weight: bold;
    background: #fff;
}

.pagination .current {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.pagination a:hover {
    background: #f4f5f7;
}

/* Widgets Overview */
.widget {
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    margin-bottom: 25px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #444;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #eaeaea;
    background: #f4f5f7;
}

/* Sidebar Specific Widget Styling for Menus (Navigation, Categories, Pages, Fallback) */
.sidebar-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.sidebar-area .widget ul li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-area .widget ul li:last-child {
    border-bottom: none;
}

.sidebar-area .widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    color: #444;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, padding-left 0.2s;
}

.sidebar-area .widget ul li a:hover {
    background: #fafafa;
    color: #cc0000;
    padding-left: 23px;
    /* slight indent on hover */
}

/* Simulated Right Arrow using CSS content for all standard WP menu links in sidebar */
.sidebar-area .widget ul li a::after {
    content: "›";
    color: #aaa;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.2s;
}

.sidebar-area .widget ul li a:hover::after {
    color: #cc0000;
}

/* Fallback span hide logic if hardcoded */
.sidebar-area .widget ul li a .arrow {
    display: none;
    /* Hide HTML arrow since we use CSS ::after */
}

@media (max-width: 900px) {
    .site-content {
        flex-direction: column;
    }

    .main-area,
    .sidebar-area {
        flex: 1 1 100%;
    }

    .evvelcevap-logo {
        font-size: 36px;
    }

    .top-action-half {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .top-action-bar {
        flex-direction: column;
    }

    .utility-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .site-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .site-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
    }
}