/*
Theme Name: Sağlık Teması
Theme URI: https://wordpresstemasi.com
Author: Sağlık Teması
Author URI: https://wordpresstemasi.com
Description: Modern, hızlı ve mobil uyumlu sağlık teması. Kategoriler, etiketler ve tüm özellikler dahil.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saglik-temasi
Tags: health, medical, responsive, modern, fast, sağlık, tıp
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a859;
    --secondary-color: #0066cc;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* Navigation */
.main-navigation {
    margin-top: 1rem;
    width: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Posts */
.post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.post-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Single Post */
.single-post .post-content {
    padding: 2rem;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.single-post .post-content h2,
.single-post .post-content h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    margin: 0.3rem 0.3rem 0.3rem 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: white;
}

.post-categories {
    margin-top: 1rem;
}

.post-categories a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-categories a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.7rem 1rem;
    background: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Archive Page */
.archive-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    opacity: 0.9;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.error-404 .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: block;
        margin-top: 1rem;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation a {
        padding: 1rem 0;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .error-404 h1 {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-main {
        padding: 1rem 0;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .single-post .post-content {
        padding: 1.5rem;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post {
    animation: fadeIn 0.5s ease-out;
}

