/**
 * Atlas Planner Theme Variables
 * 
 * This file defines the core CSS custom properties (variables) for the Atlas Planner plugin.
 * These variables control colors, typography, spacing, and other visual aspects of the
 * atlas_wizard and atlas_account shortcodes.
 * 
 * These variables can be overridden via the WordPress admin theme settings page.
 */

.atlas-planner-theme {
    /* Primary Colors */
    --atlas-primary: #3b82f6;
    --atlas-primary-dark: #2563eb;
    --atlas-primary-light: #eff6ff;

    /* Secondary Colors */
    --atlas-secondary: #6b7280;
    --atlas-secondary-dark: #4b5563;
    --atlas-secondary-light: #f3f4f6;

    /* Accent Colors */
    --atlas-accent: #06b6d4;
    --atlas-accent-dark: #0891b2;
    --atlas-accent-light: #ecfeff;

    /* Status & Feedback Colors */
    --atlas-success: #10b981;
    --atlas-success-dark: #059669;
    --atlas-success-light: #d1fae5;

    --atlas-danger: #ef4444;
    --atlas-danger-dark: #dc2626;
    --atlas-danger-light: #fef2f2;

    --atlas-warning: #f59e0b;
    --atlas-warning-dark: #d97706;
    --atlas-warning-light: #fef3c7;

    --atlas-info: #3b82f6;
    --atlas-info-dark: #2563eb;
    --atlas-info-light: #eff6ff;

    /* Backgrounds */
    --atlas-background: #f8fafc;
    --atlas-card-bg: #ffffff;
    --atlas-modal-bg: #ffffff;
    --atlas-overlay-bg: rgba(0, 0, 0, 0.7);

    /* Text Colors */
    --atlas-text-primary: #1d2327;
    --atlas-text-secondary: #646970;
    --atlas-text-light: #8c8f94;
    --atlas-text-on-primary: #ffffff;
    --atlas-text-on-danger: #ffffff;
    --atlas-text-on-success: #ffffff;
    --atlas-text-on-warning: #ffffff;
    --atlas-text-on-accent: #ffffff;

    /* Borders & Dividers */
    --atlas-border: #e1e5e9;
    --atlas-border-dark: #cbd5e1;
    --atlas-divider: #f1f3f4;

    /* Component-Specific */
    --atlas-progress-bar-bg: #e1e5e9;
    --atlas-progress-bar-fill: linear-gradient(90deg, var(--atlas-primary), var(--atlas-primary-dark));
    --atlas-badge-bg: var(--atlas-secondary-light);
    --atlas-badge-text: var(--atlas-secondary-dark);
    --atlas-active-tab: var(--atlas-primary);
    --atlas-active-tab-text: var(--atlas-text-on-primary);

    /* Button Colors */
    --atlas-button-primary-bg: var(--atlas-primary);
    --atlas-button-primary-text: var(--atlas-text-on-primary);
    --atlas-button-primary-hover-bg: var(--atlas-primary-dark);
    --atlas-button-secondary-bg: var(--atlas-secondary-light);
    --atlas-button-secondary-text: var(--atlas-text-primary);
    --atlas-button-secondary-border: var(--atlas-border);
    --atlas-button-secondary-hover-bg: #e5e7eb;
    --atlas-button-danger-bg: var(--atlas-danger);
    --atlas-button-danger-text: var(--atlas-text-on-danger);
    --atlas-button-danger-hover-bg: var(--atlas-danger-dark);

    /* Links */
    --atlas-link-color: var(--atlas-primary);
    --atlas-link-hover-color: var(--atlas-primary-dark);

    /* Tables */
    --atlas-table-header-bg: var(--atlas-background);
    --atlas-table-header-text: var(--atlas-text-primary);
    --atlas-table-row-hover-bg: var(--atlas-primary-light);

    /* Forms */
    --atlas-form-control-border: var(--atlas-border-dark);
    --atlas-form-control-focus-border: var(--atlas-primary);
    --atlas-form-control-focus-shadow: rgba(59, 130, 246, 0.1);
    --atlas-form-control-bg: var(--atlas-card-bg);
    --atlas-form-control-text: var(--atlas-text-primary);

    /* Icons */
    --atlas-icon-color: var(--atlas-text-secondary);
    --atlas-icon-primary-color: var(--atlas-primary);
    --atlas-icon-danger-color: var(--atlas-danger);
    --atlas-icon-success-color: var(--atlas-success);
    --atlas-icon-warning-color: var(--atlas-warning);

    /* Typography */
    --atlas-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --atlas-heading-color: var(--atlas-text-primary);
    --atlas-body-color: var(--atlas-text-secondary);

    /* Spacing (optional for future use) */
    --atlas-spacing-xs: 0.25rem;
    --atlas-spacing-sm: 0.5rem;
    --atlas-spacing-md: 1rem;
    --atlas-spacing-lg: 1.5rem;
    --atlas-spacing-xl: 2rem;

    /* Border Radius */
    --atlas-border-radius-sm: 0.25rem;
    --atlas-border-radius-md: 0.5rem;
    --atlas-border-radius-lg: 0.75rem;
    --atlas-border-radius-xl: 1rem;

    /* Shadows */
    --atlas-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --atlas-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --atlas-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Apply font family to all text elements within plugin scope */
.atlas-planner-theme {
    font-family: var(--atlas-font-family);
}

.atlas-planner-theme h1,
.atlas-planner-theme h2,
.atlas-planner-theme h3,
.atlas-planner-theme h4,
.atlas-planner-theme h5,
.atlas-planner-theme h6 {
    color: var(--atlas-heading-color);
}

.atlas-planner-theme p,
.atlas-planner-theme span,
.atlas-planner-theme li,
.atlas-planner-theme td,
.atlas-planner-theme th {
    color: var(--atlas-body-color);
}

/* Utility classes for quick theming */
.atlas-planner-theme .atlas-text-primary {
    color: var(--atlas-text-primary);
}

.atlas-planner-theme .atlas-text-secondary {
    color: var(--atlas-text-secondary);
}

.atlas-planner-theme .atlas-bg-primary {
    background-color: var(--atlas-primary);
    color: var(--atlas-text-on-primary);
}

.atlas-planner-theme .atlas-bg-success {
    background-color: var(--atlas-success);
    color: var(--atlas-text-on-success);
}

.atlas-planner-theme .atlas-bg-danger {
    background-color: var(--atlas-danger);
    color: var(--atlas-text-on-danger);
}

.atlas-planner-theme .atlas-bg-warning {
    background-color: var(--atlas-warning);
    color: var(--atlas-text-on-warning);
}

.atlas-planner-theme .atlas-border {
    border: 1px solid var(--atlas-border);
}

.atlas-planner-theme .atlas-shadow-md {
    box-shadow: var(--atlas-shadow-md);
}
