/*
Theme Name: Shadetree TV
Theme URI: https://shadetree.tv/
Author: Shadetree TV
Description: Custom local television theme with a retro console-TV HLS player, live programming, news and events.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: shadetree-tv
*/

:root{
  --green:#7cff00;
  --green2:#2fae00;
  --dark:#070807;
  --panel:#101311;
  --panel2:#171a17;
  --text:#f5f7f3;
  --muted:#a8b0a7;
  --red:#ff3030;
  --gold:#a9783b;
  --wood:#3b2414;
  --wood2:#6b4124;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:radial-gradient(circle at 50% 10%,#182018 0,#080908 42%,#030403 100%);
  color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(1240px,94%);margin:auto}
.site-header{
  position:sticky;top:0;z-index:50;background:rgba(3,5,3,.96);
  border-bottom:1px solid #263025;box-shadow:0 4px 24px #000;
}
.header-inner{min-height:82px;display:flex;align-items:center;gap:24px}
.site-brand{display:flex;align-items:center;gap:12px;min-width:260px}
.site-brand img{width:58px;height:58px;object-fit:contain;border-radius:50%}
.brand-name{font-weight:900;font-size:27px;letter-spacing:-1px}
.brand-name span{color:var(--green)}
.tagline{display:block;color:#b7beb5;font-size:10px;letter-spacing:1.5px;font-weight:700}
.main-nav{margin-left:auto;display:flex;gap:22px;align-items:center}
.main-nav a{font-size:13px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:#dfe5dd}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--green)}
.live-button{background:#170909;border:1px solid var(--red);color:#fff!important;border-radius:22px;padding:10px 18px;box-shadow:0 0 14px rgba(255,48,48,.28)}
.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);margin-right:7px;box-shadow:0 0 10px var(--red)}
.mobile-toggle{display:none;background:none;border:0;color:#fff;font-size:28px}

.hero{padding:34px 0 20px}
.hero-grid{display:grid;grid-template-columns:1fr 3fr 1fr;gap:18px;align-items:center}
.side-panel,.info-card{
  background:linear-gradient(180deg,#111511,#080a08);border:1px solid #2a3429;border-radius:12px;
  padding:18px;box-shadow:0 10px 28px #000;min-height:330px
}
.side-title{font-size:13px;color:var(--green);font-weight:900;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.program{padding:10px 0;border-bottom:1px solid #242a24}
.program:last-child{border:0}
.program strong{display:block;font-size:13px}
.program small{color:var(--muted);font-size:11px}
.console-wrap{position:relative}
.on-air{
  width:180px;margin:0 auto -4px;background:#121313;border:2px solid #343934;border-bottom:0;
  text-align:center;padding:8px;border-radius:8px 8px 0 0;color:#ff4a4a;font-weight:900;letter-spacing:2px;
  box-shadow:0 -2px 18px rgba(255,0,0,.15)
}
.tv-console{
  position:relative;background:linear-gradient(90deg,#2b180d,#5b351b 9%,#2d190d 14%,#4d2c17 50%,#2c180d 86%,#5b351b 93%,#27150c);
  border:4px solid #241308;border-radius:12px;padding:24px 22px 30px;
  box-shadow:inset 0 0 0 2px #7b4b29, inset 0 0 40px #140b05, 0 24px 50px #000;
}
.tv-console:after{content:"";position:absolute;left:5%;right:5%;bottom:7px;height:5px;background:#1a0d06;border-radius:50%}
.tv-face{display:grid;grid-template-columns:1fr 150px;gap:15px;align-items:stretch}
.tv-screen-frame{
  background:#080908;border:9px solid #161716;border-radius:9px;padding:9px;
  box-shadow:inset 0 0 0 2px #343733,0 0 0 2px #160d07, inset 0 0 28px #000;
}
.tv-screen{aspect-ratio:16/9;background:#000;border-radius:4px;overflow:hidden;position:relative}
#shadetree-player{width:100%;height:100%;display:block;background:#000}
.player-overlay{position:absolute;left:14px;bottom:14px;background:rgba(0,0,0,.72);padding:8px 12px;border-radius:6px;font-weight:800;font-size:13px}
.player-overlay .live-dot{width:8px;height:8px}
.tv-controls{
  background:linear-gradient(180deg,#171817,#0c0d0c);border:2px solid #292b29;border-radius:8px;padding:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;box-shadow:inset 0 0 20px #000
}
.tv-label{font-weight:900;font-size:11px;color:#eee;letter-spacing:1px}
.knob{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#999,#222 48%,#090909 55%,#555 57%,#111 70%);border:2px solid #050505;box-shadow:0 3px 5px #000}
.control-row{display:flex;gap:7px}
.small-knob{width:17px;height:17px;border-radius:50%;background:#555;border:1px solid #111}
.brand-plate{margin-top:9px;text-align:center;color:#aaa;font-size:10px;letter-spacing:2px;font-weight:900}
.tv-legs{display:flex;justify-content:space-between;padding:0 30px}
.tv-leg{width:16px;height:22px;background:#251309;transform:skew(-12deg);border-radius:0 0 5px 5px}

.section{padding:22px 0}
.section-heading{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #283127;margin-bottom:16px}
.section-heading h2{margin:0 0 10px;font-size:22px;text-transform:uppercase;letter-spacing:.8px}
.section-heading h2:before{content:"";display:inline-block;width:4px;height:22px;background:var(--green);margin-right:9px;vertical-align:-4px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{background:linear-gradient(180deg,#141714,#0b0d0b);border:1px solid #272d27;border-radius:9px;overflow:hidden;box-shadow:0 10px 22px #000}
.card-thumb{aspect-ratio:16/9;background:#1b211b;display:flex;align-items:center;justify-content:center;color:#687168}
.card-body{padding:14px}
.card h3{font-size:16px;margin:0 0 5px}
.meta{font-size:11px;color:var(--green);font-weight:800;text-transform:uppercase}
.event-list{display:grid;gap:10px}
.event{display:flex;gap:12px;padding:12px;background:#111411;border:1px solid #252b25;border-radius:8px}
.event-date{min-width:52px;text-align:center;border:1px solid #344332;border-radius:6px;padding:5px;color:var(--green);font-weight:900}
.event-date span{display:block;color:#ddd;font-size:18px}
.cta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.cta{padding:20px;border:1px solid #293328;border-radius:9px;background:#0d100d;text-align:center}
.cta h3{margin:4px 0;font-size:15px}
.btn{display:inline-block;background:var(--green);color:#071006;padding:9px 16px;border-radius:5px;font-weight:900;font-size:12px;text-transform:uppercase}
.btn:hover{background:#9dff45}
.site-footer{margin-top:30px;border-top:1px solid #263025;background:#050605;padding:28px 0;color:#aeb5ad}
.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}
.footer-brand{font-weight:900;color:#fff}.footer-brand span{color:var(--green)}
.notice{padding:18px;border:1px solid #263125;background:#0c100c;border-radius:8px;color:#c8cec7}
.wp-block-post-content,.entry-content{font-size:17px}
@media(max-width:1050px){
 .main-nav{gap:12px}.hero-grid{grid-template-columns:1fr}.side-panel,.info-card{min-height:auto}
 .grid-4{grid-template-columns:repeat(2,1fr)}.cta-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
 .header-inner{min-height:70px}.main-nav{display:none;position:absolute;left:0;right:0;top:70px;background:#070807;padding:15px;flex-direction:column;align-items:stretch;border-bottom:1px solid #222}
 .main-nav.open{display:flex}.main-nav a{padding:10px}.mobile-toggle{display:block;margin-left:auto}
 .site-brand{min-width:0}.brand-name{font-size:20px}.tagline{font-size:8px}
 .tv-face{grid-template-columns:1fr}.tv-controls{display:none}.tv-console{padding:13px}
 .grid-4,.cta-grid{grid-template-columns:1fr}.footer-inner{flex-direction:column;text-align:center}
}
