/*
Theme Name: WPS-Code Pro
Author: WPS-Code Team
Version: 1.0.0
Description: High-Security Elementor Themes.
*/

/* -------------------------------------------------------------------------
   1. GLOBAL VARIABLES (The Control Center)
   ------------------------------------------------------------------------- */
:root {
    /* Typography */
    --wps-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --wps-font-code: 'Fira Code', 'Courier New', monospace;
    --wps-line-height: 1.6;
    
    /* Colors (Light Mode Default) */
    --wps-primary: #0073aa;
    --wps-text-color: #333333;
    --wps-title-color: #1a1a1a;
    --wps-bg-color: #ffffff;
    --wps-border-color: rgba(0,0,0,0.1);
    --wps-form-bg: #f9f9f9;
    
    /* Spacing & Radii */
    --wps-mb: 20px;
    --wps-radius: 4px;
    --wps-transition: all 0.25s ease;
}

/* -------------------------------------------------------------------------
   2. THE ATOMIC RESET (Clean Slate)
   ------------------------------------------------------------------------- */
*, *:before, *:after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    vertical-align: baseline;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--wps-bg-color);
    color: var(--wps-text-color);
    font-family: var(--wps-font-main);
    font-size: 16px;
    line-height: var(--wps-line-height);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY & SEO HIERARCHY (Yoast Ready)
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    display: block;
    margin-bottom: var(--wps-mb);
    color: var(--wps-title-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: var(--wps-mb); }

a {
    color: var(--wps-primary);
    text-decoration: none;
    transition: var(--wps-transition);
}

a:hover { opacity: 0.8; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

code, pre, kbd {
    font-family: var(--wps-font-code);
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
}

pre {
    display: block;
    padding: 15px;
    overflow: auto;
    margin-bottom: var(--wps-mb);
    white-space: pre-wrap;
}

blockquote {
    margin-bottom: var(--wps-mb);
    padding: 15px 30px;
    border-left: 4px solid var(--wps-primary);
    background: #fdfdfd;
    font-style: italic;
}

/* -------------------------------------------------------------------------
   4. FORMS & BUTTONS (Elementor Compatible)
   ------------------------------------------------------------------------- */
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
input[type="search"], 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--wps-form-bg);
    border: 1px solid var(--wps-border-color);
    border-radius: var(--wps-radius);
    transition: var(--wps-transition);
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--wps-primary);
    background: #fff;
}

:is(.button, button, [type=submit], .btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: var(--wps-primary);
    color: #fff;
    border-radius: var(--wps-radius);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--wps-transition);
}

:is(.button, button, [type=submit]):hover {
    filter: brightness(1.1);
}

/* -------------------------------------------------------------------------
   5. TABLES (Hardened Responsive)
   ------------------------------------------------------------------------- */
table {
    width: 100%;
    margin-bottom: var(--wps-mb);
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--wps-border-color);
}

th {
    background: #f7f7f7;
    font-weight: 700;
}

/* -------------------------------------------------------------------------
   6. UTILITY CLASSES & ANIMATIONS (The "Pro" Feel)
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.wps-hide { display: none !important; }

@keyframes wd-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wps-fade-in { animation: wd-fadeIn 0.5s ease forwards; }

/* -------------------------------------------------------------------------
   7. DARK SCHEME SUPPORT (Optional Automatic)
   ------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --wps-bg-color: #121212;
        --wps-text-color: rgba(255,255,255,0.8);
        --wps-title-color: #ffffff;
        --wps-border-color: rgba(255,255,255,0.1);
        --wps-form-bg: #1e1e1e;
    }
}