/*
Theme Name: WhiteBlack Pro Modern V2
Author: Kutay Utku
Version: 2.0
Description: Geliştirilmiş beyaz zeminli modern WordPress teması
*/

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #000;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
}

/* Container */
.container {
    width: 1200px;
    max-width: 95%;
    margin: auto;
}

/* HEADER */
header {
    border-bottom: 2px solid #000;
}

/* LOGO AREA */
.logo {
	width: 200px;
}
.logo-area {
    background: #fff;
    padding: 30px 0 30px 0;
    border-bottom: 1px solid #000;
}

.logo-area a {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

/* =========================
   LOGO IMAGE
========================= */

.site-logo img {
    width: 200px;
    height: 90px;
    object-fit: contain;
    display: block;
}

/* Mobil uyum */
@media (max-width: 768px) {

    .site-logo img {
        width: 160px;
        height: auto;
    }

}


.site-description {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* NAVIGATION */
nav {
    background: #000;
}
nav {
    position: relative;
    z-index: 999;
}


nav ul {
    list-style: none;
    display: flex;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    background: #111;
}

/* Submenu */
/* Ana dropdown */
nav ul li {
    position: relative;
}

/* 1. seviye submenu */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;           /* Ana menü hizasında başlar */
    min-width: 220px;  /* Genişlik burada */
    background: #000;
    padding: 0;
}

/* Hover ile aç */
nav ul li:hover > ul {
    display: block;
}

/* Submenu iç link */
nav ul li ul li a {
    padding: 12px 18px;
    white-space: nowrap; /* Yazı taşmasın */
}

/* 2. seviye submenu sağa doğru */
nav ul li ul li {
    position: relative;
}

nav ul li ul li ul {
    top: 0;
    left: 100%;  /* SAĞA DOĞRU AÇILIR */
}
nav ul li ul {
    right: auto;
}
nav ul li ul {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


nav ul li a {
    position: relative;
    z-index: 2;
}
nav ul li ul {
    position: absolute;
    z-index: 1000;
}
nav ul li a::after {
    z-index: 3;
}





nav ul li a {
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: #e10600; /* KIRMIZI */
    transition: width 0.3s ease;
}

/* Hover */
nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Aktif menü */
nav ul li.current-menu-item > a::after,
nav ul li.current_page_item > a::after,
nav ul li.current-menu-parent > a::after,
nav ul li.current-menu-ancestor > a::after {
    width: 100%;
}

nav ul li.current-menu-item > a,
nav ul li.current_page_item > a,
nav ul li.current-menu-parent > a,
nav ul li.current-menu-ancestor > a {
    color: #fff;
}










.read-more {
    position: relative;
    display: inline-block;
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.read-more::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #0073e6;
    transition: width 0.3s ease;
}

.read-more:hover::before {
    width: 100%;
}




.read-more:hover::after {
    margin-left: 6px;
}




.sidebar-featured {
    background: #000;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.sidebar-featured h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.featured-list {
    list-style: none;
    counter-reset: featured-counter;
    padding: 0;
    margin: 0;
}

.featured-list li {
    counter-increment: featured-counter;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* Numara Kutusu */
.featured-list li::before {
    content: counter(featured-counter);
    background: #e10600;
    color: #fff;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 600;
}

/* Link */
.featured-list li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
	font-size: 12px;
}

/* Alt çizgi */
.featured-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #e10600;
    transition: width 0.3s ease;
}

/* Hover efekti */
.featured-list li a:hover::after {
    width: 100%;
}
.featured-list li a:hover {
    color: #e10600;
}



/* =========================
   CODE & PRE STYLING
========================= */

/* Inline code */
code {
    background: #f4f4f4;
    color: #c40000;
    padding: 3px 6px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    border-radius: 4px;
}

/* Kod bloğu */
pre {
    background: #111;
    color: #f8f8f2;
    padding: 20px;
    overflow-x: auto;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

/* pre içindeki code reset */
pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 14px;
}


pre::before {
    content: "CODE";
    position: absolute;
    top: 0;
    right: 0;
    background: #e10600;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-bottom-right-radius: 6px;
}










/* =========================
   FORCE CENTER 404
========================= */

.error-404-wrapper {
    background: #000;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-page {
    width: 100%;
    max-width: 600px;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

/* 404 Kod */
.error-code {
    font-size: 140px;
    font-weight: 900;
    color: #e10600;
    margin-bottom: 10px;
}

/* Başlık */
.error-title {
    font-size: 28px;
    margin-bottom: 15px;
}

/* Açıklama */
.error-description {
    color: #aaa;
    margin-bottom: 30px;
}

/* =========================
   SEARCH
========================= */

.error-search form {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.error-search input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.error-search input[type="submit"] {
    padding: 12px 20px;
    border: none;
    background: #e10600;
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

/* Button */
.btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: #e10600;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn-home:hover {
    background: #b30000;
}




/* =========================
   404 SEARCH FIXED
========================= */

.error-search {
    width: 100%;
    display: flex;
    justify-content: center;
}

.error-search form {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.error-search input[type="search"] {
    flex: 1;
    padding: 14px 15px;
    border: 1px solid #333;
    border-right: none;
    background: #111;
    color: #fff;
    font-size: 15px;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.error-search input[type="submit"] {
    padding: 14px 25px;
    border: 1px solid #e10600;
    background: #e10600;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: 0.3s ease;
}

.error-search input[type="submit"]:hover {
    background: #b30000;
    border-color: #b30000;
}


.error-search form * {
    margin: 0 !important;
}














/* =========================
   FULL WIDTH SIDEBAR SEARCH
========================= */

.sidebar-search {
    width: 100%;
    background: #111;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-sizing: border-box;
}

.sidebar-search h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}
.sidebar-search label {
	width: 100%;
}
/* FORM FULL WIDTH */
.sidebar-search form {
    display: flex;
    width: 100%;
    gap: 0;
}

/* INPUT FULL WIDTH */
.sidebar-search input[type="search"] {
    flex: 1;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #333;
    border-right: none;
    background: #000;
    color: #fff;
    border-radius: 6px 0 0 6px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    margin: 0;
}

/* BUTTON */
.sidebar-search input[type="submit"] {
    padding: 12px 20px;
    border: 1px solid #e10600;
    background: #e10600;
    color: #fff;
    font-weight: 600;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: 0.3s ease;
    margin: 0;
}

.sidebar-search input[type="submit"]:hover {
    background: #b30000;
    border-color: #b30000;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 480px) {

    .sidebar-search form {
        flex-direction: column;
    }

    .sidebar-search input[type="search"] {
        border-radius: 6px;
        border-right: 1px solid #333;
        margin-bottom: 10px;
    }

    .sidebar-search input[type="submit"] {
        border-radius: 6px;
        width: 100%;
    }

}










/* Layout */
.main-content {
    display: flex;
    margin-top: 40px;
}

.content {
    width: 70%;
    padding-right: 40px;
}

.sidebar {
    width: 30%;
    border-left: 2px solid #000;
    padding-left: 25px;
}

.category-list {
    list-style: none;
    padding-left: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.category-list li a {
    color: #000;
    text-decoration: none;
}

.category-list li a:hover {
    color: #0073e6;
}

.category-list .count {
    color: #666;
    font-size: 14px;
}


/* POSTS */

/* =========================
   ARTICLE H2 HOVER EFFECT
========================= */

article h2 a {
    position: relative;
    display: inline-block;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Alt çizgi */
article h2 a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background: #0073e6;
    transition: width 0.3s ease;
}

/* Hover */
article h2 a:hover {
    color: #0073e6;
}

article h2 a:hover::before {
    width: 100%;
}






article {
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid #000;
}

article h2 a,
article h1 {
    color: #000;
    text-decoration: none;
}

article h2 a:hover {
    color: #0073e6;
}

article p {
    margin: 15px 0;
}

/* CATEGORY LINKS */
.sidebar a {
    color: #000;
    text-decoration: none;
}

.sidebar a:hover {
    color: #0073e6;
}

.sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}







.sidebar h3 {
    position: relative;
    display: inline-block;
}

.sidebar h3::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #e10600;
    transition: width 0.3s ease;
}

.sidebar h3:hover::before {
    width: 100%;
}

.sidebar ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #333;
}

.sidebar ul li a::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #e10600;
    transition: width 0.3s ease;
}

.sidebar ul li a:hover::before {
    width: 100%;
}





/* =========================
   SINGLE CONTENT LIST STYLE
========================= */

.content ul,
.content ol {
    margin: 20px 0 20px 25px;
    padding: 0;
}

/* UL */
.content ul {
    list-style: none;
}

.content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Özel siyah nokta */
.content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

/* Hover efekti */
.content ul li:hover::before {
    background: #e10600;
}

/* OL */
.content ol {
    list-style: none;
    counter-reset: custom-counter;
}

.content ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Numaralı tasarım */
.content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #000;
    color: #fff;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 13px;
    border-radius: 4px;
}

/* Hover */
.content ol li:hover::before {
    background: #e10600;
}




/* İç içe liste */
.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
}



@media (max-width: 768px) {

    .content ul li,
    .content ol li {
        padding-left: 20px;
        font-size: 14px;
    }

    .content ol li::before {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
    }

}






/* =========================
   SINGLE PAGE LINKS - RED
========================= */

.single .content a {
    color: #e10600;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover */
.single .content a:hover {
    color: #b30000;
    text-decoration: underline;
}

/* Ziyaret edilmiş */
.single .content a:visited {
    color: #990000;
}

/* Focus (erişilebilirlik) */
.single .content a:focus {
    outline: 2px solid #e10600;
    outline-offset: 2px;
}






















/* =========================
   PAGE STYLING
========================= */

.single-page {
    margin-top: 0px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 25px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.page-thumbnail {
    margin: 20px 0;
}

.page-thumbnail img {
    max-width: 100%;
    height: auto;
}

.page-content {
    line-height: 1.8;
    font-size: 16px;
}

.edit-link {
    margin-top: 30px;
    font-size: 14px;
}

.edit-link a {
    color: #e10600;
    text-decoration: none;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* =========================
   PAGE.PHP LINK TASARIMI
========================= */

.single-page .page-content a {
    position: relative;
    color: #e10600;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

/* Alt çizgi animasyonu */
.single-page .page-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #e10600;
    transition: width 0.3s ease;
}

.single-page .page-content a:hover::after {
    width: 100%;
}

/* Hover renk */
.single-page .page-content a:hover {
    color: #b30000;
}



/* =========================
   PAGINATION
========================= */

.navigation.pagination,
.wp-pagenavi {
    margin: 40px 0;
    text-align: center;
	border-radius: 8px;
}

.navigation.pagination .nav-links,
.wp-pagenavi {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation.pagination a,
.navigation.pagination span,
.wp-pagenavi a,
.wp-pagenavi span {
    padding: 8px 14px;
    border: 1px solid #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover */
.navigation.pagination a:hover,
.wp-pagenavi a:hover {
    background: #e10600;
    color: #fff;
    border-color: #e10600;
}

/* Aktif sayfa */
.navigation.pagination .current,
.wp-pagenavi .current {
    background: #e10600;
    color: #fff;
    border-color: #e10600;
    font-weight: bold;
}




@media (max-width: 768px) {

    .navigation.pagination .nav-links,
    .wp-pagenavi {
        gap: 6px;
    }

    .navigation.pagination a,
    .navigation.pagination span,
    .wp-pagenavi a,
    .wp-pagenavi span {
        padding: 6px 10px;
        font-size: 13px;
    }

}












/* ============================= */
/* YORUM ALANI GENEL */
/* ============================= */

.yorum-wrapper {
    margin-top: 50px;
}

.yorum-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yorum-item {
    margin-bottom: 25px;
}

/* ============================= */
/* YORUM KART */
/* ============================= */

.yorum-kart {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 14px;
}

.yorum-avatar img {
    border-radius: 50%;
}

.yorum-icerik {
    flex: 1;
}

.yorum-ust {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.yorum-yazar {
    font-weight: 600;
    font-size: 15px;
}

.yorum-tarih {
    font-size: 13px;
    color: #777;
}

.yorum-metin {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 15px;
}

/* ============================= */
/* CEVAPLA BUTONU */
/* ============================= */

.yorum-aksiyon a {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background: #ffffff;       /* Beyaz arka plan */
    color: #000000;            /* Siyah yazı */
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.yorum-aksiyon a:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* ============================= */
/* ALT YORUMLAR */
/* ============================= */

.yorum-listesi .children {
    list-style: none;
    margin-left: 60px;
    padding-left: 0;
}

/* ============================= */
/* FORM DÜZENLEMESİ */
/* ============================= */

.yorum-form {
    margin-top: 40px;
}

/* Textarea */
.yorum-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: vertical;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Input alanları (isim, email, internet sitesi) */
.yorum-form input[type="text"],
.yorum-form input[type="email"],
.yorum-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 12px;
}

/* İnternet sitesi özel fix */
.yorum-form input[type="url"] {
    display: block;
}

/* Gönder butonu */
.yorum-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.yorum-form input[type="submit"]:hover {
    background: #333;
}


.yorum-bekliyor {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
}


/* ============================= */
/* MOBİL */
/* ============================= */

@media (max-width: 768px) {

    .yorum-kart {
        flex-direction: column;
    }

    .yorum-ust {
        flex-direction: column;
        align-items: flex-start;
    }

    .yorum-listesi .children {
        margin-left: 0;
    }
}
























/* FOOTER */
footer {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 2px solid #000;
    background: #f8f8f8;
}

.footer-left a {
    color: #000;
    text-decoration: none;
}

.footer-left a:hover {
    color: #0073e6;
}

/* Responsive */
@media(max-width: 768px){
    .main-content {
        flex-direction: column;
    }
    .content, .sidebar {
        width: 100%;
        padding: 0;
        border: none;
    }
    nav ul {
        flex-direction: column;
    }
}


/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;
    background: #000;
    color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    border: none;
    width: 100%;
    text-align: left;
}

@media (max-width: 768px) {

    nav {
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #000;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        border-top: 1px solid #222;
    }

    nav ul li ul {
        position: static;
        box-shadow: none;
    }

    nav.active ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        flex-direction: column;
    }

    .content,
    .sidebar {
        width: 100%;
        padding: 0;
        border: none;
    }

    .sidebar {
        margin-top: 40px;
        border-top: 2px solid #000;
        padding-top: 20px;
    }
}
