/* 
 * MarketPawns Starter - основные стили
 */

/* Глобальные переменные */
:root {
    --primary-color: #2c2e61;
    --primary-light: #4a4d9b;
    --primary-dark: #1c1e40;
    --secondary-color: #e2954b;
    --secondary-light: #f5b979;
    --secondary-dark: #c87827;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #f5b942;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --body-bg: #f5f7fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    
    /* Шрифты */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Размеры и отступы */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Скругления и тени */
    --border-radius: 0.25rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Сброс и базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: var(--body-bg);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Состояние загрузки страницы */
body.loaded {
    opacity: 1;
    visibility: visible;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Утилиты */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* Кнопки */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.375rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a1c45;
    border-color: #1a1c45;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #c7a450;
    border-color: #c7a450;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Corporate Dark Button - темно-синий корпоративный */
.btn-corporate-dark {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(28, 30, 64, 0.3);
}

.btn-corporate-dark:hover, .btn-corporate-dark:focus {
    background-color: #151729;
    border-color: #151729;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 30, 64, 0.4);
}

.text-corporate-dark {
    color: var(--primary-dark) !important;
}

/* Улучшенная читаемость ключевых текстов */
.enhanced-readability {
    font-weight: 500;
    font-size: 1.1em;
    line-height: 1.4;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.enhanced-readability-large {
    font-weight: 600;
    font-size: 1.15em;
    line-height: 1.5;
    color: #34495e;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.enhanced-readability-lead {
    font-weight: 500;
    font-size: 1.05em;
    line-height: 1.6;
    color: #2c3e50;
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

/* Прелоадер */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.15s linear;
}

/* Хедер */
.header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
}

.logo img {
    max-height: 50px;
}

.main-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.main-nav .nav-link.active, .main-nav .nav-link:hover {
    color: var(--primary-color);
}

.main-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Футер */
.footer {
    background-color: var(--light-color);
    color: #6c757d;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.footer-links a {
    display: block;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links .social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Карточки */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f4f4f4;
    padding: 1.25rem 1.25rem;
}

.card-title {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Сигналы */
.signals-table {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.signals-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    padding: 1rem;
}

.signals-table td {
    padding: 1rem;
    vertical-align: middle;
}

.signal-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.signal-tag.buy {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

.signal-tag.sell {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
}

/* Формы */
.form-control {
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 181, 108, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Обучение - панель шагов */
.tutorial-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.tutorial-step {
    text-align: center;
    position: relative;
    flex: 1;
}

.tutorial-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.tutorial-step.active:not(:last-child):after,
.tutorial-step.completed:not(:last-child):after {
    background-color: var(--primary-color);
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.tutorial-step.active .step-number,
.tutorial-step.completed .step-number {
    background-color: var(--primary-color);
    color: #fff;
}

.step-title {
    font-weight: 500;
    color: #495057;
}

.tutorial-step.active .step-title,
.tutorial-step.completed .step-title {
    color: var(--primary-color);
}

/* Медиа-запросы */
@media (max-width: 767.98px) {
    .main-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .social-links .social-link {
        width: 32px;
        height: 32px;
    }
    
    .tutorial-steps {
        flex-direction: column;
    }
    
    .tutorial-step {
        margin-bottom: 1.5rem;
    }
    
    .tutorial-step:not(:last-child):after {
        display: none;
    }
}

/* Стили для языкового переключателя */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item.active {
    background-color: #2c2e61;
    color: #fff;
}

#languageDropdown {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

/* Круглые иконки в разделах */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(226, 149, 75, 0.2) !important; /* Используем вторичный цвет с прозрачностью */
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(226, 149, 75, 0.3);
}

.feature-icon i {
    color: var(--secondary-color) !important; /* Используем оранжевый вместо синего */
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ - Back to Top кнопка
   ======================================== */

/* Back to Top Button - ВИДИМАЯ ИКОНКА */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2c2e61 0%, #4a4d8a 100%);
    color: #ffffff;
    border: 2px solid #d6b56c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1 !important; /* ВСЕГДА ВИДИМАЯ */
    visibility: visible !important; /* ВСЕГДА ВИДИМАЯ */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 46, 97, 0.3);
    z-index: 1000;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    user-select: none;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #4a4d8a 0%, #2c2e61 100%);
    border-color: #e1c76c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 46, 97, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 46, 97, 0.5);
}

/* Responsive adjustments для кнопки */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ========================================
   УЛУЧШЕНИЯ ИКОНОК - FontAwesome
   ======================================== */

/* Гарантируем отображение всех иконок FontAwesome */
.fas, .far, .fab, .fal, .fat, .fad {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    line-height: 1 !important;
}

/* Улучшаем видимость иконок в кнопках */
.btn i {
    margin-right: 8px;
    font-size: 1em;
    vertical-align: middle;
}

/* Социальные иконки */
.social-links i {
    font-size: 1.2em !important;
    color: currentColor !important;
    transition: transform 0.2s ease;
}

.social-links a:hover i {
    transform: scale(1.1);
}

/* ========================================
   UNIFIED FEATURE BLOCKS STYLES
   ======================================== */

/* Единый стиль для всех иконок блоков функций */
.uniform-icon {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #3D4875 !important;
    box-shadow: 0 2px 8px rgba(61, 72, 117, 0.1);
    transition: all 0.3s ease;
}

.uniform-icon:hover {
    background: #3D4875;
    color: white !important;
    border-color: #3D4875;
    box-shadow: 0 4px 12px rgba(61, 72, 117, 0.2);
    transform: translateY(-2px);
}

/* Единый стиль для всех кнопок блоков функций */
.uniform-btn {
    background: #D4AC0D;
    border: 1px solid #D4AC0D;
    color: white !important;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 20px;
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.2s ease;
    text-decoration: none !important;
    font-size: 0.9rem;
}

.uniform-btn:hover {
    background: #3D4875;
    border-color: #3D4875;
    color: white !important;
    box-shadow: 0 2px 4px rgba(61, 72, 117, 0.2);
}

/* Единые эффекты для карточек блоков функций */
.features-section .card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #ffffff;
}

.features-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(61, 72, 117, 0.1);
    border-color: #D4AC0D;
}

.features-section .card-body {
    padding: 2rem;
}

.features-section h4 {
    color: #3D4875;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-section .text-muted {
    color: #6c757d !important;
    line-height: 1.6;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .uniform-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .uniform-icon i {
        font-size: 1.5rem !important;
    }
    
    .uniform-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .features-section .card-body {
        padding: 1.5rem;
    }
}

/* ========================================
   CTA SECTION - ПРИЗЫВ К ДЕЙСТВИЮ
   ======================================== */

/* Градиентный фон для CTA секции */
.bg-gradient-primary {
    background: #3D4875;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.cta-content:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* CTA иконка */
.cta-section .fas.fa-chart-line {
    color: #D4AC0D;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    text-shadow: 0 0 15px rgba(212, 172, 13, 0.5);
}

/* CTA кнопка */
.cta-section .btn-warning {
    background: linear-gradient(135deg, #D4AC0D, #B7950B);
    border: 1px solid #B7950B;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(180, 149, 11, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.cta-section .btn-warning:hover {
    background: linear-gradient(135deg, #B7950B, #9A7D0A);
    box-shadow: 0 6px 16px rgba(180, 149, 11, 0.4);
    transform: translateY(-1px);
    color: white;
    border-color: #9A7D0A;
}

/* Адаптивность CTA секции */
@media (max-width: 768px) {
    .cta-section .btn-warning {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .cta-content {
        padding: 2rem !important;
    }
    
    .cta-section .fas.fa-chart-line {
        font-size: 2rem !important;
    }
} 