/*
Theme Name: Yooox2026
Description: Yooox theme with new topbar.
Version: 1.0.0
Author: Yooox
*/

:root {
  --max: 1200px;
  --text: #111827;
  --bg: #f7f7f8;
  --bg2: #f2f4f7;
  --border: #e5e7eb;
  --brand: #111827;
  --shadow2: 0 8px 30px rgba(0,0,0,0.08);
  --font-sans: "Helvetica Neue", "Helvetica", "Arial", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

/* Theme mode overrides */
body.theme-dark {
  --text: #f8fafc;
  --bg: #0f172a;
  --bg2: #111827;
  --border: rgba(255,255,255,0.12);
  --brand: #f8fafc;
  --shadow2: 0 8px 30px rgba(0,0,0,0.35);
}
body.theme-light {
  --text: #111827;
  --bg: #f7f7f8;
  --bg2: #f2f4f7;
  --border: #e5e7eb;
  --brand: #111827;
  --shadow2: 0 8px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
}

body.home {
  background: #0f172a;
}

/* Force theme font on the AI image generator page */
body.page-ai-image-generator,
body.page-ai-image-generator .site-content,
body.page-ai-image-generator .site-content * {
  font-family: var(--font-sans) !important;
}

a { color: inherit; text-decoration: none; }

a:hover { text-decoration: underline; }

.site-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 18px;
  background: #fff;
  margin-top: 40px;
}

body.theme-dark .site-footer {
  background: #0b1220;
}

body.theme-dark .site-footer .footer-inner {
  color: #94a3b8;
}

.site-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 13px;
  color: #6b7280;
}

.entry-title {
  margin: 0 0 16px;
  font-size: 28px;
}

.entry-content {
  line-height: 1.7;
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.post-list h2 { margin: 0 0 8px; font-size: 20px; }
.post-list p { margin: 0; color: #6b7280; }

/* Plugin shop page */
body.page-template-page-plugin-shop-php {
  background: #0f172a;
  color: #f8fafc;
}

body.page-template-page-plugin-shop-php .site-content {
  max-width: 1400px;
}

.plugin-shop {
  padding: 40px 5%;
}

.plugin-shop__inner {
  width: 100%;
}

.plugin-shop__title {
  margin: 0 0 20px;
  font-size: 28px;
}

.plugin-layout {
  display: flex;
  gap: 30px;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: none;
}

.sidebar-menu {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.85);
}

.sidebar-menu li {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 3px;
  cursor: pointer;
  color: #94a3b8;
}

.sidebar-menu a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.sidebar-count {
  float: right;
  color: #64748b;
  font-size: 0.8rem;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

@media (min-width: 768px) {
  .sidebar { display: block; }
}

.plugin-main {
  flex: 1;
}

.search-box {
  width: 100%;
  background: #1e293b;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1rem;
}

.plugin-item {
  display: flex;
  align-items: center;
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.plugin-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
}

.plugin-details {
  flex: 1;
}

.plugin-details h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.plugin-details p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.btn-download {
  padding: 8px 20px;
  background: #334155;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: #3b82f6;
}

.plugin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.plugin-link {
  color: inherit;
  text-decoration: none;
}

.plugin-link:hover {
  text-decoration: underline;
}

.plugin-empty {
  padding: 30px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  text-align: center;
}

.plugin-detail__header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.plugin-icon--large {
  width: 90px;
  height: 90px;
  font-size: 36px;
}

.plugin-detail__version {
  color: #94a3b8;
  margin: 8px 0 12px;
}

.plugin-detail__content {
  line-height: 1.8;
}
