/*
Theme Name: PadisahTheme
Theme URI: https://padisahbetgirisadresleri.com
Author: PadisahTheme
Author URI: https://padisahbetgirisadresleri.com
Description: Padisahbetgirisadresleri.com Wordpress Teması
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: padisahtheme
*/

/* ===== RESET ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.7;color:#2c3e50;background:#eef2f7;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{max-width:100%;height:auto;display:block}
a{color:#3b82f6;text-decoration:none;transition:color .2s ease}
a:hover{color:#1d5bbf}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.3;color:#1a2744}

/* ===== LAYOUT ===== */
.site-wrap{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}

/* ===== NAVIGATION ===== */
.top-bar{background:linear-gradient(135deg,#141e30 0%,#1a2a44 100%);position:relative;z-index:1000;border-bottom:2px solid #3b82f6}
.top-bar .wrap{display:flex;align-items:center;justify-content:flex-end;min-height:52px}

/* Desktop Nav */
.primary-nav{display:flex;align-items:center}
.primary-nav li{position:relative}
.primary-nav li a{display:block;padding:15px 16px;color:#c5d3e8;font-size:.88rem;font-weight:500;letter-spacing:.02em;transition:color .2s ease,background .2s ease;white-space:nowrap}
.primary-nav li a:hover,.primary-nav li.current-menu-item>a,.primary-nav li.current_page_item>a{color:#fff;background:rgba(59,130,246,.12)}

/* Desktop Arrow */
.primary-nav li.menu-item-has-children>a{padding-right:28px}
.primary-nav li.menu-item-has-children>a::after{content:'';position:absolute;right:10px;top:50%;width:5px;height:5px;border-right:1.5px solid #6b8cba;border-bottom:1.5px solid #6b8cba;transform:translateY(-50%) rotate(45deg);transition:transform .25s ease,border-color .25s ease}
.primary-nav li.menu-item-has-children:hover>a::after{transform:translateY(-50%) rotate(-135deg);border-color:#3b82f6}

/* Dropdown */
.primary-nav li ul.sub-menu,.primary-nav li ul.children{position:absolute;top:100%;left:0;background:#1a2a44;min-width:210px;opacity:0;visibility:hidden;transform:translateY(6px);transition:all .22s ease;border-left:3px solid #3b82f6;box-shadow:0 8px 28px rgba(0,0,0,.3);z-index:1001;padding:4px 0;border-radius:0 0 6px 0}
.primary-nav li:hover>ul.sub-menu,.primary-nav li:hover>ul.children{opacity:1;visibility:visible;transform:translateY(0)}
.primary-nav li ul.sub-menu li a,.primary-nav li ul.children li a{padding:9px 18px;font-size:.84rem;color:#a8bcda}
.primary-nav li ul.sub-menu li a:hover,.primary-nav li ul.children li a:hover{color:#fff;background:rgba(59,130,246,.1)}

/* Nested Dropdown */
.primary-nav li ul.sub-menu li ul.sub-menu,.primary-nav li ul.children li ul.children{top:0;left:100%;border-left:3px solid #3b82f6}
.primary-nav li ul.sub-menu li:hover>ul.sub-menu,.primary-nav li ul.children li:hover>ul.children{opacity:1;visibility:visible;transform:translateY(0)}

/* Nested Arrow */
.primary-nav li ul.sub-menu li.menu-item-has-children>a::after,.primary-nav li ul.children li.menu-item-has-children>a::after{transform:translateY(-50%) rotate(-45deg)}
.primary-nav li ul.sub-menu li.menu-item-has-children:hover>a::after,.primary-nav li ul.children li.menu-item-has-children:hover>a::after{border-color:#3b82f6}

/* ===== HAMBURGER ===== */
.burger-btn{display:none;background:none;border:none;cursor:pointer;width:38px;height:38px;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:6px}
.burger-btn span{display:block;width:22px;height:2px;background:#c5d3e8;border-radius:2px;transition:transform .3s ease,opacity .3s ease}
.burger-btn.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger-btn.is-open span:nth-child(2){opacity:0}
.burger-btn.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ===== MOBILE SUB-TOGGLE ===== */
.child-toggle{display:none;background:none;border:none;cursor:pointer;color:#6b8cba;transition:color .2s ease;position:absolute;right:0;top:0;width:48px;height:auto;padding:15px 0;z-index:2;align-items:center;justify-content:center}
.child-toggle::after{content:'';display:block;width:7px;height:7px;border-right:2px solid #6b8cba;border-bottom:2px solid #6b8cba;transform:rotate(45deg);transition:transform .25s ease,border-color .25s ease}
.child-toggle.is-open::after{transform:rotate(-135deg);border-color:#3b82f6}

@media(max-width:900px){
.burger-btn{display:flex}
.primary-nav{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:linear-gradient(180deg,#141e30 0%,#1a2a44 100%);border-top:2px solid #3b82f6;box-shadow:0 12px 30px rgba(0,0,0,.35);max-height:72vh;overflow-y:auto}
.primary-nav.is-visible{display:flex}
.primary-nav li{border-bottom:1px solid rgba(255,255,255,.05);position:relative}
.primary-nav li a{padding:14px 20px;padding-right:56px;font-size:.92rem}
.primary-nav li.menu-item-has-children>a::after{display:none}
.child-toggle{display:flex}
.primary-nav li ul.sub-menu,.primary-nav li ul.children{position:static;opacity:1;visibility:visible;transform:none;display:none;border-left:none;box-shadow:none;min-width:auto;background:rgba(59,130,246,.04);padding:0;border-radius:0}
.primary-nav li ul.sub-menu.is-visible,.primary-nav li ul.children.is-visible{display:block}
.primary-nav li ul.sub-menu li a,.primary-nav li ul.children li a{padding:12px 20px 12px 38px;padding-right:56px;font-size:.86rem}
.primary-nav li ul.sub-menu li a:hover,.primary-nav li ul.children li a:hover{padding-left:38px}
.primary-nav li ul.sub-menu li ul.sub-menu,.primary-nav li ul.children li ul.children{position:static;left:auto;top:auto;border-left:none}
.primary-nav li ul.sub-menu li ul.sub-menu li a,.primary-nav li ul.children li ul.children li a{padding-left:54px}
.primary-nav li ul.sub-menu li.menu-item-has-children>a::after,.primary-nav li ul.children li.menu-item-has-children>a::after{display:none}
}

/* ===== BREADCRUMB ===== */
.breadcrumbs{padding:16px 0;font-size:.8rem;color:#7b8fa6}
.breadcrumbs a{color:#3b82f6;font-weight:500}
.breadcrumbs a:hover{color:#1d5bbf}
.breadcrumbs .bc-sep{margin:0 7px;color:#a0b3c8;font-weight:400}

/* ===== CONTENT ===== */
.content-section{padding:28px 0 50px}

/* Post Cards — horizontal strip style */
.entry-card{background:#fff;border-radius:8px;margin-bottom:18px;border:1px solid #dce4ee;display:flex;align-items:stretch;overflow:hidden;transition:box-shadow .25s ease,border-color .25s ease}
.entry-card:hover{box-shadow:0 6px 24px rgba(26,39,68,.07);border-color:#b8cce4}
.entry-card .card-thumb{width:200px;min-width:200px;overflow:hidden;background:#dce4ee}
.entry-card .card-thumb img{width:100%;height:100%;object-fit:cover}
.entry-card .card-body{padding:22px 26px;flex:1;display:flex;flex-direction:column;justify-content:center}
.entry-card .card-body h2{font-size:1.15rem;margin-bottom:8px;line-height:1.4}
.entry-card .card-body h2 a{color:#1a2744}
.entry-card .card-body h2 a:hover{color:#3b82f6}
.entry-card .card-body .card-excerpt{color:#5a6f87;font-size:.88rem;line-height:1.65;margin-bottom:10px}
.entry-card .card-body .card-more{color:#3b82f6;font-weight:600;font-size:.82rem}
.entry-card .card-body .card-more:hover{color:#1d5bbf}

/* ===== SINGLE POST ===== */
.single-content{background:#fff;border-radius:8px;padding:34px 38px;border:1px solid #dce4ee}
.single-content h1.entry-title{font-size:1.6rem;margin-bottom:18px;color:#1a2744;line-height:1.4}
.entry-body{color:#384b5e;font-size:1rem;line-height:1.85}
.entry-body p{margin-bottom:16px}
.entry-body h2{font-size:1.3rem;margin:28px 0 12px;color:#1a2744;padding-bottom:6px;border-bottom:2px solid #3b82f6}
.entry-body h3{font-size:1.1rem;margin:22px 0 10px;color:#1a2744}
.entry-body ul,.entry-body ol{margin:10px 0 16px 22px}
.entry-body ul{list-style:disc}
.entry-body ol{list-style:decimal}
.entry-body li{margin-bottom:5px;color:#5a6f87}
.entry-body a{color:#3b82f6;font-weight:500;border-bottom:1px dotted rgba(59,130,246,.3)}
.entry-body a:hover{border-bottom-style:solid}
.entry-body img{border-radius:6px;margin:14px 0}
.entry-body blockquote{border-left:3px solid #3b82f6;background:#f0f6ff;padding:14px 18px;margin:18px 0;border-radius:0 6px 6px 0;color:#4a6480;font-style:italic}
.entry-body table{width:100%;border-collapse:collapse;margin:14px 0}
.entry-body th,.entry-body td{padding:9px 12px;border:1px solid #dce4ee;text-align:left}
.entry-body th{background:#f0f4f9;font-weight:600;color:#1a2744}

/* Featured Image */
.entry-card .card-thumb-full{margin-bottom:18px;border-radius:6px;overflow:hidden}
.entry-card .card-thumb-full img{width:100%;height:auto}

/* ===== POST NAV ===== */
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:36px;padding-top:24px;border-top:1px solid #dce4ee}
.post-nav .pn-item{background:#f5f8fc;border-radius:8px;padding:16px 20px;border:1px solid #dce4ee;transition:border-color .2s ease}
.post-nav .pn-item:hover{border-color:#3b82f6}
.post-nav .pn-item .pn-label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:#8da0b8;margin-bottom:5px;font-weight:600}
.post-nav .pn-item .pn-title{color:#1a2744;font-weight:600;font-size:.9rem;display:block}
.post-nav .pn-item:hover .pn-title{color:#3b82f6}
.post-nav .pn-item.pn-next{text-align:right}

/* ===== RANDOM POSTS ===== */
.also-read{margin-top:36px;padding-top:24px;border-top:1px solid #dce4ee}
.also-read h3{font-size:1rem;margin-bottom:16px;color:#1a2744;display:flex;align-items:center;gap:8px}
.also-read h3::before{content:'';width:4px;height:18px;background:#3b82f6;border-radius:2px;display:inline-block}
.also-read-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.also-read-item{background:#f5f8fc;border-radius:8px;padding:14px 16px;border:1px solid #dce4ee;transition:border-color .2s ease}
.also-read-item:hover{border-color:#3b82f6}
.also-read-item .ar-thumb{margin-bottom:8px;border-radius:5px;overflow:hidden}
.also-read-item .ar-thumb img{width:100%;height:auto}
.also-read-item a{font-weight:600;color:#1a2744;font-size:.85rem;line-height:1.35;display:block}
.also-read-item a:hover{color:#3b82f6}

/* ===== ARCHIVE HEADER ===== */
.archive-head{margin-bottom:24px;padding-bottom:14px;border-bottom:2px solid #3b82f6}
.archive-head h1{font-size:1.4rem;color:#1a2744}
.archive-head .archive-intro{color:#7b8fa6;font-size:.88rem;margin-top:4px}

/* ===== PAGINATION ===== */
.page-numbers-wrap{display:flex;justify-content:center;align-items:center;gap:5px;margin:34px 0;flex-wrap:wrap}
.page-numbers-wrap a,.page-numbers-wrap span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:6px;font-size:.86rem;font-weight:600;color:#5a6f87;background:#fff;border:1px solid #dce4ee;transition:all .2s ease}
.page-numbers-wrap a:hover{color:#3b82f6;border-color:#3b82f6}
.page-numbers-wrap .current{background:#3b82f6;color:#fff;border-color:#3b82f6}
.page-numbers-wrap .dots{border:none;background:none}

/* ===== 404 ===== */
.not-found{text-align:center;padding:56px 20px}
.not-found h1{font-size:3.5rem;color:#1a2744;margin-bottom:10px}
.not-found p{color:#7b8fa6;font-size:1rem;margin-bottom:22px}
.not-found .btn-back{display:inline-block;background:#3b82f6;color:#fff;padding:11px 26px;border-radius:6px;font-weight:600;font-size:.9rem;transition:background .2s ease}
.not-found .btn-back:hover{background:#1d5bbf}

/* ===== SEARCH ===== */
.search-form{display:flex;gap:6px;margin:18px 0}
.search-form .search-field{flex:1;padding:10px 14px;border:1px solid #dce4ee;border-radius:6px;font-size:.9rem;outline:none;transition:border-color .2s ease}
.search-form .search-field:focus{border-color:#3b82f6}
.search-form .search-submit{background:#3b82f6;color:#fff;border:none;padding:10px 20px;border-radius:6px;font-weight:600;cursor:pointer;transition:background .2s ease}
.search-form .search-submit:hover{background:#1d5bbf}

/* ===== COMMENTS ===== */
.comments-section{margin-top:36px;padding-top:24px;border-top:1px solid #dce4ee}
.comments-section h3{font-size:1rem;margin-bottom:18px;color:#1a2744}
.comment-list{margin:0;padding:0}
.comment-list .comment{margin-bottom:16px;padding:16px 18px;background:#f5f8fc;border-radius:8px;border:1px solid #dce4ee}
.comment-list .comment .comment-meta{margin-bottom:6px;font-size:.8rem;color:#7b8fa6}
.comment-list .comment .comment-meta a{color:#3b82f6}
.comment-list .comment .comment-content{color:#384b5e;font-size:.9rem;line-height:1.7}
.comment-list .comment .comment-content p{margin-bottom:6px}
.comment-list .children{margin-left:22px;margin-top:14px}
.comment-respond{margin-top:24px}
.comment-respond .comment-form label{display:block;font-size:.84rem;font-weight:600;color:#1a2744;margin-bottom:3px}
.comment-respond .comment-form input[type="text"],.comment-respond .comment-form input[type="email"],.comment-respond .comment-form input[type="url"],.comment-respond .comment-form textarea{width:100%;padding:9px 13px;border:1px solid #dce4ee;border-radius:6px;font-size:.88rem;margin-bottom:12px;outline:none;transition:border-color .2s ease;font-family:inherit}
.comment-respond .comment-form input:focus,.comment-respond .comment-form textarea:focus{border-color:#3b82f6}
.comment-respond .comment-form .form-submit input{background:#3b82f6;color:#fff;border:none;padding:11px 26px;border-radius:6px;font-weight:600;cursor:pointer;font-size:.88rem;transition:background .2s ease}
.comment-respond .comment-form .form-submit input:hover{background:#1d5bbf}

/* ===== FOOTER ===== */
.site-bottom{background:linear-gradient(135deg,#141e30 0%,#1a2a44 100%);color:#9bb0cc;padding:38px 0 0}
.bottom-widgets{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding-bottom:28px}
.bottom-widgets .widget{font-size:.86rem}
.bottom-widgets .widget h3,.bottom-widgets .widget-title{color:#e0eaf5;font-size:.95rem;font-weight:700;margin-bottom:12px;padding-bottom:7px;border-bottom:2px solid rgba(59,130,246,.25)}
.bottom-widgets .widget a{color:#9bb0cc;transition:color .2s ease}
.bottom-widgets .widget a:hover{color:#3b82f6}
.bottom-widgets .widget ul li{padding:4px 0;border-bottom:1px solid rgba(255,255,255,.04)}
.bottom-widgets .widget p{line-height:1.7;color:#9bb0cc}
.bottom-line{border-top:1px solid rgba(255,255,255,.07);padding:16px 0;text-align:center;font-size:.78rem;color:#6b8cba}
.bottom-line a{color:#9bb0cc}
.bottom-line a:hover{color:#3b82f6}

/* ===== PAGE ===== */
.page-body{background:#fff;border-radius:8px;padding:34px 38px;border:1px solid #dce4ee}
.page-body h1{font-size:1.4rem;margin-bottom:18px;color:#1a2744}

/* ===== SIDEBAR ===== */
.has-sidebar{display:grid;grid-template-columns:1fr 300px;gap:28px}
.side-col .widget{background:#fff;border-radius:8px;padding:20px 22px;margin-bottom:18px;border:1px solid #dce4ee}
.side-col .widget h3,.side-col .widget-title{font-size:.92rem;color:#1a2744;margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid #3b82f6}
.side-col .widget a{color:#5a6f87;font-size:.86rem}
.side-col .widget a:hover{color:#3b82f6}
.side-col .widget ul li{padding:5px 0;border-bottom:1px solid #f0f4f9}

/* ===== POPUP ===== */
.popup-chk{display:none}
.popup-chk:checked~.popup-wrap{transform:translateY(100%);opacity:0;visibility:hidden;pointer-events:none}
.popup-wrap{position:fixed;bottom:0;left:0;width:100%;max-height:30vh;z-index:9999;transform:translateY(0);opacity:1;visibility:visible;transition:transform .4s cubic-bezier(.175,.885,.32,1.275),opacity .4s ease,visibility .4s ease;box-shadow:0 -8px 36px rgba(0,0,0,.5)}
.popup-inner{background:linear-gradient(180deg,#141e30 0%,#0c1424 100%);padding:1.3rem 1rem .8rem;position:relative;border-radius:16px 16px 0 0;max-width:560px;margin:0 auto;border-top:3px solid #3b82f6;box-shadow:inset 0 2px 12px rgba(59,130,246,.15)}
.popup-close{position:absolute;top:-13px;right:13px;background:#1a2a44;border:2px solid #3b82f6;color:#3b82f6;font-size:1rem;cursor:pointer;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;line-height:1;z-index:10;box-shadow:0 3px 8px rgba(0,0,0,.4);transition:all .2s ease}
.popup-close:hover{background:#3b82f6;color:#fff;transform:scale(1.1)}
.popup-head{text-align:center;margin-bottom:.6rem}
.popup-head h3{font-size:1.05rem;font-weight:900;margin:0 0 .15rem;color:#e8f0fa}
.popup-head p{color:#7b8fa6;font-size:.68rem;font-weight:500;margin:0;letter-spacing:.03em;text-transform:uppercase}
.popup-brands{display:flex;flex-direction:column;gap:.5rem}
.popup-card{display:flex;align-items:center;background:linear-gradient(90deg,rgba(59,130,246,.1) 0%,rgba(20,30,48,.8) 100%);border-radius:9px;padding:.55rem .7rem;text-decoration:none;color:#fff;border:1px solid rgba(59,130,246,.25);gap:.6rem;position:relative;overflow:hidden;transition:transform .2s ease}
.popup-card:active{transform:scale(.98)}
.popup-card::before{content:"";position:absolute;top:0;left:-100%;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent);transform:skewX(-20deg);animation:pshine 3s infinite}
@keyframes pshine{0%{left:-100%}20%{left:200%}100%{left:200%}}
.popup-card-alt{background:linear-gradient(90deg,rgba(59,130,246,.15) 0%,rgba(20,30,48,.8) 100%);border:1px solid rgba(59,130,246,.35)}
.popup-card-alt .popup-cta{background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%)}
.popup-logo{width:60px;min-width:60px;height:34px;background:#fff;border-radius:5px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:2px solid rgba(255,255,255,.08);box-shadow:0 2px 6px rgba(0,0,0,.35)}
.popup-logo img{width:88%;height:88%;object-fit:contain}
.popup-info{flex:1;min-width:0}
.popup-info strong{display:block;font-size:.82rem;font-weight:800;margin-bottom:.12rem;color:#e8f0fa}
.popup-info span{font-size:.6rem;color:#c5d3e8;line-height:1.3;display:block}
.popup-cta{background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);color:#fff;font-size:.62rem;font-weight:800;padding:.32rem .65rem;border-radius:18px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;flex-shrink:0;box-shadow:0 0 10px rgba(59,130,246,.3)}
@media(max-width:480px){.popup-inner{padding:1.3rem .7rem .6rem}.popup-head h3{font-size:.9rem}.popup-logo{width:46px;min-width:46px;height:26px}.popup-info strong{font-size:.72rem}.popup-info span{font-size:.54rem}.popup-cta{font-size:.52rem;padding:.25rem .45rem}}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
.bottom-widgets{grid-template-columns:1fr}
.has-sidebar{grid-template-columns:1fr}
.also-read-grid{grid-template-columns:1fr 1fr}
.single-content{padding:22px 18px}
.page-body{padding:22px 18px}
.entry-card{flex-direction:column}
.entry-card .card-thumb{width:100%;min-width:auto;height:180px}
}
@media(max-width:600px){
.post-nav{grid-template-columns:1fr}
.also-read-grid{grid-template-columns:1fr}
.wrap{padding:0 14px}
.single-content h1.entry-title{font-size:1.25rem}
.entry-card .card-thumb{height:150px}
.entry-card .card-body{padding:16px 18px}
}

/* ===== ACCESSIBILITY ===== */
.sr-only{clip:rect(1px,1px,1px,1px);position:absolute!important;height:1px;width:1px;overflow:hidden;word-wrap:normal!important}
.sr-only:focus{display:block;background:#f1f1f1;clip:auto!important;color:#0073aa;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}

/* ===== WP DEFAULTS ===== */
.alignleft{float:left;margin:0 18px 18px 0}
.alignright{float:right;margin:0 0 18px 18px}
.aligncenter{display:block;margin:0 auto 18px}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:.78rem;color:#7b8fa6;text-align:center;margin-top:5px}
.gallery{display:flex;flex-wrap:wrap;gap:6px}
.gallery-item{flex:1 1 auto}
.sticky .entry-card{border-left:4px solid #3b82f6}
.bypostauthor .comment{border-left:4px solid #3b82f6}
