/*
Theme Name:   Astra Child - CryptoInsiderHub
Theme URI:    https://cryptoinsiderhub.local
Description:  Дочерняя тема для Astra, разработанная специально для CryptoInsiderHub
Author:       CryptoInsiderHub Team
Author URI:   https://cryptoinsiderhub.local
Template:     astra
Version:      2.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ==========================================================================
   MODERN LIGHT DESIGN - Clean & Minimal 2024/2025
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables - Light & Fresh */
:root {
    /* Primary Colors */
    --primary: #0d9488;           /* Teal 600 */
    --primary-light: #14b8a6;     /* Teal 500 */
    --primary-dark: #0f766e;      /* Teal 700 */
    --primary-bg: #f0fdfa;        /* Teal 50 */
    
    /* Secondary / Accent */
    --accent: #6366f1;            /* Indigo 500 */
    --accent-light: #818cf8;      /* Indigo 400 */
    --accent-bg: #eef2ff;         /* Indigo 50 */
    
    /* Neutrals */
    --text-primary: #0f172a;      /* Slate 900 */
    --text-secondary: #475569;    /* Slate 600 */
    --text-muted: #94a3b8;        /* Slate 400 */
    --text-light: #cbd5e1;        /* Slate 300 */
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;      /* Slate 50 */
    --bg-tertiary: #f1f5f9;       /* Slate 100 */
    --bg-hover: #e2e8f0;          /* Slate 200 */
    
    /* Borders */
    --border-light: #e2e8f0;      /* Slate 200 */
    --border-medium: #cbd5e1;     /* Slate 300 */
    
    /* Status Colors */
    --success: #10b981;           /* Emerald 500 */
    --warning: #f59e0b;           /* Amber 500 */
    --danger: #ef4444;            /* Red 500 */
    --info: #3b82f6;              /* Blue 500 */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    
    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    
    /* Typography */
    --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0;
    background: var(--bg-secondary) !important;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--primary-bg) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--accent-bg) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

body.admin-bar {
    margin-top: 0 !important;
}

body.admin-bar #wpadminbar {
    position: fixed;
}

/* Page wrapper */
#page {
    position: relative;
    z-index: 1;
}

/* Hide default Astra header */
#masthead.site-header.ast-primary-header {
    display: none;
}

header#masthead.site-header {
    display: block;
}

/* Content areas */
.site-content {
    padding-top: 0;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent !important;
}

main#primary,
.site-main {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
}

.site,
#page,
.ast-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container .site-content,
.ast-page-builder-template .site-content {
    background: transparent !important;
    background-color: transparent !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.no-underline {
    text-decoration: none;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Remove Astra borders */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Entry content text */
body,
.site,
.site-content,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content span,
article {
    color: var(--text-secondary) !important;
}

.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-primary) !important;
}

.entry-content a {
    color: var(--primary) !important;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: var(--primary-dark) !important;
    border-bottom-color: var(--primary);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Animation utilities */
.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Initial state for animations */
[class*="animate-"]:not(.animate-float):not(.animate-pulse-soft) {
    opacity: 0;
}

/* ==========================================================================
   FOCUS STYLES
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
