/*
Theme Name: Nugget Schematic
Theme URI: https://nuggets-schematic.com
Author: Nugget Schematic
Author URI: https://nuggets-schematic.com
Description: Marketplace theme for Minecraft Litematica schematics. Light, clean, gold and black.
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nuggetschematic
*/

:root{
  --gold:#E3A73B;
  --gold-light:#F2C066;
  --black:#111111;
  --text:#1a1a1a;
  --muted:#6b6b6b;
  --bg:#ffffff;
  --soft:#FAFAF7;
  --border:#ECE9E2;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
h1,h2,h3{margin:0 0 .5em;color:var(--black);line-height:1.25}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
ul{list-style:none;margin:0;padding:0}

.wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* Header */
.site-header{border-bottom:1px solid var(--border);background:#fff}
.header-inner{
  max-width:1180px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
}
.site-header img,
.site-header .custom-logo,
.site-header .custom-logo-link img{
  height:46px !important;
  width:auto !important;
  max-width:none;
  max-height:46px;
}
@media(max-width:560px){
  .site-header img,
  .site-header .custom-logo,
  .site-header .custom-logo-link img{height:38px !important;max-height:38px}
}
.site-title{font-size:20px;font-weight:700}
.main-nav ul{display:flex;gap:26px;flex-wrap:wrap}
.main-nav a{font-size:15px;font-weight:500}
.main-nav a:hover{color:var(--gold)}

/* Hero */
.hero{background:var(--soft);padding:32px 0 30px;text-align:center}
.hero h1{font-size:28px;margin-bottom:4px}
.hero p{color:var(--muted);font-size:15px;margin:0 0 18px}
@media(max-width:560px){
  .hero{padding:24px 0 22px}
  .hero h1{font-size:22px}
}
.searchform{max-width:560px;margin:0 auto;display:flex;gap:10px}
.searchform input[type=search]{
  flex:1;padding:14px 18px;border:1px solid var(--border);
  border-radius:8px;font-size:15px;min-width:0;
}
.searchform button{
  padding:14px 26px;border:0;border-radius:8px;
  background:var(--black);color:var(--gold-light);
  font-weight:600;font-size:15px;cursor:pointer;
}

/* Sections */
.section{padding:46px 0}
.section + .section{border-top:1px solid var(--border)}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-head h2{font-size:24px;margin:0}
.see-all{font-size:14px;font-weight:600;color:var(--gold);white-space:nowrap}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
@media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}

.card{
  border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;
  transition:box-shadow .15s ease,transform .15s ease;
}
.card:hover{box-shadow:0 8px 24px rgba(0,0,0,.08);transform:translateY(-2px)}
.card .thumb{display:block;height:170px;background:var(--soft);overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .body{padding:16px 18px}
.card h3{font-size:17px;margin:0 0 6px}
.card .meta{font-size:13px;color:var(--muted)}

.empty{color:var(--muted);font-style:italic;grid-column:1/-1}

/* Page title */
.page-head{padding:40px 0 0}
.page-head h1{font-size:30px}

/* Single */
.single-wrap{padding:40px 0}
.single-wrap h1{font-size:32px}
.single-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin-bottom:22px}
.pill{background:var(--soft);border:1px solid var(--border);border-radius:999px;padding:2px 12px;font-weight:500}
.featured{width:100%;border-radius:14px;margin-bottom:24px}
.actions{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;
  background:var(--soft);border:1px solid var(--border);border-radius:14px;
  padding:18px 22px;margin-bottom:28px;
}
.dl-btn{
  background:#DADADA;color:#777;border:0;border-radius:8px;
  padding:14px 28px;font-weight:600;font-size:15px;cursor:not-allowed;
}
.content{max-width:760px;font-size:16px}

/* Comments */
.comments{padding:30px 0 50px;border-top:1px solid var(--border)}
.comments h2{font-size:20px}
.comments input[type=text],.comments input[type=email],.comments textarea{
  width:100%;max-width:520px;padding:12px 14px;border:1px solid var(--border);
  border-radius:8px;font-family:inherit;font-size:14px;
}
.comments textarea{max-width:100%;min-height:110px}
.comments input[type=submit]{
  background:var(--black);color:var(--gold-light);border:0;border-radius:8px;
  padding:12px 24px;font-weight:600;cursor:pointer;
}
.commentlist li{border-bottom:1px solid var(--border);padding:16px 0}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);padding:26px 0;
  text-align:center;color:var(--muted);font-size:14px;
}

.screen-reader-text{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);
}
