/*
Theme Name: QA Simple
Theme URI: https://forum.kombicozum.com/
Author: Tayfur Seker
Author URI: https://forum.kombicozum.com/
Description: Basit, şık ve mobil uyumlu bir Soru-Cevap WordPress teması. Medium tarzı okunabilir tipografi, sekmeli anasayfa ve hamburger menü ile donatılmıştır.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qa-simple
*/

:root {
    --primary-color: #24292e;
    --accent-color: #0366d6;
    --bg-color: #ffffff;
    --text-color: #24292e;
    --meta-color: #586069;
    --border-color: #e1e4e8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --container-width: 800px;
    --header-height: 70px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--accent-color); }

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

/* Header */
.site-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation & Hamburger */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; background: none; border: none; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; gap: 15px; }
}

/* Hero & Search */
.hero-section {
    padding: 60px 0;
    text-align: center;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    transition: border-color 0.2s;
}

.search-field:focus { border-color: var(--accent-color); }

/* Question Lists */
.section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

.question-list {
    list-style: none;
    margin-bottom: 40px;
}

.question-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.question-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.question-meta {
    font-size: 0.9rem;
    color: var(--meta-color);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.answer-count {
    background: #f1f8ff;
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    text-align: center;
    color: var(--meta-color);
    font-size: 0.9rem;
}

/* Tabs */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.tab-link {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--meta-color);
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
}

.tab-link:hover {
    color: var(--text-color);
}

.tab-link.active {
    color: var(--text-color);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Comments / Answers */
.comments-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-body {
    position: relative;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--meta-color);
}

.comment-author {
    font-weight: 700;
    color: var(--text-color);
    margin-right: 10px;
}

.comment-author img {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
    font-size: 0.85rem;
}

.comment-reply-link {
    color: var(--accent-color);
    font-weight: 600;
}

/* Comment Form */
.comment-respond {
    margin-top: 50px;
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
}

.comment-form button[type="submit"],
.comment-form input[type="submit"] {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.comment-form button[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    background-color: #024ebb;
}

/* Entry Content */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.entry-content code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
