/* ================================================================
   ZENMYKO Dark Kingdom Premium v4.8 - Thread / forum refinements
   Loaded last to override default MyBB styles. Retains v4.7 SEO.
   ================================================================ */
:root{--zen48-panel:#121219;--zen48-edge:#77503c;--zen48-gold:#efc483;--zen48-soft:#c9ae95}

/* White / gray MyBB table-footers, forum sort rows and thread nav. */
body.zen-forumdisplay-page #content .tborder .tfoot,
body.zen-forumdisplay-page #content .zen-thread-table .tfoot,
body.zen-showthread-page #content .tborder .tfoot,
body.zen-showthread-page #content .zen-showthread-table .tfoot,
body.zen-showthread-page #content #posts_container,
body.zen-forumdisplay-page #content .zen-thread-table .trow1,
body.zen-forumdisplay-page #content .zen-thread-table .trow2{
 background:#14131a!important;background-image:none!important;
 color:#d9c6b6!important;border-color:#604035!important;
}
body.zen-showthread-page #content .zen-thread-navigation,
body.zen-forumdisplay-page #content .zen-thread-table .tfoot{
 padding:11px 14px!important;border-top:1px solid #75503b!important;
}
body.zen-forumdisplay-page #content .zen-thread-table .tfoot form,
body.zen-showthread-page #content .zen-thread-navigation form{
 background:transparent!important;color:#d7c4b4!important;
}
/* Previous / next links and text embedded in the footers. */
body.zen-showthread-page #content .zen-thread-navigation a,
body.zen-forumdisplay-page #content .zen-thread-table .tfoot a,
body.zen-forumdisplay-page #content .zen-threadlist-footer a,
body.zen-showthread-page #content .thread_tools a,
body.zen-showthread-page #content .post_meta a,
body.zen-showthread-page #content .post_head a,
body.zen-showthread-page #content .navigation a{
 color:var(--zen48-gold)!important;text-decoration:none!important;
}
body.zen-showthread-page #content .zen-thread-navigation a:hover,
body.zen-forumdisplay-page #content .zen-thread-table .tfoot a:hover,
body.zen-showthread-page #content .thread_tools a:hover{color:#ffedc9!important}
body.zen-showthread-page #content .post_body a:not(.button){color:#edb96d!important}

/* Standard MyBB form controls need the same gold/graphite palette. */
body.zen-forumdisplay-page #content select,
body.zen-forumdisplay-page #content input.textbox,
body.zen-showthread-page #content select,
body.zen-showthread-page #content input.textbox,
body.zen-showthread-page #content textarea{
 background-color:#121119!important;color:#f3e0c7!important;
 border:1px solid #694635!important;box-shadow:none!important;
}
body.zen-forumdisplay-page #content select:focus,
body.zen-showthread-page #content select:focus,
body.zen-showthread-page #content textarea:focus{outline:1px solid #c89b60!important}
body.zen-forumdisplay-page #content .button,
body.zen-forumdisplay-page #content input.button,
body.zen-showthread-page #content .button,
body.zen-showthread-page #content input.button{
 background:linear-gradient(180deg,#c79550,#a86d35)!important;
 border:1px solid #d5a76b!important;color:#1b1010!important;
 border-radius:6px!important;font-weight:800!important;
}

/* Forum list: only one action row remains after the thread table. */
body.zen-forumdisplay-page .zen-threadlist-actions{
 margin:14px 0 16px!important;gap:10px!important;
}
body.zen-forumdisplay-page .zen-threadlist-actions a.button{margin:0!important}
body.zen-forumdisplay-page .zen-threadlist-footer{color:#d9bf9f!important}

/* Main thread card and consistent post-area surfaces. */
body.zen-showthread-page #content .zen-showthread-table{
 background:#111119!important;border:1px solid #83573e!important;
 border-radius:12px!important;overflow:hidden!important;
 box-shadow:0 12px 35px rgba(0,0,0,.44)!important;
}
body.zen-showthread-page #content .zen-showthread-table .thead{
 background:linear-gradient(180deg,#352216,#1a1518)!important;
 border-bottom:1px solid #8c603f!important;color:#f6d9a6!important;
}
body.zen-showthread-page #content #posts_container{padding:0!important}
body.zen-showthread-page #posts .post,
body.zen-showthread-page #posts .post.classic{
 margin:0!important;border:0!important;border-bottom:1px solid #573a35!important;
 border-radius:0!important;background:#17171f!important;
}
body.zen-showthread-page #posts .post.classic .post_author{
 width:210px!important;min-width:210px!important;float:left!important;
 box-sizing:border-box!important;padding:19px 15px!important;
 background:linear-gradient(180deg,#211a20 0%,#1a171f 100%)!important;
 border-right:1px solid #60433b!important;border-bottom:0!important;
 text-align:center!important;
}
body.zen-showthread-page #posts .post.classic .post_content{
 margin-left:210px!important;background:#17171f!important;
 padding:20px 24px!important;min-height:215px!important;
}
body.zen-showthread-page #posts .post:not(.classic) .post_author{
 background:#211a20!important;
}
body.zen-showthread-page #posts .post .post_body{color:#e5d9d7!important;line-height:1.8!important}

/* Avatar: >= 2x; crop legacy baked-in white frames via centered zoom. */
body.zen-showthread-page #posts .post .zen-post-avatar,
body.zen-showthread-page #posts .post .author_avatar{
 display:block!important;width:126px!important;height:126px!important;
 margin:0 auto 14px!important;padding:0!important;border:0!important;
 outline:0!important;background:#15131a!important;
 border-radius:10px!important;overflow:hidden!important;
 box-shadow:0 0 0 1px rgba(204,144,76,.55),0 9px 20px rgba(0,0,0,.5)!important;
}
body.zen-showthread-page #posts .post .author_avatar>a{
 display:block!important;width:100%!important;height:100%!important;
 border:0!important;background:transparent!important;overflow:hidden!important;
}
body.zen-showthread-page #posts .post .author_avatar img{
 display:block!important;box-sizing:border-box!important;
 width:126px!important;height:126px!important;max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;outline:0!important;
 border-radius:0!important;background:#15131a!important;
 object-fit:cover!important;object-position:center!important;
 transform:scale(1.34);transform-origin:center!important;
 box-shadow:none!important;
}
body.zen-showthread-page #posts .post .author_information{margin:0!important;line-height:1.45!important}
body.zen-showthread-page #posts .post .author_information .largetext{font-size:15px!important}
body.zen-showthread-page #posts .post .author_information a{color:#f0c889!important}
body.zen-showthread-page #posts .post .author_statistics{margin:13px auto 0!important;padding:0!important;color:#bda8a2!important;font-size:11px!important}
body.zen-showthread-page #posts .post .zen-post-author-stats{display:grid!important;gap:7px!important}
body.zen-showthread-page #posts .post .zen-post-author-stats>div{
 display:flex!important;justify-content:space-between!important;gap:10px!important;
 padding:7px 10px!important;background:rgba(0,0,0,.18)!important;
 border:1px solid #4c3630!important;border-radius:5px!important;
 color:#cbb8a7!important;
}
body.zen-showthread-page #posts .post .zen-post-author-stats strong{color:#edc37f!important;font-size:12px!important}

/* Redesigned post actions, no MyBB white button / sprite backgrounds. */
body.zen-showthread-page #posts .post_controls{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:wrap!important;gap:8px!important;
 clear:both!important;margin:0!important;padding:11px 14px!important;
 background:linear-gradient(180deg,#21191b,#17151d)!important;
 border-top:1px solid #694738!important;
}
body.zen-showthread-page #posts .post_controls .postbit_buttons{
 display:flex!important;align-items:center!important;gap:7px!important;
 flex-wrap:wrap!important;float:none!important;
}
body.zen-showthread-page #posts .post_controls .postbit_buttons>a,
body.zen-showthread-page #posts .post_controls .postbit_buttons>a:link,
body.zen-showthread-page #posts .post_controls .postbit_buttons>a:visited{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:30px!important;height:auto!important;width:auto!important;
 margin:0!important;padding:6px 11px!important;box-sizing:border-box!important;
 background:#282027!important;background-image:none!important;
 color:#e9c48e!important;border:1px solid #765038!important;
 border-radius:6px!important;text-decoration:none!important;
 font:700 11px/1.35 Arial,Helvetica,sans-serif!important;
 text-indent:0!important;box-shadow:inset 0 1px 0 #ffffff0b!important;
}
body.zen-showthread-page #posts .post_controls .postbit_buttons>a:hover{
 background:linear-gradient(180deg,#694225,#35231d)!important;
 color:#fff0d4!important;border-color:#d0a06a!important;
}
body.zen-showthread-page #posts .post_controls .postbit_buttons>a>span{
 display:inline!important;height:auto!important;width:auto!important;
 margin:0!important;padding:0!important;
 background:none!important;background-image:none!important;
 text-indent:0!important;color:inherit!important;
 font:inherit!important;line-height:inherit!important;
}
/* Keep quick-edit dropdown a functional high-contrast menu. */
body.zen-showthread-page #posts .popup_menu{
 background:#18141b!important;border:1px solid #785036!important;
 box-shadow:0 12px 30px #0009!important;color:#f0d3a3!important;
}
body.zen-showthread-page #posts .popup_menu .popup_item{
 background:transparent!important;color:#f0d3a3!important;
 border:0!important;border-radius:0!important;
}
body.zen-showthread-page #posts .popup_menu .popup_item:hover{background:#34231f!important}

/* Rating moved below posts and displayed beside bottom "Yorum Yaz" button. */
body.zen-showthread-page #content .zen-thread-top-pagination{
 margin:0 0 10px!important;min-height:0!important;
}
body.zen-showthread-page #content .zen-thread-top-pagination:empty{display:none!important}
body.zen-showthread-page #content .zen-thread-bottom-tools{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:wrap!important;gap:12px!important;margin:14px 0 18px!important;
}
body.zen-showthread-page #content .zen-thread-bottom-actions{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 gap:13px!important;flex-wrap:wrap!important;margin-left:auto!important;
}
body.zen-showthread-page #content .zen-thread-bottom-actions .inline_rating{
 display:inline-flex!important;align-items:center!important;gap:6px!important;
 margin:0!important;float:none!important;color:#d7b993!important;
}
body.zen-showthread-page #content .zen-thread-bottom-actions .inline_rating label{color:#d7b993!important}
body.zen-showthread-page #content .zen-thread-bottom-actions .new_reply_button{margin:0!important}
body.zen-showthread-page #content .zen-thread-bottom-pages{min-width:0!important}

/* No more default blue and chalk-white controls inside quick reply. */
body.zen-showthread-page #content #quick_reply_form,
body.zen-showthread-page #content #quick_reply_form table,
body.zen-showthread-page #content #quick_reply_form .trow1,
body.zen-showthread-page #content #quick_reply_form .trow2{
 background:#15131b!important;color:#d9c9ba!important;
}
body.zen-showthread-page #content #quick_reply_form .thead{
 background:linear-gradient(180deg,#352116,#1b151a)!important;
 color:#f0cd95!important;
}
body.zen-showthread-page #content .pagination a{color:#e9ba7b!important}
body.zen-showthread-page #content .pagination .pagination_current{background:#8c5a31!important;color:#fff3d8!important}

@media(max-width:780px){
 body.zen-showthread-page #posts .post.classic .post_author{
  width:auto!important;min-width:0!important;float:none!important;
  border-right:0!important;border-bottom:1px solid #60433b!important;
 }
 body.zen-showthread-page #posts .post.classic .post_content{
  margin-left:0!important;min-height:140px!important;padding:14px!important;
 }
 body.zen-showthread-page #posts .post .zen-post-avatar,
 body.zen-showthread-page #posts .post .author_avatar{width:112px!important;height:112px!important}
 body.zen-showthread-page #posts .post .author_avatar img{width:112px!important;height:112px!important}
 body.zen-showthread-page #content .zen-thread-bottom-tools{align-items:flex-start!important}
 body.zen-showthread-page #content .zen-thread-bottom-actions{width:100%!important;justify-content:flex-end!important}
}
@media(max-width:480px){
 body.zen-showthread-page #posts .post_controls{flex-direction:column!important;align-items:stretch!important}
 body.zen-showthread-page #posts .post_controls .postbit_buttons{justify-content:center!important}
 body.zen-showthread-page #posts .post_controls .postbit_buttons>a{font-size:10px!important;padding:6px 8px!important}
 body.zen-showthread-page #content .zen-thread-bottom-actions{justify-content:space-between!important}
 body.zen-showthread-page #content .zen-thread-bottom-actions .inline_rating{font-size:11px!important}
}
