/*
Theme Name: Andy Dark Case
Theme URI: https://iamandy.uk
Author: Andy + ChatGPT
Author URI: https://iamandy.uk
Description: Dark, lime-accent WordPress theme for iamandy.uk blog. Features grid home, featured (sticky) posts, single post "Process & Notes" panel with ACF fields, Remix Icon streaming buttons, and custom button styles.
Version: 4.3.0
Tags: blog, dark, grid, responsive, custom-logo
Text Domain: andy-dark-case
*/

:root{
  --color-muted: #6b6c5a;
  --color-green-dark: #374a1d;
  --color-accent-lime: #c3f572;
  --color-accent-green: #87d700;
  --color-accent-dark: #24241c;
  --color-accent-brown: #1c1b17;
  --color-accent-black: #000000;
  --color-bg: #171712;
  --maintext-color: #f5f5f5;
  --accent-pink: #ff4f9a;
  --accent-cyan: #4fe3ff;
  --container: 1120px;
  --radius: 14px;
  --shadow: 0 6px 30px rgba(0,0,0,.35);
}

/* Reset-ish */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--color-bg);
  color:var(--maintext-color);
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:var(--color-accent-lime); text-decoration:none}
a:hover{opacity:.9}

/* Layout */
.site-wrap{max-width:var(--container); margin:0 auto; padding:0 18px}
.site-header{border-bottom:1px solid #222; background:#1d1d16}
.site-header .inner{display:flex; align-items:center; gap:14px; padding:14px 0}
.site-title{font-weight:700; font-size:18px; letter-spacing:.3px; margin:0}

/* LOGO rules - tame any oversized uploads */
.site-logo img, .custom-logo{
  max-height:42px !important;
  width:auto !important;
  height:auto !important;
  display:block;
}

/* Nav placeholder (future) */
.primary-nav{margin-left:auto}

/* Sections */
.section{padding:34px 0}
.section-title{
  font-size:24px; margin:0 0 18px 0; font-weight:700; color:var(--color-accent-green);
  display:flex; align-items:center; gap:10px;
}
.section-title::after{content:''; flex:0 0 58px; height:4px; background:var(--color-accent-green); border-radius:2px; opacity:.6}

/* Cards grid */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
@media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid{grid-template-columns:1fr}}

.card{
  background:#1c1b17;
  border:1px solid #25241f;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}

.card-thumb{width:100%; aspect-ratio:16/10; object-fit:cover; background:#111}
.card-body{padding:14px 16px 16px 16px}
.card h3{margin:6px 0 8px 0; font-size:18px}
.card p{color:#cfcfcf; font-size:14px; margin:0 0 10px 0}

/* Buttons */
.button, .btn, .read-more{
  display:inline-block; font-weight:700;
  background:var(--color-accent-green); color:#111;
  padding:10px 18px; border-radius:14px; border:none;
  box-shadow:0 2px 0 #5c8e00 inset, 0 4px 20px rgba(0,0,0,.25);
  transition:.2s ease;
}
.button:hover, .btn:hover, .read-more:hover{
  transform:translateY(-1px);
  box-shadow:0 2px 0 #5c8e00 inset, 0 8px 24px rgba(0,0,0,.35);
}
.card .read-more{margin-top:auto}

/* Single post */
.single .post-header{margin:26px 0 10px}
.single h1.entry-title{font-size:36px; margin:0 0 8px}
.meta{color:var(--color-muted); font-size:14px}

/* Roles badges under title */
.roles{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 20px}
.role-badge{
  font-size:12px; font-weight:600; letter-spacing:.3px;
  padding:6px 10px; border-radius:999px;
  background:#222218; color:var(--color-accent-lime); border:1px solid #2a2a22;
}

/* Single layout: content & sidebar */
.single-wrap{display:grid; grid-template-columns:2fr 1fr; gap:28px}
@media(max-width:980px){.single-wrap{grid-template-columns:1fr}}

/* Process/Notes panel */
.process{
  background:#1b1a16; border:1px solid #26241e; border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow)
}
.process h3{margin:0 0 10px; color:var(--color-accent-green)}
.process dl{margin:0}
.process dt{font-weight:700; color:#ddd; margin-top:12px}
.process dd{margin:4px 0 0 0; color:#cfcfcf}

/* Listen box */
.listen{margin-top:18px; display:flex; gap:10px; flex-wrap:wrap}
.listen a{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border:1px solid #2a2a22; border-radius:12px;
  background:#111; color:#eaeaea;
}
.listen a:hover{background:#151515}
.listen i{font-size:18px}

/* Footer */
.site-footer{border-top:1px solid #222; margin-top:40px; padding:18px 0; color:#bbb; font-size:14px}

/* Gutenberg content tweaks */
.entry-content img{max-width:100%; height:auto; border-radius:12px}
.entry-content figure{margin:1.6em 0}
.entry-content h2, .entry-content h3{margin-top:1.8em}
