/* PSR Custom Theme — Main Styles */

:root {
  --bg:        #080f08;
  --bg2:       #0d180d;
  --bg3:       #111f11;
  --card:      #0f1e0f;
  --border:    #1c301c;
  --accent:    #4ade80;
  --accent2:   #22c55e;
  --text:      #e2f0e2;
  --text2:     #8aaa8a;
  --text3:     #4d6b4d;
  --radius:    8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #86efac; }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.site-wrap { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img { height: 36px; width: auto; }

.site-logo .logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  line-height: 1.2;
}

.site-logo .logo-sub {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.main-nav a {
  color: var(--text2);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.main-nav a:hover, .main-nav a.current {
  color: var(--text);
  background: var(--bg3);
}

.header-cta {
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #071207;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: #86efac; color: #071207; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--accent2);
  transition: background .15s;
}

.btn-outline:hover { background: rgba(74,222,128,.08); color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: .2s;
}

/* ── Hero / Featured ── */
.hero-section {
  padding: 40px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.hero-featured .post-thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: .85;
}

.hero-featured .post-info {
  padding: 20px 22px;
}

.hero-featured .post-cat {
  display: inline-block;
  background: rgba(74,222,128,.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.hero-featured h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-featured h2 a { color: var(--text); }
.hero-featured h2 a:hover { color: var(--accent); }

.hero-featured .post-meta {
  font-size: 12px;
  color: var(--text3);
}

/* Top brand CTA in hero sidebar */
.hero-brand-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-brand-card .brand-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-brand-card .brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.hero-brand-card .brand-bonus {
  font-size: 13px;
  color: var(--text2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.hero-brand-card .brand-bonus strong {
  color: var(--text);
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

.hero-brand-card .brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-brand-card .brand-features li {
  font-size: 12px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-brand-card .brand-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-brand-card .btn-primary { width: 100%; justify-content: center; }

/* ── Brand Strip ── */
.brands-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 40px;
  overflow-x: auto;
}

.brands-strip-inner {
  display: flex;
  gap: 12px;
  min-width: max-content;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  white-space: nowrap;
  transition: border-color .15s;
}

.brand-pill:hover { border-color: var(--accent2); }

.brand-pill .pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.brand-pill .pill-bonus {
  font-size: 11px;
  color: var(--accent);
}

.brand-pill .pill-cta {
  font-size: 11px;
  font-weight: 600;
  color: #071207;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 4px;
}

.brand-pill .pill-cta:hover { background: #86efac; color: #071207; }

/* ── Content + Sidebar layout ── */
.content-area {
  padding-bottom: 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── Post Cards (news grid) ── */
.section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}

.post-card:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.post-card .card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  opacity: .85;
}

.post-card .card-thumb-placeholder {
  width: 100%;
  height: 150px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card .card-body { padding: 14px 16px; }

.post-card .card-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.post-card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }

.post-card .card-meta {
  font-size: 11px;
  color: var(--text3);
}

/* Inline brand CTA between posts */
.inline-brand-cta {
  background: linear-gradient(135deg, var(--bg3) 0%, #0a1e14 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
}

.inline-brand-cta .cta-text { flex: 1; }

.inline-brand-cta .cta-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.inline-brand-cta .cta-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.inline-brand-cta .cta-bonus {
  font-size: 12px;
  color: var(--accent);
}

/* ── Sidebar ── */
.sidebar { position: sticky; top: 76px; }

.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.brand-list { display: flex; flex-direction: column; }

.brand-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.brand-item:last-child { border-bottom: none; }
.brand-item:hover { background: var(--bg3); }

.brand-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  width: 18px;
  flex-shrink: 0;
}

.brand-info { flex: 1; min-width: 0; }

.brand-info .b-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-info .b-bonus {
  font-size: 11px;
  color: var(--text3);
}

.brand-item .btn-primary {
  font-size: 11px;
  padding: 5px 11px;
  flex-shrink: 0;
}

/* ── Single Post ── */
.single-header { padding: 32px 0 20px; }

.post-headline {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.post-byline {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-byline .sep { color: var(--border); }

.post-thumb-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.post-thumb-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.post-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text2);
}

.post-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 .75rem;
}

.post-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 .5rem;
}

.post-content p { margin-bottom: 1.1rem; }

.post-content a { color: var(--accent); }
.post-content a:hover { color: #86efac; }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li { margin-bottom: .4rem; }

.post-content strong { color: var(--text); font-weight: 600; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 18px;
  margin: 1.5rem 0;
  background: var(--bg3);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text2);
  font-style: italic;
}

.post-content figure { margin: 1.5rem 0; }
.post-content figcaption { font-size: 12px; color: var(--text3); text-align: center; margin-top: 6px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-about .about-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text3);
  transition: color .15s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text3);
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
  transition: border-color .15s, color .15s;
}

.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
  background: var(--card);
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { border-color: var(--accent); color: var(--accent); background: rgba(74,222,128,.08); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .hero-brand-card { display: none; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 2px; z-index: 99; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .inline-brand-cta { flex-direction: column; align-items: flex-start; }
  .brands-strip-inner { gap: 8px; }
}
