/*
Theme Name: iStrology
Theme URI: https://istrology.co.il
Author: iStrology Team
Author URI: https://istrology.co.il
Description: Astrology, numerology, tarot, and wellness content platform. RTL-ready Hebrew theme with i18n support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: istrology
Domain Path: /languages
Tags: rtl-language-support, translation-ready, custom-colors, responsive-layout

iStrology - Your guide to the stars and beyond.
*/

/* ==========================================================================
   CSS Custom Properties (Color Palette)
   ========================================================================== */

:root {
  /* Primary palette (Purple) */
  --purple-50: #A48CBA;
  --purple-100: #9A80B2;
  --purple-200: #8F72AA;
  --purple-300: #8363A1;
  --purple-400: #765297;
  --purple-450: #68329A; /* Active menu color */
  --purple-500: #572A80;
  --purple-550: #4E2574; /* Submenu background */
  --purple-600: #535374;
  --purple-700: #3A3A61;
  --purple-800: #34194D;
  --purple-900: #27133A;

  /* Secondary palette (Blue/Deep Space) */
  --deep-space-800: #22224D;
  --deep-space-900: #090939;

  /* Accent colors */
  --gold: #FFCF33;
  --dark-grey: #313131;

  /* Grey palette */
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #EEEEEE;
  --grey-300: #E0E0E0;
  --grey-400: #BDBDBD;
  --grey-500: #9E9E9E;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;

  /* Black & White */
  --color-black: #000000;
  --color-white: #FFFFFF;

  /* Status colors */
  --color-error: #D26262;

  /* Color scale (alias for semantic use) */
  --color-50: var(--purple-50);
  --color-100: var(--purple-100);
  --color-200: var(--purple-200);
  --color-300: var(--purple-300);
  --color-400: var(--purple-400);
  --color-500: var(--purple-500);
  --color-600: var(--purple-600);
  --color-700: var(--purple-700);
  --color-800: var(--purple-800);
  --color-900: var(--purple-900);

  /* Semantic colors */
  --color-primary: var(--purple-500);
  --color-primary-light: var(--purple-100);
  --color-primary-dark: var(--purple-700);
  --color-accent: var(--gold);
  --color-background: var(--purple-900);
  --color-surface: var(--purple-800);
  --color-surface-light: var(--purple-700);
  --color-text: var(--color-white);
  --color-text-muted: var(--purple-100);
  --color-border: var(--purple-300);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Typography */
  --font-family-base: 'Heebo', 'Assistant', system-ui, -apple-system, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 72px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-background);
  border-block-end: 1px solid var(--color-border);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0;
  margin-block-end: var(--space-md);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-block-start: 0;
  margin-block-end: var(--space-md);
}

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

a:hover,
a:focus {
  color: var(--color-white);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding-block: var(--space-xl);
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: 32px;
}

.site-header .container {
  height: 100%;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-text);
}

.skip-link:focus {
  inset-inline-start: var(--space-md);
  inset-block-start: var(--space-md);
}
