/* ============================================
   BASE.CSS - Базові стилі, reset, змінні
   ============================================ */

/* CSS Змінні для уніфікації */
:root {
    /* Кольори */
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-accent: #d4af37;
    --color-accent-gradient: linear-gradient(90deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --color-text-base: #333333;
    --color-text-light: #666666;
    --color-background: #f0f0f0;
    --color-background-dark: #111111;
    
    /* Переходи */
    --transition-default: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Радіуси */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    
    /* Тіні */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Відступи */
    --spacing-xs: 0.5em;
    --spacing-sm: 0.8em;
    --spacing-md: 1.2em;
    --spacing-lg: 1.8em;
    --spacing-xl: 2.5em;
    
    /* Типографіка */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
}

/* Reset та Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-background-dark);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-base);
}

/* Перебиваємо обмеження ширини з theme.json */
.wp-site-blocks {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-group.alignfull {
    max-width: none !important;
}

/* Виправлення для редактора WordPress */
.editor-styles-wrapper,
.block-editor-writing-flow {
    background-color: #ffffff !important;
}

.block-editor-block-list__layout,
.wp-block {
    background-color: transparent;
}

.editor-styles-wrapper .wp-block {
    color: #1a1a1a;
}

/* Доступність: Skip Link */
.skip-link.screen-reader-text {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
}

.skip-link.screen-reader-text:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 15px 25px;
    background-color: var(--color-accent);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    clip: auto;
    clip-path: none;
}

/* Підтримка prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}









