/*
Theme Name: SPL Suite
Theme URI: https://example.com/
Author: AV Group
Author URI: https://example.com/
Description: Minimal, dark theme designed to match SPL Light calculator plugins (K10, Lön vs Utdelning, TMF).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spl-suite
Tags: dark, one-column, custom-background, custom-logo
*/

/* Theme tokens (match plugins) */
:root{
  --spl-bg: #0b0f19;
  --spl-card: rgba(255,255,255,.06);
  --spl-card2: rgba(255,255,255,.08);
  --spl-border: rgba(255,255,255,.12);
  --spl-text: rgba(255,255,255,.92);
  --spl-muted: rgba(255,255,255,.72);
  --spl-muted2: rgba(255,255,255,.60);
  --spl-accent: #7a8060;
  --spl-shadow: 0 18px 60px rgba(0,0,0,.35);
  --spl-radius: 18px;
  --spl-radius2: 22px;
  --spl-pad: 18px;
  --spl-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Base */
html, body { height: 100%; }
body{
  margin:0;
  font-family: var(--spl-font);
  color: var(--spl-text);
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(122,128,96,.18), transparent 55%),
    radial-gradient(900px 520px at 90% 20%, rgba(255,255,255,.06), transparent 60%),
    var(--spl-bg);
}
a{ color: #e9eddc; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width:100%; height:auto; }

/* Layout */
.spl-site{
  min-height:100%;
  display:flex;
  flex-direction:column;
}
.spl-container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.spl-main{
  flex:1;
  padding: 24px 0 48px 0;
}

/* Header */
.spl-header{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.spl-header__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.spl-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.spl-brand__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(122,128,96,.85);
  box-shadow: 0 0 0 4px rgba(122,128,96,.18);
}
.spl-nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.spl-nav a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  font-weight: 650;
  font-size: 13px;
}
.spl-nav a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

/* Footer */
.spl-footer{
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

/* Cards / content */
.spl-card{
  background: linear-gradient(180deg, var(--spl-card2), var(--spl-card));
  border: 1px solid var(--spl-border);
  border-radius: var(--spl-radius2);
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.spl-hero{
  padding: 26px 18px;
  border-radius: var(--spl-radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(122,128,96,.18), transparent 55%),
    rgba(255,255,255,.04);
}
.spl-hero h1{
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: .2px;
}
.spl-hero p{
  margin: 0;
  color: var(--spl-muted);
  max-width: 70ch;
  line-height: 1.45;
}
.spl-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 980px){
  .spl-grid{ grid-template-columns: 1fr; }
}

/* Buttons */
.spl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight: 650;
}
.spl-btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  text-decoration:none;
}
.spl-btn--accent{
  background: rgba(122,128,96,.22);
  border-color: rgba(122,128,96,.42);
  color: #f3f5ea;
}
.spl-btn--accent:hover{
  background: rgba(122,128,96,.30);
}

/* Typography */
.spl-prose h2, .spl-prose h3{ margin: 18px 0 10px 0; }
.spl-prose p{ color: rgba(255,255,255,.82); line-height: 1.6; }
.spl-prose ul{ color: rgba(255,255,255,.78); line-height: 1.6; }

/* Plugin widgets spacing */
.spl-widget{ margin-top: 14px; }
.wp-block{ max-width: 100%; }

/* Gutenberg alignment */
.alignwide{ max-width: 1100px; margin-left:auto; margin-right:auto; }
.alignfull{ max-width: none; width: 100%; }
