/*
Theme Name: Bravo Togel
Theme URI: https://bravo-togel.com/
Author: Bravo Togel Engineering
Author URI: https://bravo-togel.com/
Description: A modern, high-performance, light-theme WordPress theme for the Bravo Togel domain verification suite and web safety publication platform. Engineered for PHP 8.3, Core Web Vitals excellence, and WCAG 2.2 AA accessibility.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bravo-togel
Tags: light, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, full-width-template, two-columns
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES / DESIGN SYSTEM TOKENS
   ========================================================================== */
:root {
  /* Brand & Theme Colors (Refined Light Theme Palette) */
  --color-primary: #0284c7;        /* Sky / Teal Accent */
  --color-primary-hover: #0369a1;
  --color-primary-dark: #075985;
  --color-primary-light: #e0f2fe;
  --color-secondary: #0f172a;      /* Deep Slate for high-contrast headers */
  
  /* Neutral Slate Palette */
  --color-bg: #f8fafc;             /* Soft neutral background */
  --color-surface: #ffffff;        /* Pure white cards and containers */
  --color-surface-alt: #f1f5f9;    /* Light gray for strips / chips */
  --color-border: #e2e8f0;         /* Subtle card and divider borders */
  --color-border-focus: #0284c7;
  
  /* Typography Colors (WCAG 2.2 AA High Contrast: > 10:1 ratio) */
  --color-text-main: #0f172a;      /* Primary text: Slate 900 */
  --color-text-body: #334155;      /* Body copy: Slate 700 */
  --color-text-muted: #64748b;     /* Captions & metadata: Slate 500 */
  --color-text-inverse: #ffffff;
  
  /* Status Colors */
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  
  /* Typography Families */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Layout Dimensions */
  --container-max-width: 1200px;
  --container-narrow-width: 820px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ==========================================================================
   RESET & BASE STYLING
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text-body);
}

/* Accessibility: Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary-dark);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Focus styles for keyboard navigation (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

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

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

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

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: var(--container-narrow-width);
}

/* Site Layout Structure */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
  padding-bottom: 3.5rem;
}
