/*
Theme Name: Yami-Subs Hoshizora Style
Theme URI: https://yami-subs.example.com
Author: Yami-Subs
Author URI: https://yami-subs.example.com
Description: ثيم ووردبريس مخصص لمدونات الأنمي، محول من قالب بلوغر Yami-Subs Hoshizora Style. يحتوي على كروت تدوينات، صناديق تحميل، وقوائم تصنيفات جانبية بتصميم داكن.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: yami-subs
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', 'Cairo', -apple-system, sans-serif; background-color: #0c0d0e; color: #c9d1d9; line-height: 1.6; }
a { color: #58a6ff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #79c0ff; text-decoration: underline; }
img { max-width: 100%; }

/* Header wrapper to center inner content */
.header-wrapper { background: #000000; border-bottom: 1px solid #1f2228; width: 100%; }
.top-header { max-width: 1200px; margin: 0 auto; min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; flex-wrap: wrap; gap: 12px; }

.header-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand-logo { color: #ffffff; font-weight: 700; font-size: 22px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-logo:hover { text-decoration: none; color: #fff; }
.brand-icon { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 18px; list-style: none; }
.nav-links li { display: inline-block; }
.nav-links a { color: #e6edf3; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #ffffff; text-decoration: none; }

/* Header Right (Twitter Icon & Search) */
.header-right { display: flex; align-items: center; gap: 15px; }
.social-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #16181d; border: 1px solid #2d3139; border-radius: 4px; color: #1d9bf0; transition: all 0.2s ease; }
.social-icon-btn:hover { background: #22252c; color: #1a8cd8; border-color: #1d9bf0; }
.social-icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

.search-box { display: flex; align-items: center; gap: 0; }
.search-input { background: #ffffff; border: none; padding: 8px 12px; font-size: 14px; border-radius: 4px 0 0 4px; outline: none; color: #000; width: 180px; }
.search-btn { background: #cc0000; color: #ffffff; border: none; padding: 8px 14px; font-size: 14px; font-weight: 600; border-radius: 0 4px 4px 0; cursor: pointer; }
.search-btn:hover { background: #e60000; }

/* Main Container Centered */
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; display: flex; gap: 30px; flex-wrap: wrap; }
.main-content { flex: 1; min-width: 300px; }
.sidebar { width: 320px; flex-shrink: 0; }

/* Post Card Layout */
.post-card { background: #16181d; border: 1px solid #2d3139; border-radius: 8px; margin-bottom: 30px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: border-color 0.2s; }
.post-card:hover { border-color: #444c56; }

.post-img-container { width: 100%; height: 380px; background: #000000; overflow: hidden; position: relative; }
.home-post-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; transition: transform 0.3s ease; }
.post-card:hover .home-post-img { transform: scale(1.03); }

.post-info { padding: 20px; text-align: center; }
.post-title { font-size: 20px; font-weight: 700; color: #f0f6fc; margin-bottom: 10px; line-height: 1.4; }
.post-title a { color: #f0f6fc; }
.post-title a:hover { color: #58a6ff; text-decoration: none; }

.anime-title-box { background: #16181d; border: 1px solid #2d3139; border-radius: 8px; padding: 16px 15px; margin-bottom: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); text-align: center; }
.anime-title-text { font-size: 19px; font-weight: 700; color: #38bdf8; font-family: 'Cairo', 'Inter', sans-serif; }

.post-meta { font-size: 13px; color: #c9d1d9; display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item svg { width: 14px; height: 14px; fill: #58a6ff; }
.post-meta a { color: #c9d1d9; }
.post-meta a:hover { color: #58a6ff; }

/* Sidebar & Widgets */
.widget-box { background: #16181d; border: 1px solid #2d3139; border-radius: 8px; padding: 18px; margin-bottom: 25px; }
.widget-title { font-size: 17px; font-weight: 700; color: #f0f6fc; border-bottom: 2px solid #cc0000; padding-bottom: 8px; margin-bottom: 15px; }
.rtl-title { direction: rtl; text-align: right; }

.widget-box ul { list-style: none; }
.label-size { display: inline-block; margin: 3px 2px; }
.label-size a,
.widget-box ul li a { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; background: #22252c; color: #ffffff; border: 1px solid #363b44; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: all 0.2s ease; }
.label-size a:hover,
.widget-box ul li a:hover { background: #58a6ff; color: #000000; border-color: #58a6ff; text-decoration: none; }

.label-count,
.widget-box .count { background: #111317; color: #ffffff; border: 1px solid #2d3139; border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.label-size a:hover .label-count { background: #000000; color: #ffffff; border-color: #000; }

/* محتوى التدوينة الفردية */
.post-body-content { padding: 10px 15px 15px 15px !important; }
.post-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  border: 1px solid #2d3139;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* تنسيق صناديق التحميل والترجمة */
.post-box-container { max-width: 600px; margin: 0 auto; font-family: 'Cairo', 'Inter', sans-serif; direction: rtl; text-align: center; }
.sub-box { background: #16181d; border: 1px solid #2d3139; border-radius: 8px; padding: 16px 15px; margin-bottom: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.sub-row { font-size: 17px; margin: 4px 0; color: #c9d1d9; font-weight: 700; }
.sub-row span:first-child { color: #ff5555; font-weight: 700; }
.sub-val { color: #f0f6fc; font-weight: 700; }
.box-title { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }

.box-subtitle { background: #111317; color: #c9d1d9; padding: 7px 16px; border-radius: 6px; font-size: 15px; font-weight: 600; display: inline-block; margin-bottom: 12px; border: 1px solid #2d3139; }

.note-text { color: #ff5555; font-size: 12px; margin-bottom: 6px; }

.buttons-group { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px; border-radius: 25px; font-size: 16px; font-weight: 700; color: #ffffff; text-decoration: none; transition: opacity 0.2s; min-width: 120px; }
.dl-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.pink-btn { background: #d946ef; }
.purple-btn { background: #8b5cf6; }
.cyan-btn { background: #06b6d4; }

/* Pagination */
.blog-pager { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; display: flex; justify-content: center; gap: 10px; }
.blog-pager a, .blog-pager span { background: #16181d; border: 1px solid #2d3139; color: #c9d1d9; padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.blog-pager a:hover { background: #22252c; color: #fff; text-decoration: none; }
.blog-pager .current { background: #cc0000; color: #fff; border-color: #cc0000; }

/* Footer */
.footer-wrapper { background: #000000; border-top: 1px solid #1f2228; margin-top: 40px; width: 100%; }
.footer { max-width: 1200px; margin: 0 auto; padding: 25px 20px; text-align: center; color: #8b949e; font-size: 14px; }

/* Comments */
.comments-area { max-width: 800px; margin: 0 auto 30px; }
.comments-area .comment-body { background: #16181d; border: 1px solid #2d3139; border-radius: 8px; padding: 15px; margin-bottom: 12px; }
.comments-area .comment-form input,
.comments-area .comment-form textarea { width: 100%; background: #16181d; border: 1px solid #2d3139; color: #c9d1d9; padding: 10px; border-radius: 6px; margin-bottom: 10px; }
.comments-area .comment-form input[type="submit"] { background: #cc0000; color: #fff; border: none; cursor: pointer; width: auto; padding: 10px 25px; }

/* Responsive */
@media (max-width: 850px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; }
  .top-header { padding: 12px 15px; }
  .search-input { width: 120px; }
  .post-img-container { height: 250px; }
}
