/*
Theme Name: App
Description: Тема WordPress App
Version: 1.0
Author: Developer
Text Domain: app
*/

:root {
    /* ===== ЦВЕТА ===== */
    /* Основные цвета */
    --color-primary: #b45a06;
    --color-text: #1a1b30;
    --color-text-muted: rgba(26, 27, 48, 0.5);
    --color-background: #f3f4ff;
    --color-white: #ffffff;
    --color-border: #e5e8ff;
    --color-hover: rgba(180, 90, 6, 0.1);
    --color-orange: #ff6b35;
    --color-gray: #8e8e93;
    
    /* Дополнительные цвета */
    --color-off-white-1: #f3f4ff;
    --color-off-white-2: #e5e8ff;
    --color-off-white-3: #ccd0ff;
    --color-black-100: #1a1b30;
    --color-black-50: rgba(26, 27, 48, 0.5);
    --color-white-100: #ffffff;
    --color-accent-100: #b45a06;
    --color-accent-hover: #a0520a;
    
    /* Цвета статусов */
    --color-status-red-100: #cc070b;
    --color-status-red-10: #feefef;
    --color-status-orange-100: #ff9500;
    --color-status-orange-10: #fff7ed;
    --color-status-blue-100: #0095ff;
    --color-status-blue-10: #e5f4ff;
    --color-status-green-100: #07cc66;
    --color-status-green-10: #dbfeec;

    --color-red-100: #cc070b;
    --color-red-10: #feefef;
    --color-orange-100: #ff9500;
    --color-orange-10: #fff7ed;
    --color-blue-100: #0095ff;
    --color-blue-10: #e5f4ff;
    --color-green-100: #07cc66;
    --color-green-10: #dbfeec;
    
    /* Дополнительные цвета для элементов */
    --color-black-30: rgba(26, 27, 48, 0.3);
    --color-black-70: rgba(26, 27, 48, 0.7);
    
    /* Цвета для форм и состояний */
    --color-success: #22c55e;
    --color-success-light: #dcfce7;
    --color-success-dark: #15803d;
    --color-error: #ef4444;
    --color-error-light: #fef2f2;
    --color-error-dark: #dc2626;
    --color-disabled: #9ca3af;
    --color-background-light: #f9fafb;
    --color-border-light: #e5e7eb;
    --color-text-primary: #111827;
    --color-text-secondary: #6b7280;
    --color-primary-hover: #a0520a;

    /* ===== ТИПОГРАФИКА ===== */
    /* Шрифты */
    --font-primary: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Halvar Breitschrift', sans-serif;
    --font-display: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Веса шрифтов */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Размеры шрифтов */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 36px;
    
    /* Высота строк */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* ===== ОТСТУПЫ ===== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-xxl: 34px;
    --spacing-xxxl: 40px;
    --spacing-xxxxl: 48px;
    
    /* Альтернативная система отступов */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 48px;

    /* ===== СКРУГЛЕНИЯ ===== */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --border-radius-xl: 26px;
    --border-radius-xxl: 34px;
    --border-radius-full: 41px;
    
    /* Альтернативная система скруглений */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --radius-full: 41px;

    /* ===== ТЕНИ ===== */
    --shadow-sm: 0 2px 8px rgba(26, 27, 48, 0.06);
    --shadow-card: 0 4px 20px rgba(26, 27, 48, 0.08);
    --shadow-modal: 0 20px 60px rgba(26, 27, 48, 0.15);
    --shadow-popup: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* ===== АНИМАЦИИ ===== */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* ===== ПОПАПЫ ===== */
    --popup-overlay-bg: rgba(0, 0, 0, 0.8);
    --popup-bg: #f3f4ff;
    --popup-content-bg: #ffffff;
    --popup-border-radius: 34px;
    --popup-header-padding: 8px 8px 8px 24px;
    --popup-content-padding: 24px;
    --popup-backdrop-blur: blur(5px);
    --popup-animation-duration: 0.3s;
    --popup-animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --popup-max-width: 524px;
    --popup-max-height: 90vh;
}

/* ==========================================================================
   Базовые стили
   ========================================================================== */

/* Основные стили темы */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #135e96;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #135e96;
    color: white;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* ==========================================================================
   WordPress специфичные стили
   ========================================================================== */

/* Изображения WordPress */
.wp-block-image {
    margin: 0;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

/* Стили для WordPress админки */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* ==========================================================================
   Уведомления
   ========================================================================== */

.app-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.app-notification {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.app-notification--show {
    transform: translateX(0);
    opacity: 1;
}

.app-notification--success {
    border-left: 4px solid #00a32a;
    background: #f0f6fc;
}

.app-notification--error {
    border-left: 4px solid #d63638;
    background: #fcf0f1;
}

.app-notification--info {
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}

.app-notification__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
}

.app-notification__close:hover {
    color: #333;
}

/* ==========================================================================
   Отзывчивый дизайн
   ========================================================================== */

@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .app-notifications {
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .app-notifications {
        top: 10px;
        right: 10px;
        left: 10px;
    }
}