/*
Theme Name: Aisprt.ru Pro 
Theme URI: https://aisprt.ru
Author: aisprt developers
Description: Dark Enterprise Theme for aisprt.ru
Version: 3.1.0
Template: 
Text Domain: sage-pro
*/

/* =========================================
   1. VARIABLES & CONFIG (UPDATED PALETTE)
   ========================================= */
:root {
    /* --- CORE PALETTE (Dark Enterprise) --- */
    --bg-core: #0B0E14;              /* Deepest Background */
    --bg-card: rgba(30, 41, 59, 0.4); /* Glass Card Background */
    --bg-card-hover: rgba(30, 41, 59, 0.6);
    
    --text-primary: #FFFFFF;         /* White Text */
    --text-secondary: #94A3B8;       /* Muted Text */
    --text-tertiary: #64748B;        /* Darker Muted */
    
    --accent-primary: #3B82F6;       /* Bright Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-light: rgba(255, 255, 255, 0.08); /* Thin Borders */
    --success: #10B981;

    /* --- TYPOGRAPHY --- */
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* --- DIMENSIONS --- */
    --container-w: 1200px;
    --gap: 30px;
    --radius: 12px;
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-core);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    /* Static Grid Background for the whole site */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.5rem; 
    /* Gradient Text Effect */
    background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
h2 { font-size: 2.5rem; }

a { color: var(--text-primary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent-primary); }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* =========================================
   3. LAYOUT & UTILS
   ========================================= */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
}

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

/* Standard Button */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 12px 30px; 
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50px; 
    font-weight: 600; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px; cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover { 
    background: var(--accent-primary); 
    color: #fff; 
    box-shadow: 0 0 20px var(--accent-glow);
}

/* =========================================
   4. HEADER & FOOTER
   ========================================= */
.site-header {
    background: rgba(11, 14, 20, 0.8); /* Semi-transparent dark */
    padding: 20px 0;
    position: sticky; top: 0; z-index: 99;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-wrap { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-family: var(--font-head); 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #fff;
    display: flex; align-items: center; gap: 10px;
}

.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { 
    font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); 
}
.main-nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.site-footer {
    background: #0F131E; 
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0; 
    margin-top: auto;
}

/* =========================================
   5. DASHBOARD STYLES (Cards & Panels)
   ========================================= */
.dashboard-wrapper {
    background-color: transparent; /* Inherits body gradient */
    min-height: 100vh;
}

.dashboard-header {
    background: transparent;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}
.user-welcome h1 { font-size: 2.2rem; margin: 0; }
.user-welcome span { 
    font-family: var(--font-body); 
    font-size: 1rem; 
    color: var(--text-secondary); 
}

/* Glass Cards */
.module-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    border: 1px solid var(--border-light);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.module-icon {
    font-size: 2rem; 
    color: var(--accent-primary); 
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--accent-glow);
}

/* =========================================
   6. CONTENT & PAGE STYLES
   ========================================= */
.canvas-body {
    background: transparent; /* No white background */
    padding: 0;
}

.canvas-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Typography for Post Content */
.entry-content {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.entry-content h1, .entry-content h2, .entry-content h3 { 
    margin-top: 2em; 
    color: #fff;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.entry-content p { margin-bottom: 1.5em; }

.entry-content ul { 
    list-style: none; 
    padding-left: 20px; 
    margin-bottom: 1.5rem; 
}

.entry-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.entry-content ul li::before {
    content: '•';
    color: var(--accent-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0; top: -5px;
}

.entry-content blockquote {
    border-left: 3px solid var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 20px;
    margin: 30px 0;
    font-style: italic; 
    color: #fff;
    border-radius: 0 8px 8px 0;
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .header-wrap { flex-direction: column; gap: 20px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    /* Mobile tweaks for grid background */
    body { background-size: 100% 100%, 40px 40px, 40px 40px; }
}
