/*
 * Theme Name: Zyrbex
 * Theme URI: https://blog.zyrbex.com
 * Description: Simple theme based on the Zyrbex visual identity – colours, typography, and components.
 * Version: 1.0.0
 * Author: Zyrbex
 * Author URI: https://zyrbex.com
 * Text Domain: zyrbex
 * Tested up to: 6.9
 * Requires at least: 6.9
 * Requires PHP: 8.4
 * License: MIT
 */

/* ========================================
   CSS VARIABLES - Zyrbex Design System
   ======================================== */
:root {
  --background: #0f1419;
  --foreground: #e7e9ea;
  --primary: #f0b90b;
  --primary-foreground: #000000;
  --primary-hover: #d4a50a;
  --secondary: #1e2732;
  --card: #16202a;
  --card-hover: #1c2936;
  --muted: #2f3b47;
  --muted-foreground: #8b98a5;
  --border: #2f3b47;
  --input: #1e2732;
  --input-focus: #f0b90b;
  --ring: #f0b90b;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background) !important;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background) !important;
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Force dark background across the entire page – WordPress override */
body,
#page,
.site,
.site-main,
.entry-content,
.entry-header,
.wp-site-blocks,
main {
  background-color: var(--background) !important;
}

/* Remove white backgrounds added by WordPress/editor */
.entry-content .has-white-background-color,
.entry-content .has-background.has-white-background-color {
  background-color: var(--card) !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ========================================
   LAYOUT
   ======================================== */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  min-height: 60vh;
  padding: 2rem 0;
}

/* ========================================
   FORMS - Inputs
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--input);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.25);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--muted);
}

.btn-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
  outline: none;
  border: none;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: #000000 !important;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.3);
}

.btn-platform,
.btn-platform:hover {
  color: #000000 !important;
}

.btn-platform:hover {
  background-color: var(--primary-hover);
}

.btn-platform:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}

.btn-platform:disabled {
  pointer-events: none;
  opacity: 0.5;
}
