/*
Theme Name: KILLUMIDEN Apps
Theme URI: https://killumiden.com
Author: KILLUMIDEN
Author URI: https://killumiden.com
Description: Multi-app WooCommerce store. Dark zinc + amber UI inspired by the AnalogFilm ToolBox design system. Sell desktop apps for Windows and macOS.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: killumiden-apps
Tags: e-commerce, woocommerce, dark, custom-colors
*/

/* KILLUMIDEN app store design tokens */
:root {
  --aft-bg: #18181b;
  --aft-bg-deep: #09090b;
  --aft-surface: #27272a;
  --aft-surface-raised: #3f3f46;
  --aft-border: #3f3f46;
  --aft-border-soft: #52525b;
  --aft-text: #fafafa;
  --aft-text-muted: #d4d4d8;
  --aft-text-body: #e4e4e7;
  --aft-text-dim: #a1a1aa;
  --aft-accent: #f59e0b;
  --aft-accent-btn: #d97706;
  --aft-accent-btn-hover: #fbbf24;
  --aft-accent-soft: rgba(245, 158, 11, 0.12);
  --aft-radius: 12px;
  --aft-radius-lg: 16px;
  --aft-font-sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --aft-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --aft-max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--aft-font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--aft-text-body);
  background: var(--aft-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--aft-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--aft-accent-btn-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.aft-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.aft-container {
  width: 100%;
  max-width: var(--aft-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.aft-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

/* Header */
.aft-header {
  background: var(--aft-bg-deep);
  border-bottom: 1px solid var(--aft-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.aft-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.aft-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--aft-text);
  text-decoration: none;
}

.aft-brand:hover {
  color: var(--aft-text);
}

.aft-brand__logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--aft-radius-lg);
  flex-shrink: 0;
  object-fit: contain;
}

.aft-brand__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  color: var(--aft-text);
}

.aft-brand__tagline {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aft-text-dim);
  margin: 0.15rem 0 0;
}

.aft-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.aft-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aft-text-muted);
  border: 1px solid transparent;
  border-radius: var(--aft-radius);
  transition: all 0.15s ease;
}

.aft-nav a:hover,
.aft-nav .current-menu-item > a,
.aft-nav .current_page_item > a {
  color: var(--aft-accent);
  background: var(--aft-accent-soft);
  border-color: rgba(245, 158, 11, 0.25);
}

.aft-nav .menu-item-accent > a {
  background: var(--aft-accent-btn);
  color: #18181b !important;
  border-color: rgba(245, 158, 11, 0.3);
}

.aft-nav .menu-item-accent > a:hover {
  background: var(--aft-accent-btn-hover);
  color: #18181b !important;
}

/* Footer */
.aft-footer {
  background: var(--aft-bg-deep);
  border-top: 1px solid var(--aft-border);
  padding: 1.75rem 0;
  margin-top: auto;
}

.aft-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--aft-text-dim);
}

.aft-footer a {
  color: var(--aft-text-muted);
}

.aft-footer__mono {
  font-family: var(--aft-font-mono);
  font-size: 0.65rem;
}

/* Cards & typography */
.aft-card {
  background: rgba(39, 39, 42, 0.55);
  border: 1px solid var(--aft-border);
  border-radius: var(--aft-radius-lg);
  padding: 1.5rem;
}

.aft-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aft-text);
  margin: 0 0 1rem;
}

.aft-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aft-text-dim);
  margin: 0 0 0.5rem;
}

.aft-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.25rem;
}

.aft-section-head .aft-kicker {
  margin: 0;
}

.aft-section-head a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aft-protip {
  border-left: 3px solid var(--aft-accent);
  background: var(--aft-accent-soft);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--aft-radius) var(--aft-radius) 0;
  font-size: 0.8rem;
  color: var(--aft-text-muted);
  margin: 1.5rem 0;
}

.aft-protip strong {
  color: var(--aft-text);
}

.entry-content h2,
.entry-content h3 {
  color: var(--aft-text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.entry-content h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.entry-content p,
.entry-content li {
  color: var(--aft-text-body);
  font-size: 0.875rem;
}

.entry-content code {
  font-family: var(--aft-font-mono);
  font-size: 0.8em;
  color: var(--aft-accent);
  background: var(--aft-bg-deep);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--aft-border);
  margin: 2rem 0;
}

.aft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--aft-radius);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: var(--aft-accent-btn);
  color: #18181b !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.aft-btn:hover {
  background: var(--aft-accent-btn-hover);
  color: #18181b !important;
}

.aft-btn--ghost {
  background: transparent;
  color: var(--aft-text-muted) !important;
  border-color: var(--aft-border);
}

.aft-btn--ghost:hover {
  background: var(--aft-surface);
  color: var(--aft-text) !important;
}

/* Hero */
.aft-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.aft-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aft-text);
  margin: 0 0 0.75rem;
}

.aft-hero__lead {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  color: var(--aft-text-muted);
  line-height: 1.65;
}

.aft-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .aft-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .aft-nav ul {
    width: 100%;
  }
}
