/*
Theme Name: Blocksy Child - The Connected Haven
Theme URI: https://theconnectedhaven.com
Description: The Connected Haven custom child theme - Smart Home Technology Simplified. A comprehensive design system for smart home guides, reviews, and tutorials.
Author: The Connected Haven Team
Author URI: https://theconnectedhaven.com
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child-tch
Tags: smart-home, technology, guides, reviews

The Connected Haven - Your trusted guide to smart home technology.
Transform your home into an intelligent sanctuary with expert guides,
honest reviews, and automation tutorials for Alexa, HomeKit, Google Home & SmartThings.
*/

/* ==========================================================================
   BLOCKSY PARENT STYLES
   ========================================================================== */

@import url("../blocksy/style.css");

/* ==========================================================================
   TCH DESIGN SYSTEM - CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Primary Palette - Haven Blue */
  --tch-primary: #2563eb;
  --tch-primary-dark: #1d4ed8;
  --tch-primary-light: #3b82f6;
  --tch-primary-lighter: #60a5fa;

  /* Secondary Palette - Warm Home Orange */
  --tch-secondary: #f59e0b;
  --tch-secondary-dark: #d97706;
  --tch-secondary-light: #fbbf24;

  /* Accent - Connected Green */
  --tch-accent: #10b981;
  --tch-accent-dark: #059669;
  --tch-accent-light: #34d399;

  /* Neutrals */
  --tch-dark: #1e293b;
  --tch-text: #334155;
  --tch-muted: #64748b;
  --tch-light: #f1f5f9;
  --tch-lighter: #f8fafc;
  --tch-white: #ffffff;

  /* Ecosystem Colors */
  --ecosystem-alexa: #00caff;
  --ecosystem-homekit: #000000;
  --ecosystem-google: #4285f4;
  --ecosystem-smartthings: #15bfff;
  --ecosystem-matter: #7c3aed;

  /* Typography */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

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

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 4px 14px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ==========================================================================
   BASE OVERRIDES
   ========================================================================== */

body {
  font-family: var(--font-body);
  color: var(--tch-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tch-dark);
}

a {
  color: var(--tch-primary);
  transition: color var(--transition-base);
}

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

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.tch-btn,
.ct-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.tch-btn-primary,
.ct-button {
  background: var(--tch-primary);
  color: var(--tch-white);
}

.tch-btn-primary:hover,
.ct-button:hover {
  background: var(--tch-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

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

.tch-btn-secondary:hover {
  background: var(--tch-secondary-dark);
}

.tch-btn-outline {
  background: transparent;
  border: 2px solid var(--tch-primary);
  color: var(--tch-primary);
}

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

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 1px solid var(--tch-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: var(--font-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--tch-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-primary { color: var(--tch-primary); }
.text-secondary { color: var(--tch-secondary); }
.text-accent { color: var(--tch-accent); }
.text-muted { color: var(--tch-muted); }

.bg-primary { background-color: var(--tch-primary); }
.bg-secondary { background-color: var(--tch-secondary); }
.bg-accent { background-color: var(--tch-accent); }
.bg-light { background-color: var(--tch-light); }
.bg-dark { background-color: var(--tch-dark); }

.gradient-primary {
  background: linear-gradient(135deg, var(--tch-primary) 0%, var(--tch-primary-light) 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--tch-primary) 0%, var(--tch-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
