/**
 * Kefalonya - Ic sayfa stilleri (single, page, archive, search, comments, 404)
 *
 * Ana tasarim CSSi (style.css) sadece ana sayfa icin yazilmistir.
 * Bu dosya icerik sayfalari, yorum sistemi, pagination ve icerik tipografisini tamamlar.
 *
 * Renk paleti: #00b4d8 (mavi), #0a1628 (dark navy), #5a5a7a (metin), #f5f0eb (bej), #d4a574 (altin)
 * Fontlar: Playfair Display (basliklar), Inter (govde)
 */

/* ==========================================================================
   1. IC SAYFA NAVBAR OVERRIDE (hero olmayan sayfalarda navbar gorunur)
   ========================================================================== */

/* Front page (home) olmayan sayfalarda navbar scroll'lu (beyaz) baslangictan */
body:not(.home) .navbar {
    background-color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 40px rgba(10, 22, 40, 0.08);
}

body:not(.home) .nav-logo,
body:not(.home) .nav-logo span {
    color: #0a1628;
}

body:not(.home) .nav-logo span {
    color: #00b4d8;
}

body:not(.home) .nav-link {
    color: #1a1a2e;
}

body:not(.home) .nav-link:hover {
    color: #00b4d8;
}

body:not(.home) .nav-toggle span {
    background-color: #0a1628;
}

/* ==========================================================================
   2. IC SAYFA KAPSAYICI (single-post-wrap)
   ========================================================================== */

.single-post-wrap {
    padding-top: 140px;
    padding-bottom: 100px;
    background-color: #ffffff;
    min-height: 60vh;
}

.single-article {
    max-width: 100%;
    background-color: #ffffff;
}

/* ==========================================================================
   3. ICERIK TIPOGRAFISI (.single-content) - EN KRITIK BOLUM
   ========================================================================== */

.single-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1a1a2e;
}

.single-content > *:first-child {
    margin-top: 0;
}

.single-content > *:last-child {
    margin-bottom: 0;
}

.single-content p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

/* --- Basliklar (H2-H6) --- */
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
    font-family: 'Playfair Display', serif;
    color: #0a1628;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 2em;
    margin-bottom: 0.7em;
    scroll-margin-top: 100px; /* sabit navbar anchor offset */
}

.single-content h2 {
    font-size: 1.9rem;
    font-weight: 600;
}

.single-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.single-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.single-content h5 {
    font-size: 1.05rem;
    font-weight: 600;
}

.single-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a5a7a;
}

/* --- Linkler (global reset override) --- */
.single-content a {
    color: #00b4d8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.single-content a:hover {
    color: #0096c7;
    text-decoration-thickness: 2px;
}

/* --- Listeler (global reset list-style:none override) --- */
.single-content ul,
.single-content ol {
    margin-top: 0;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

.single-content li {
    margin-bottom: 0.5em;
}

.single-content li > ul,
.single-content li > ol {
    margin-top: 0.5em;
    margin-bottom: 0;
}

/* --- Blockquote --- */
.single-content blockquote {
    margin: 2em 0;
    padding: 20px 28px;
    border-left: 4px solid #00b4d8;
    background-color: #f8f6f3;
    border-radius: 0 10px 10px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: #0a1628;
}

.single-content blockquote p {
    margin-bottom: 0;
}

.single-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    color: #5a5a7a;
}

/* --- Resim, figure, figcaption, wp-caption --- */
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.single-content .aligncenter,
.single-content .alignnone {
    margin: 2em auto;
}

.single-content .alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

.single-content .alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.single-content figure {
    margin: 2em 0;
}

.single-content figcaption,
.single-content .wp-caption-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #5a5a7a;
    text-align: center;
    font-style: italic;
}

.single-content .wp-caption {
    max-width: 100%;
}

.single-content .wp-caption img {
    display: block;
    margin: 0 auto;
}

/* --- Tablo --- */
.single-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.single-content thead {
    background-color: #f5f0eb;
}

.single-content th,
.single-content td {
    padding: 12px 16px;
    border: 1px solid #f0ece6;
    text-align: left;
}

.single-content th {
    font-weight: 600;
    color: #0a1628;
}

.single-content tbody tr:nth-child(even) {
    background-color: #faf9f7;
}

/* --- Code & Pre --- */
.single-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.9em;
    background-color: rgba(10, 22, 40, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: #c7254e;
}

.single-content pre {
    margin: 1.5em 0;
    padding: 18px 22px;
    background-color: #0a1628;
    color: #e8e8f0;
    border-radius: 10px;
    overflow-x: auto;
    line-height: 1.6;
    font-size: 0.875rem;
}

.single-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.single-content kbd {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.85em;
    background-color: #f0ece6;
    border: 1px solid #d8d2c8;
    border-radius: 4px;
    padding: 2px 6px;
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.15);
}

/* --- Diger icerik elementleri --- */
.single-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d8d2c8, transparent);
    margin: 3em 0;
}

.single-content strong {
    font-weight: 600;
    color: #0a1628;
}

.single-content em {
    font-style: italic;
}

.single-content dl {
    margin: 1.5em 0;
}

.single-content dt {
    font-weight: 600;
    color: #0a1628;
    margin-top: 1em;
}

.single-content dd {
    margin: 0 0 0.5em 1.5em;
}

.single-content address {
    font-style: italic;
    margin: 1.5em 0;
}

/* --- Coklu sayfa linkleri (wp_link_pages) --- */
.single-content .post-page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 4px 12px;
    border: 1px solid #f0ece6;
    border-radius: 6px;
    color: #0a1628;
    text-decoration: none;
}

.single-content .post-page-numbers:hover,
.single-content .post-page-numbers.current {
    background-color: #00b4d8;
    color: #ffffff;
    border-color: #00b4d8;
}

/* ==========================================================================
   4. WORDPRESS CORE & GUTENBERG BLOK DESTEGI
   ========================================================================== */

/* Genel blok margin */
.single-content [class*="wp-block-"] {
    margin-bottom: 1.75em;
}

.single-content [class*="wp-block-"]:last-child {
    margin-bottom: 0;
}

/* Align sınıflari */
.single-content .alignwide {
    width: 100%;
    max-width: 1100px;
    margin-left: calc(50% - 550px);
    margin-right: calc(50% - 550px);
}

.single-content .alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
}

/* Separator */
.single-content .wp-block-separator {
    border: none;
    height: 2px;
    max-width: 80px;
    margin: 3em auto;
    background: linear-gradient(90deg, #00b4d8, #d4a574);
}

/* Pullquote */
.single-content .wp-block-pullquote {
    margin: 2em 0;
    padding: 32px;
    border-top: 4px solid #00b4d8;
    border-bottom: 4px solid #00b4d8;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    text-align: center;
}

/* Quote */
.single-content .wp-block-quote {
    border-left: 4px solid #00b4d8;
    padding: 16px 24px;
    margin: 1.5em 0;
    font-style: italic;
    color: #0a1628;
}

.single-content .wp-block-quote.is-style-large {
    font-size: 1.3rem;
}

/* Buttons */
.single-content .wp-block-button {
    margin: 1.5em 0;
}

.single-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-content .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 180, 216, 0.3);
    color: #ffffff !important;
}

/* Gallery */
.single-content .wp-block-gallery {
    margin: 2em 0;
}

/* Embed */
.single-content .wp-block-embed,
.single-content iframe {
    max-width: 100%;
    margin: 2em 0;
    border-radius: 10px;
}

/* Verse */
.single-content .wp-block-verse {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    padding: 20px;
    background: #f8f6f3;
    border-radius: 10px;
}

/* Genel button sınıflari */
.button,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #00b4d8;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #0a1628;
    color: #0a1628;
    background: transparent;
}

.btn-outline:hover {
    background-color: #0a1628;
    color: #fff;
}

/* ==========================================================================
   5. PAGINATION (.pagination / .nav-links / .page-numbers)
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a1628;
    background-color: #f5f0eb;
    transition: all 0.25s ease;
    text-decoration: none;
}

.page-numbers:hover {
    background-color: #00b4d8;
    color: #ffffff;
}

.page-numbers.current {
    background-color: #0a1628;
    color: #ffffff;
    cursor: default;
}

.page-numbers.dots {
    background: transparent;
    color: #5a5a7a;
    cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 14px;
}

/* ==========================================================================
   6. POST NAVIGATION (onceki/sonraki yazi)
   ========================================================================== */

.post-navigation,
.navigation {
    margin-top: 48px;
}

.post-navigation .nav-links,
.navigation .nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 240px;
    padding: 20px;
    border: 1px solid #f0ece6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: #00b4d8;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.08);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    color: #0a1628;
    text-decoration: none;
}

.post-navigation a:hover {
    color: #00b4d8;
}

/* ==========================================================================
   7. YORUM SISTEMI (.comments-area)
   ========================================================================== */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0ece6;
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #0a1628;
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 48px;
    margin-top: 24px;
    border-left: 2px solid #f0ece6;
}

.comment-body {
    padding: 20px 24px;
    margin-bottom: 20px;
    background-color: #f8f6f3;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.comment-body:hover {
    background-color: #f3efe9;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: #0a1628;
    font-size: 0.95rem;
}

.comment-author .fn {
    font-style: normal;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.78rem;
    color: #5a5a7a;
}

.comment-metadata a {
    color: #5a5a7a;
    transition: color 0.2s ease;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #00b4d8;
}

.comment-content {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #1a1a2e;
}

.comment-content p {
    margin-bottom: 0.8em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 6px;
    font-size: 0.8rem;
}

.avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.reply {
    margin-top: 12px;
}

.reply a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #00b4d8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.reply a:hover {
    color: #0096c7;
}

/* --- Yorum formu --- */
#respond {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #f0ece6;
}

#reply-title,
.comment-reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #0a1628;
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form input[type="search"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0dbd2;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #1a1a2e;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #5a5a7a;
}

.comment-form .comment-form-cookies-consent input {
    width: auto;
}

.comment-form .form-submit {
    margin-top: 8px;
}

.comment-form .newsletter-btn,
.comment-form .submit {
    align-self: flex-start;
    padding: 14px 36px;
}

/* ==========================================================================
   8. ARAMA FORMU (.search-form)
   ========================================================================== */

.search-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 24px auto 0;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0dbd2;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #1a1a2e;
    outline: none;
}

.search-form .search-field:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.search-form .search-submit {
    padding: 12px 24px;
    background-color: #00b4d8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form .search-submit:hover {
    background-color: #0096c7;
}

/* ==========================================================================
   8.5. AUTHOR BOX (yazar kutusu - yunancistan.web.tr deseni)
   ========================================================================== */

.author-box {
    margin-top: 60px;
    padding: 28px;
    background-color: #f8f6f3;
    border-radius: 12px;
    border-left: 4px solid #00b4d8;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.author-box .author-avatar-link {
    flex-shrink: 0;
}

.author-box .author-avatar img,
.author-box img.avatar,
.author-box img.author-avatar {
    border-radius: 50%;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.1);
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 8px;
}

.author-box .author-info h3 a {
    color: #0a1628;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-box .author-info h3 a:hover {
    color: #00b4d8;
}

.author-box .author-info p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5a5a7a;
    margin: 0;
}

@media (max-width: 480px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .author-box .author-avatar img,
    .author-box img.avatar,
    .author-box img.author-avatar {
        width: 72px;
        height: 72px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   9. WIDGET / SIDEBAR
   ========================================================================== */

.widget {
    margin-bottom: 32px;
    padding: 24px;
    background-color: #f8f6f3;
    border-radius: 10px;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #0a1628;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00b4d8;
}

.widget ul,
.widget li {
    list-style: none;
}

.widget li {
    margin-bottom: 8px;
}

.widget a {
    color: #1a1a2e;
    transition: color 0.2s ease;
    text-decoration: none;
}

.widget a:hover {
    color: #00b4d8;
}

/* ==========================================================================
   10. 404 HATA SAYFASI
   ========================================================================== */

.error404 .single-post-wrap {
    display: flex;
    align-items: center;
    min-height: 70vh;
}

/* ==========================================================================
   11. MOBIL RESPONSIVE - IC SAYFALAR
   ========================================================================== */

@media (max-width: 1024px) {
    .single-post-wrap .container {
        max-width: 720px;
    }
}

.error404-section {
    display: flex;
    align-items: center;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .single-post-wrap {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .single-post-wrap .container {
        padding: 0 20px;
    }

    /* Icerik tipografisi kucult */
    .single-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .single-content h2 {
        font-size: 1.6rem;
    }

    .single-content h3 {
        font-size: 1.3rem;
    }

    .single-content h4 {
        font-size: 1.1rem;
    }

    .single-content blockquote {
        font-size: 1.05rem;
        padding: 16px 20px;
    }

    /* Tablo yatay kaydirma */
    .single-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Align reset (float mobilde kirar) */
    .single-content .alignleft,
    .single-content .alignright {
        float: none;
        margin: 2em auto;
        display: block;
    }

    /* Pagination wrap */
    .nav-links {
        gap: 4px;
    }

    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    /* Post navigation stack */
    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        min-width: 100%;
        text-align: left;
    }

    /* Comments: cocuk yorumlari girintisiz yap */
    .comment-list .children {
        padding-left: 20px;
    }

    /* Alignwide/full mobilde sifirla */
    .single-content .alignwide,
    .single-content .alignfull {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .single-post-wrap {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .single-post-wrap .container {
        padding: 0 16px;
    }

    .single-content {
        font-size: 0.95rem;
    }

    .single-content h2 {
        font-size: 1.4rem;
    }

    .single-content h3 {
        font-size: 1.15rem;
    }

    .single-content pre {
        padding: 14px;
        font-size: 0.8rem;
    }

    .single-content blockquote {
        padding: 14px 16px;
    }

    .single-content figure,
    .single-content .wp-caption {
        margin-left: 0;
        margin-right: 0;
    }

    /* Comment avatar kucult */
    .avatar {
        width: 36px;
        height: 36px;
    }

    .comment-body {
        padding: 16px;
    }

    /* Pagination numaralari scroll */
    .nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .page-numbers {
        flex-shrink: 0;
    }
}
