/*
Theme Name: PracticalOwner
Theme URI: https://practicalowner.com
Description: Custom Child Theme for PracticalOwner EV portal, built on the Kadence theme framework.
Author: Antigravity Agent
Author URI: https://practicalowner.com
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- REDEFINE KADENCE GLOBAL PALETTE VARIABLES FOR OPTION B (STEALTH SLATE) --- */
:root {
    --global-palette1: #38bdf8; /* Primary Accent (Sky Blue) */
    --global-palette2: #7dd3fc; /* Secondary Accent / Hover */
    --global-palette3: #f8fafc; /* Headings (Slate 50) */
    --global-palette4: #e2e8f0; /* Body Text (Slate 200) */
    --global-palette5: #94a3b8; /* Muted Text (Slate 400) */
    --global-palette6: #334155; /* Borders/Dividers (Slate 700) */
    --global-palette7: #1e293b; /* Secondary Background (Slate 800) */
    --global-palette8: #1e293b; /* Box/Container Background (Slate 800) */
    --global-palette9: #0f172a; /* Main Page Background (Slate 900) */
}

/* Enforce dark-mode defaults at the body level */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--global-palette4) !important;
    background-color: var(--global-palette9) !important;
}

/* Force header, wrapper, and footer backgrounds to match the theme */
#wrapper, #inner-wrap, .site-header, .site-footer, #masthead {
    background-color: var(--global-palette9) !important;
}

/* Restyle Kadence page containers, content boxes, and card views */
.content-container, 
.entry, 
.card, 
.post-card, 
.archive-card {
    background-color: var(--global-palette8) !important;
    border-color: var(--global-palette6) !important;
    color: var(--global-palette4) !important;
}

/* Editorial typography contrast overrides */
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--global-palette3) !important;
}

/* Style links with our brand accent color */
a {
    color: var(--global-palette1);
    transition: color 0.15s ease-in-out;
}

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

/* Custom Spec Sheet Grid Styles adjusted for Option B depth */
.ev-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--global-palette8); /* Deep Slate 800 container */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--global-palette6); /* Slate 700 Border */
    color: var(--global-palette3);
}

.ev-spec-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--global-palette9); /* Darker Slate 900 inside cards */
    border-radius: 8px;
    border-left: 4px solid var(--global-palette1); /* Brand accent highlight */
    border-top: 1px solid var(--global-palette6);
    border-right: 1px solid var(--global-palette6);
    border-bottom: 1px solid var(--global-palette6);
}

.ev-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--global-palette5); /* Muted slate-gray */
    margin-bottom: 0.25rem;
}

.ev-spec-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--global-palette3); /* High contrast off-white value */
}

/* Metrics Toggle Style */
.ev-spec-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ev-spec-toggle-btn {
    background-color: var(--global-palette6);
    color: var(--global-palette3);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.ev-spec-toggle-btn:hover {
    background-color: var(--global-palette5);
    color: var(--global-palette9);
}
