/*
Theme Name: Doorway Top10 Magazine Black
Theme URI: https://github.com/doorway
Template: fresh-blog-lite
Description: Dark magazine child theme for ranked listicles. Black + gold, Bodoni Moda display type, compact 3-column grid, full-banner hero.
Author: Doorway
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doorway-top10-magazine-black
*/

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #FAFAFA;
  background-color: #0E0E0E;
}

h1, h2, h3 {
  font-family: "Bodoni Moda", "Didot", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a { color: #F4C430; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: #FFFFFF; }

/* ── Numbered Hero ───────────────────────────────────────────── */
.top10-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; }
.top10-hero .wp-block-cover__inner-container { padding: 3rem 2rem; max-width: 720px; }
.top10-hero .rank-badge {
  display: inline-block; background: #F4C430; color: #0E0E0E;
  font-family: "Bodoni Moda", serif; font-size: 3rem; font-weight: 700;
  width: 80px; height: 80px; line-height: 80px; text-align: center;
  border-radius: 50%; margin-bottom: 1rem;
}
.top10-hero h1, .top10-hero .wp-block-post-title { color: #fff !important; }
.top10-hero .wp-block-post-excerpt { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ── Ranked Card Grid (compact 3-col) ────────────────────────── */
.top10-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.top10-grid .wp-block-post {
  background: #1A1A1A; border-radius: 8px; overflow: hidden;
  border-left: 4px solid #F4C430; transition: box-shadow 0.2s;
}
.top10-grid .wp-block-post:hover { box-shadow: 0 4px 20px rgba(244,196,48,0.12); }
.top10-grid .wp-block-post-featured-image { aspect-ratio: 16/9; overflow: hidden; }
.top10-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.top10-grid .wp-block-post-title { font-size: 1.05rem; padding: 1rem 1.25rem 0; }
.top10-grid .wp-block-post-title a { color: #FAFAFA; text-decoration: none; }
.top10-grid .wp-block-post-title a:hover { color: #F4C430; }
.top10-grid .wp-block-post-excerpt { padding: 0.4rem 1.25rem; font-size: 0.85rem; color: #999; }
.top10-grid .wp-block-post-date { padding: 0 1.25rem 1rem; font-size: 0.78rem; color: #666; }

/* ── Pullquote ───────────────────────────────────────────────── */
.wp-block-pullquote { border-left: 4px solid #F4C430; border-top: none; border-bottom: none; border-right: none; padding-left: 1.5rem; }
.wp-block-pullquote blockquote p { font-family: "Bodoni Moda", serif; font-size: 1.4rem; font-style: italic; color: #ddd; }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #0E0E0E; border-bottom: 2px solid #F4C430; }
.site-header .wp-block-navigation a { color: #FAFAFA !important; text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.88rem; font-weight: 500; }
.site-header .wp-block-navigation a:hover { color: #F4C430 !important; }
.site-header .wp-block-site-title a { font-family: "Bodoni Moda", serif; font-size: 1.6rem; font-weight: 700; color: #FAFAFA !important; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #1A1A1A; padding: 3rem 0 2rem; margin-top: 4rem; font-size: 0.88rem; color: #888; }
.site-footer a { color: #F4C430; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .top10-grid .wp-block-post-template { grid-template-columns: 1fr; gap: 24px; }
  .top10-hero { min-height: 45vh; }
  .top10-hero .rank-badge { font-size: 2rem; width: 56px; height: 56px; line-height: 56px; }
}
