/*
Theme Name: mediahive blog
Theme URI: https://mediahive.ro
Author: mediahive
Author URI: https://mediahive.ro
Description: Minimal dark blog theme for mediahive. No menu, no images, gold gradient background. Built for SEO: fast, no page builder, structured data included.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mediahive-blog
*/

:root {
  --bg: #1e1f21;
  --gold: #e8be60;
  --cream: #f5e8b6;
  --line: rgba(245, 232, 182, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 460px at 15% 0%, rgba(232, 190, 96, 0.30), transparent 70%),
    radial-gradient(760px 460px at 88% 0%, rgba(168, 138, 44, 0.26), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 660px;
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

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

/* Header: logo only */
.site-header .wrap { height: 84px; display: flex; align-items: center; }
.logo {
  color: var(--gold);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* Button */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 9px 30px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

h1, h2, h3, h4 { color: var(--gold); font-weight: 800; line-height: 1.2; margin: 0; }

.page-title {
  font-size: clamp(44px, 7.5vw, 88px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 72px 0 40px;
}

/* Category filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; padding: 0; list-style: none; }
.filters a {
  display: inline-block;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  padding: 6px 20px;
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters a:hover { border-color: var(--gold); color: var(--gold); }
.filters a.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 96px;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 210px;
  padding: 2rem 2.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(232, 190, 96, 0.65); background: rgba(255, 255, 255, 0.06); }
.card-title { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; }
.card-meta { font-size: 14px; opacity: 0.65; }

.empty { padding: 8px 0 160px; font-size: 20px; opacity: 0.7; }

/* Pagination */
.pagination { padding-bottom: 96px; margin-top: -48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pagination .page-numbers {
  min-width: 42px;
  padding: 6px 14px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* Article */
.post { max-width: 700px; margin: 0 auto; padding: 64px 0 24px; }
.post h1 { font-size: clamp(34px, 5.6vw, 58px); letter-spacing: -0.03em; line-height: 1.08; }
.post-meta { margin: 22px 0 48px; font-size: 15px; opacity: 0.65; }
.post-body { font-size: 18px; line-height: 1.75; }
.post-body > * { margin-top: 0; margin-bottom: 1.25em; }
.post-body > p:first-child { font-size: 21px; line-height: 1.6; }
.post-body h2 { font-size: 28px; letter-spacing: -0.01em; margin: 2.2em 0 0.6em; }
.post-body h3 { font-size: 21px; color: var(--cream); font-weight: 700; margin: 1.8em 0 0.4em; }
.post-body a { text-underline-offset: 3px; }
.post-body a:hover { color: var(--cream); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li::marker { color: var(--gold); }
.post-body img { border-radius: 16px; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { font-size: 14px; opacity: 0.65; margin-top: 8px; }
.post-body blockquote { margin-left: 0; padding: 0.2em 0 0.2em 1.4em; border-left: 3px solid var(--gold); font-size: 20px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body th { color: var(--gold); }
.post-body code { background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.post-body pre { background: rgba(255, 255, 255, 0.05); padding: 18px 20px; border-radius: 16px; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.cta {
  margin: 64px 0 0;
  padding: 2rem 2.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta p { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }

.related { padding-top: 80px; }
.related h2 { font-size: 28px; margin-bottom: 24px; }
.related .grid { padding-bottom: 32px; }

.crumbs { font-size: 14px; opacity: 0.6; padding: 24px 0 80px; }
.crumbs a { color: var(--cream); }
.crumbs a:hover { color: var(--gold); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.footer-tag { margin: 0; font-weight: 800; color: var(--cream); font-size: 17px; letter-spacing: -0.01em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--cream); text-decoration: none; opacity: 0.8; }
.footer-links a:hover { color: var(--gold); opacity: 1; }
.copyright { width: 100%; margin: 8px 0 0; font-size: 13px; font-weight: 300; opacity: 0.55; }

@media (max-width: 640px) {
  .page-title { margin-top: 48px; }
  .post { padding-top: 40px; }
  .cta { padding: 1.6rem; }
  .card { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
