/**
 * Theme Name: Mesopotamia AI Chat v2.0
 * Theme URI: https://mesopotamia.iq
 * Author: Mesopotamia Team
 * Author URI: https://mesopotamia.iq
 * Description: Production-ready AI-powered chat interface as homepage. Zero-error Iraqi e-commerce theme with WooCommerce integration.
 * Version: 2.0.0
 * Requires at least: 6.0
 * Tested up to: 6.4
 * Requires PHP: 8.0
 * License: GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: mesopotamia-v2
 * Domain Path: /languages
 * Tags: rtl-language-support, e-commerce, woocommerce, ai-chat, arabic
 */

/*==================================================
  CSS Custom Properties (Design Tokens)
==================================================*/
:root {
	/* Colors - Iraqi Palette */
	--meso-primary: #1a5f7a;
	--meso-primary-dark: #0d3d4d;
	--meso-secondary: #c9a227;
	--meso-accent: #e8d5b7;
	--meso-success: #2e7d32;
	--meso-error: #c62828;
	
	/* Chat Colors - WhatsApp Dark Theme */
	--chat-bg: #0b141a;
	--chat-header-bg: #1f2c33;
	--chat-bubble-user: #005c4b;
	--chat-bubble-bot: #1f2c33;
	--chat-text: #e9edef;
	--chat-text-muted: #8696a0;
	--chat-accent: #00a884;
	--chat-border: #2a373f;
	--chat-card-bg: #182229;
	
	/* Typography */
	--font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	--font-size-base: 15px;
	--font-size-sm: 13px;
	--font-size-lg: 17px;
	--font-size-xl: 20px;
	
	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 12px;
	--spacing-lg: 16px;
	--spacing-xl: 24px;
	
	/* Borders */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-full: 50%;
	
	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-normal: 250ms ease;
	
	/* Layout */
	--content-width: 1200px;
	--chat-max-width: 450px;
}

/*==================================================
  Reset & Base
==================================================*/
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: 1.7;
	color: var(--chat-text);
	background-color: var(--chat-bg);
	direction: rtl;
	text-align: start;
	min-height: 100vh;
	min-height: 100dvh;
}

/*==================================================
  Typography with Logical Properties
==================================================*/
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.3;
	margin-block-end: var(--spacing-md);
	color: var(--chat-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
	margin-block-end: var(--spacing-md);
}

a {
	color: var(--chat-accent);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover,
a:focus {
	color: var(--meso-primary);
	text-decoration: underline;
}

/*==================================================
  Utility Classes
==================================================*/
.meso-container {
	inline-size: 100%;
	max-inline-size: var(--content-width);
	margin-inline: auto;
	padding-inline: var(--spacing-md);
}

.meso-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.meso-hidden {
	display: none !important;
}

/*==================================================
  Responsive Design
==================================================*/
@media (max-width: 768px) {
	:root {
		--font-size-base: 14px;
		--font-size-xl: 18px;
	}
}

@media (max-width: 480px) {
	:root {
		--spacing-md: 10px;
		--spacing-lg: 14px;
	}
}

/*==================================================
  Print Styles
==================================================*/
@media print {
	body {
		background: white;
		color: black;
	}
	
	.meso-chat__header,
	.meso-chat__input-area,
	.meso-cart-drawer {
		display: none;
	}
}
