/*
Theme Name: Kadinxctema
Theme URI: https://kadinx.com
Author: Your Name
Author URI: https://kadinx.com
Description: KadınX için modern responsive tema
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kadinxctema
*/

:root {
    --color-primary: #30525c;
    --color-secondary: #f6c992;
    --color-accent: #d396a6;
    --color-teal: #09a1a1;
    --color-bg: #f8f6f3;
    --color-text: #2d3748;
    --color-light: #ffffff;
    --color-gray: #718096;
    --radius: 12px;
}

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

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
    background: var(--color-light);
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo img { max-height: 50px; width: auto; }

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover { color: var(--color-teal); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--color-primary); margin: 6px 0; }

/* === Hero === */
.hero {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 60px 0;
    text-align: center;
}

.hero .container {
    max-width: 700px;
}

.hero h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero > .container > p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.category-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: var(--color-light);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s;
}

.cat-btn:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* === Sections === */
.featured-section, .latest-section { padding: 50px 0; }
.latest-section { background: var(--color-bg); }

.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
    font-weight: 600;
}

/* === Featured Grid === */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.featured-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--color-light);
}

.featured-card__category {
    display: inline-block;
    background: var(--color-teal);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.featured-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.featured-card__title a { color: var(--color-light); }

/* === Posts Grid (6 posts) === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post-card {
    background: var(--color-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__content { padding: 15px 20px 20px; }

.post-card__category {
    display: inline-block;
    color: var(--color-teal);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.post-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.post-card__meta {
    font-size: 12px;
    color: var(--color-gray);
}

.site-content {
    min-height: 60vh;
    padding-bottom: 20px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-text);
    font-size: 14px;
}

.pagination a:hover, .pagination .current {
    background: var(--color-teal);
    color: var(--color-light);
}

/* === Footer === */
.site-footer {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about h3 { font-size: 20px; margin-bottom: 15px; }
.footer-about p { font-size: 14px; opacity: 0.8; line-height: 1.7; }

.footer-links h4, .footer-legal h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 15px; }
.footer-legal a { font-size: 12px; opacity: 0.7; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.footer-social a:hover { background: var(--color-teal); }

.copyright { font-size: 12px; opacity: 0.6; }

/* === Responsive === */
@media (max-width: 1024px) {
    .featured-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-navigation { display: none; width: 100%; order: 3; padding-top: 15px; }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; gap: 15px; text-align: center; }
    .menu-toggle { display: block; }
    
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    
    .featured-grid, .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* === WordPress === */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 20px auto; }

/* === Single Post === */
.single-post { max-width: 800px; margin: 0 auto; }

.single-post .entry-header { text-align: center; margin-bottom: 40px; }

.single-post .post-card__image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post .post-card__image img {
    width: 100%;
    height: auto;
}

.single-post .entry-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 15px;
}

.single-post .entry-meta {
    font-size: 14px;
    color: var(--color-gray);
}

.single-post .entry-meta a {
    color: var(--color-teal);
    font-weight: 500;
}

.single-post .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

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

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: var(--color-primary);
    margin: 30px 0 15px;
    font-weight: 600;
}

.single-post .entry-content h2 { font-size: 28px; }
.single-post .entry-content h3 { font-size: 22px; }
.single-post .entry-content h4 { font-size: 18px; }

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

.single-post .entry-content li {
    margin-bottom: 10px;
}

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

.single-post .entry-content a:hover {
    color: var(--color-primary);
}

.single-post .entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-gray);
}

.single-post .entry-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.single-post .entry-tags a {
    display: inline-block;
    background: var(--color-bg);
    padding: 5px 12px;
    border-radius: 15px;
    margin: 5px;
    font-size: 12px;
    color: var(--color-text);
    transition: all 0.3s;
}

.single-post .entry-tags a:hover {
    background: var(--color-teal);
    color: var(--color-light);
}

/* === Comments === */
.comments-area {
    max-width: 800px;
    margin: 50px auto 0;
    padding: 30px;
    background: var(--color-light);
    border-radius: var(--radius);
}

.comments-area h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.comments-area ol {
    list-style: none;
}

.comments-area li {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.comments-area .comment-author {
    font-weight: 600;
    color: var(--color-primary);
}

.comments-area .comment-meta {
    font-size: 12px;
    color: var(--color-gray);
    margin-bottom: 10px;
}

.comments-area .comment-body {
    font-size: 15px;
    line-height: 1.6;
}

.comments-area .reply {
    margin-top: 10px;
}

.comments-area .reply a {
    color: var(--color-teal);
    font-size: 13px;
    font-weight: 500;
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e8e4df;
    border-radius: 16px;
    font-size: 14px;
    margin-bottom: 15px;
    background: #fdfcfa;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--color-text);
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
    color: #b8b4ad;
    font-style: italic;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 4px 15px rgba(211, 150, 166, 0.15);
}

.comment-form .submit {
    background: linear-gradient(135deg, var(--color-accent), #e8b4bc);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 150, 166, 0.3);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(211, 150, 166, 0.4);
}

/* === Archive Header === */
.archive-header {
    padding: 40px 30px 30px;
    text-align: center;
    background: var(--color-light);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.archive-header h1 {
    font-size: 38px;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.archive-description {
    font-size: 16px;
    color: var(--color-gray);
    max-width: 600px;
    line-height: 1.7;
    font-style: italic;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(246, 201, 146, 0.2), rgba(211, 150, 166, 0.15));
    border-radius: 12px;
    border-left: 4px solid var(--color-secondary);
    text-align: left;
}

/* === Responsive Single === */
@media (max-width: 768px) {
    .single-post .entry-title { font-size: 26px; }
    .single-post .entry-content { font-size: 16px; }
    .comments-area { padding: 20px; }
}