/*
Theme Name: Dragonova Blackgold
Theme URI: https://example.com/
Author: ChatGPT
Description: Black & gold bilingual (EN/CN) publisher theme for Dragonova Publishing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dragonova-blackgold
Tags: custom-background, custom-logo, one-column, two-columns, editor-style
*/

:root{
  --bg:#f5f5f7;
  --bg2:#ffffff;
  --card:#ffffff;
  --text:#111111;
  --muted:#666666;
  --gold:#bfa24a;
  --gold2:#d6bf72;
  --line:rgba(0,0,0,0);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1000px 600px at 15% 10%, rgba(0,0,0,.04), transparent 55%),
              radial-gradient(900px 560px at 85% 20%, rgba(240,211,122,.08), transparent 55%),
              linear-gradient(180deg, var(--bg), #eaeaf0 85%);
  color:var(--text);
}

a{color:var(--gold2); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto}

.dv-wrap{max-width:var(--max); margin:0 auto; padding:0 18px}
.dv-topbar{
  
  background: rgba(10,10,14,.55);
  backdrop-filter: blur(10px);
  position: sticky;
  top:0;
  z-index: 50;
}
.dv-topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.dv-brand{
  display:flex; align-items:center; gap:14px; min-width: 240px;
}
.dv-logo img{width:42px; height:42px; border-radius:12px; object-fit:cover; border:1px solid var(--line)}
.dv-logo-placeholder{
  width:42px; height:42px; border-radius:12px;
  border:1px dashed var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:12px;
}
.dv-title{
  line-height:1.05;
}
.dv-title .en{font-weight:800; letter-spacing:.4px; font-size:18px}
.dv-title .cn{font-weight:600; color:var(--muted); font-size:13px; margin-top:4px}
.dv-nav a{
  color:var(--text);
  opacity:.9;
  padding:10px 10px;
  border-radius:12px;
}
.dv-nav a:hover{background: rgba(199,164,74,.12); text-decoration:none}
.dv-hero{
  padding:44px 0 20px;
  position:relative;
}
.dv-hero::before{
  content:"";
  position:absolute; inset:-40px 0 auto 0;
  height:260px;
  background-image: url("assets/bg-dragon-bw.svg");
  background-repeat: repeat;
  background-size: 520px auto;
  opacity: .16;
  pointer-events:none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0));
}
.dv-hero-card{
  background: linear-gradient(180deg, rgba(18,18,26,.92), rgba(12,12,18,.92));
  border:1px solid rgba(0,0,0,.08);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding:22px 20px;
}
.dv-hero h1{margin:0; font-size:34px; letter-spacing:.2px}
.dv-hero p{margin:10px 0 0; color:var(--muted); max-width: 70ch}

.dv-section{
  margin:26px 0;
  
  padding-top:22px;
}
.dv-section h2{
  margin:0 0 12px;
  font-size:18px;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: var(--gold2);
}
.dv-section h2 span{
  text-transform:none;
  color: var(--muted);
  font-weight:600;
  letter-spacing:0;
  margin-left:10px;
  font-size:14px;
}

.dv-grid{
  display:grid;
  gap:14px;
}
@media (min-width: 860px){
  .dv-grid.cols-3{grid-template-columns: repeat(3, 1fr)}
  .dv-grid.cols-4{grid-template-columns: repeat(4, 1fr)}
  .dv-grid.cols-2{grid-template-columns: repeat(2, 1fr)}
}
.dv-card{
  background: rgba(18,18,26,.92);
  border:1px solid rgba(199,164,74,.22);
  border-radius: var(--radius);
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  overflow:hidden;
}
.dv-card-pad{padding:14px}
.dv-muted{color:var(--muted)}
.dv-pill{
  display:inline-block;
  border:1px solid rgba(199,164,74,.36);
  padding:4px 10px;
  border-radius: 999px;
  color: var(--gold2);
  font-size: 12px;
  letter-spacing:.3px;
}
.dv-news-item{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 14px;
}
.dv-news-item:hover{background: rgba(199,164,74,.08)}
.dv-news-title{font-weight:700; color:var(--text)}
.dv-news-meta{color:var(--muted); font-size:12px; margin-top:3px}
.dv-news-right{margin-left:auto; color:var(--gold2); font-size:12px}

.dv-book-cover{
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(199,164,74,.14), rgba(240,211,122,.06));
  border-bottom:1px solid rgba(199,164,74,.22);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.dv-book-cover img{width:100%; height:100%; object-fit:cover; display:block}
.dv-book-title{font-weight:800; margin:0 0 8px}
.dv-book-desc{color:var(--muted); font-size:13px; line-height:1.45}

.dv-reader{
  width:100%;
  height: 78vh;
  border:1px solid rgba(199,164,74,.22);
  border-radius: var(--radius);
  background: #0a0a0f;
}

.dv-footer{
  margin-top:34px;
  
  padding:26px 0 36px;
  color:var(--muted);
  font-size:13px;
}
.dv-foot-grid{display:grid; gap:18px}
@media (min-width: 860px){ .dv-foot-grid{grid-template-columns: 1.2fr .8fr} }
.dv-foot-title{color:var(--text); font-weight:800; margin:0 0 6px}
.dv-small{font-size:12px}
.dv-btn{
  display:inline-block;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(199,164,74,.32);
  background: rgba(199,164,74,.10);
  color: var(--text);
}
.dv-btn:hover{background: rgba(199,164,74,.16); text-decoration:none}
.dv-form-note{color:var(--muted); font-size:12px; margin-top:8px}
