/*
 * Auto-generated sidebar preservation cho dark mode.
 * Áp NGUYÊN VẸN style.css/single-content.css rules có selector sidebar,
 * prefix [data-theme="dark"] + !important toàn bộ declarations.
 * + Catch-all revert cho descendants không có rule explicit.
 *
 * Load file này CUỐI CÙNG trong dark stack để override dark.css + dark-mode.css.
 */

/* ── Catch-all: sidebar + footer → revert về cascade light mode ── */
[data-theme="dark"] #sidebar,
[data-theme="dark"] #rsidebar,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .rsidebar,
[data-theme="dark"] #footer,
[data-theme="dark"] .footer,
[data-theme="dark"] .footer_all,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-links,
[data-theme="dark"] .mobile-footer-info,
[data-theme="dark"] .desktop-footer-info,
[data-theme="dark"] .disclaimer {
    color: revert !important;
    background-color: revert !important;
    background-image: revert !important;
    border-color: revert !important;
    transition: none !important;
}
[data-theme="dark"] #sidebar *,
[data-theme="dark"] #rsidebar *,
[data-theme="dark"] .sidebar *,
[data-theme="dark"] .rsidebar *,
[data-theme="dark"] #footer *,
[data-theme="dark"] .footer *,
[data-theme="dark"] .footer_all *,
[data-theme="dark"] .footer-bottom *,
[data-theme="dark"] .footer-links *,
[data-theme="dark"] .mobile-footer-info *,
[data-theme="dark"] .desktop-footer-info *,
[data-theme="dark"] .disclaimer * {
    color: revert !important;
    background-color: revert !important;
    background-image: revert !important;
    border-color: revert !important;
    transition: none !important;
}

[data-theme="dark"] #rsidebar h2 {
  background: url(./img/bg_sidebar_title.png) no-repeat center center !important;
  background-size: cover !important;
  font-family: "Oswald", sans-serif !important;
  text-transform: uppercase !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #f0f9ef !important;
  margin: 0 !important;
  padding: 14px 18px 10px 18px !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
  letter-spacing: 1px !important;
  text-shadow: 0 2px 5px rgba(0,0,0,0.45) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] #rsidebar .widget ul {
  background: url(https://www.9minecraft.net/images/bg_sidebar.png) repeat !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px 15px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
}

[data-theme="dark"] #rsidebar .widget {
  margin-bottom: 20px !important;
}

[data-theme="dark"] #rsidebar li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

[data-theme="dark"] #rsidebar li li {
  font-family: "Roboto Condensed", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  padding-left: 22px !important;
  position: relative !important;
  line-height: 1.6em !important;
  color: #2c3e50 !important;
}

[data-theme="dark"] #rsidebar li li::before {
  content: "" !important;
  position: absolute !important;
  top: 6px !important;
  left: 0 !important;
  width: 14px !important;
  height: 14px !important;
  background: url("./img/r-sidebar-diamond.png") no-repeat center/contain !important;
}

[data-theme="dark"] #rsidebar li li a {
  color: #1e272e !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  font-weight: 400 !important;
}

[data-theme="dark"] #rsidebar li li a:hover {
  color: #27ae60 !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
}

[data-theme="dark"] #rsidebar li li.mine-red a {
  color: #861023 !important;
  font-weight: 600 !important;
}

[data-theme="dark"] #rsidebar li li.mine-red a:hover {
  color: #27ae60 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

@media (max-width: 767px) {
[data-theme="dark"] #rsidebar {
    display: none !important;
  }

}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .widgettitle {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  padding: 14px 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
  border-radius: 8px 8px 0 0 !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .ninemine-any-posts {
  background: url("./img/bg_anypost.png") repeat !important;
  color: #f0f4ff !important;
  padding: 12px !important;
  display: block !important;
  margin: 0 !important;
  list-style: none !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .ninemine-any-post {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding-bottom: 12px !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .ninemine-any-post:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .ninemine-any-post__thumb {
  margin-left: 8px !important;
  margin-right: 10px !important;
  min-width: 120px !important;
  flex-basis: 120px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .ninemine-any-post__title a {
  flex: 1 !important;
  display: block !important;
  color: #e6eeff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts .ninemine-any-post__title a:hover {
  color: #fffdda !important;
  text-decoration: underline !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts ul,
[data-theme="dark"] #rsidebar .widget_ninemine_any_posts li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

[data-theme="dark"] #rsidebar .widget_ninemine_any_posts li::before {
  content: none !important;
}

[data-theme="dark"] .footer_all {
background-image : url(https://www.9minecraft.net/images/menu_bg.gif) !important;
background-color : #f3f4f8 !important;
}

[data-theme="dark"] .footer_all .footer-bottom {
padding : 0 !important;
color : #fff !important;
}

[data-theme="dark"] .footer_all .footer-bottom .widget {
text-align : center !important;
margin: 0 !important;
}

[data-theme="dark"] .footer_all .footer-bottom a {
font-size : inherit !important;
color : inherit !important;
font-weight : bold !important;
}

[data-theme="dark"] .footer-bottom ul {
list-style : none !important;
}

[data-theme="dark"] .footer-bottom .widget_nav_menu li {
display : inline-block !important;
font-size : 15px !important;
margin-right : 20px !important;
line-height : 1.8 !important;
}

[data-theme="dark"] .mobile-footer-info {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #444 !important;
    padding: 20px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
}

[data-theme="dark"] .mobile-footer-info .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px 16px !important;
    margin-bottom: 15px !important;
}

[data-theme="dark"] .mobile-footer-info .footer-links a {
    color: #104e8b !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s ease !important;
}

[data-theme="dark"] .mobile-footer-info .footer-links a:hover {
    color: #861023 !important;
}

[data-theme="dark"] .mobile-footer-info .site-description {
    margin: 10px 0 !important;
    font-size: 13px !important;
    color: #555 !important;
}

[data-theme="dark"] .mobile-footer-info .disclaimer {
    margin: 15px 0 !important;
    font-size: 12px !important;
    color: #777 !important;
    background: #fff3f3 !important;
    border: 1px solid #f5c2c2 !important;
    padding: 10px !important;
    border-radius: 6px !important;
}

[data-theme="dark"] .mobile-footer-info .copyright {
    margin-top: 15px !important;
    font-size: 12px !important;
    text-align: center !important;
    color: #666 !important;
}

[data-theme="dark"] .mobile-footer-info .copyright a {
    color: #104e8b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

[data-theme="dark"] .mobile-footer-info .copyright a:hover {
    color: #861023 !important;
}

[data-theme="dark"] .desktop-footer-info {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif !important;
    text-align: center !important;
    color: #eee !important;
    padding: 30px 20px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

[data-theme="dark"] .desktop-footer-info .footer-links {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
}

[data-theme="dark"] .desktop-footer-info .footer-links a {
    color: #f1f1f1 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, border-color 0.2s ease !important;
    border-bottom: 1px solid transparent !important;
}

[data-theme="dark"] .desktop-footer-info .footer-links a:hover {
    color: #ffcc00 !important;
    border-color: #ffcc00 !important;
}

[data-theme="dark"] .desktop-footer-info .disclaimer {
    font-size: 13px !important;
    color: #bbb !important;
    margin: 6px 0 !important;
}

[data-theme="dark"] .desktop-footer-info .disclaimer strong {
    color: #fff !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .desktop-footer-info .copyright {
    margin-top: 15px !important;
    font-size: 13px !important;
    color: #aaa !important;
}

[data-theme="dark"] .desktop-footer-info .copyright a {
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

[data-theme="dark"] .desktop-footer-info .copyright a:hover {
    color: #ffcc00 !important;
}

