/* Импорт современного шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Базовые переменные темной темы */
    --bg-color: #141414;
    --card-bg: #1A1D1F;
    --text-primary: #FFFFFF;
    --text-secondary: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: #070808;
    --header-border: rgba(255, 255, 255, 0.1);
    --footer-bg: #070808;
    --footer-border: rgba(255, 255, 255, 0.1);
    
    /* Переменные для формы обмена */
    --exchange-form-text: #FFFFFF;
    --exchange-form-secondary-text: #a0aec0;
    
    /* Переменные для типографики */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

/* Светлая тема */
:root[data-theme="light"] {
    --bg-color: #FFFFFF;
    --card-bg: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #4a5568;
    --border-color: rgba(0, 0, 0, 0.1);
    /* Хедер и футер всегда темные */
    --header-bg: #070808;
    --header-border: rgba(255, 255, 255, 0.1);
    --footer-bg: #070808;
    --footer-border: rgba(255, 255, 255, 0.1);
    
    /* Переменные для формы обмена в светлой теме */
    --exchange-form-text: #111827;
    --exchange-form-secondary-text: #4a5568;
}

/* Стили для тела страницы */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Стили для хедера - всегда темный */
header.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
}

/* Стили для футера - всегда темный */
footer.footer, .footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    border-top: 1px solid var(--border-color);
}

/* Контентная часть */
main {
    flex: 1;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Стили для текста в основном контенте */
main h1:not(.hero-section h1):not(.hero-content h1):not(.hero-title),
main h2:not(.hero-section h2):not(.hero-content h2),
main h3:not(.hero-section h3):not(.hero-content h3),
main h4:not(.hero-section h4):not(.hero-content h4),
main h5:not(.hero-section h5):not(.hero-content h5),
main h6:not(.hero-section h6):not(.hero-content h6) {
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

main p:not(.hero-section p):not(.hero-content p):not(.hero-description),
main span:not(.hero-section span):not(.hero-content span):not(.hero-brand),
main li:not(.hero-section li):not(.hero-content li) {
    color: var(--text-secondary);
}

/* Предотвращаем черные прямоугольники в светлой теме */
:root[data-theme="light"] main *:not(svg):not(path):not(.hero-section *):not(.hero-content *):not(.hero-title *):not(.hero-brand):not(.hero-description):not(.hero-actions *):not(.hero-button) {
    background-color: #FFFFFF;
}

/* Стили для навигации */
.main-nav ul li a {
    color: #ffffff;
}

.main-nav ul li a.active {
    color: #2563EB;
}

.main-nav ul li a:hover {
    color: #2563EB;
}

/* Стили для кнопок в хедере */
.auth-buttons .btn-login {
    color: var(--text-primary);
}

.btn-register {
    background-color: #3B82F6 !important;
    color: #fff !important;
}

/* Стили для иконок */
.theme-icon {
    stroke: var(--text-primary);
}

.white-icon {
    stroke: var(--text-primary);
}

/* Стили для страниц с текстовым содержимым */
.page-content {
    background-color: transparent !important;
    color: var(--text-primary);
    border-radius: 0;
    border: none !important;
    padding: 0;
    margin-bottom: 40px;
}

.page-section {
    margin-bottom: 30px;
    padding: 0;
    background-color: transparent !important;
    border-radius: 0;
    border: none !important;
}

.page-section h2,
.page-section h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-section p {
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Стили для информационных блоков */
.info-block {
    background-color: var(--card-bg) !important;
}

.info-block div[style*="font-weight: 500"] {
    color: var(--text-primary) !important;
}

/* Стили для таблицы */
.table-container {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.table-header {
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table-header div {
    color: var(--text-secondary) !important;
}

.table-row {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: var(--card-bg) !important;
}

.table-row div[style*="font-weight: 500"] {
    color: var(--text-primary) !important;
}

.table-row div[style*="color: #6F767E"],
.table-row div[style*="color: #fff; font-size: 13px"] {
    color: var(--text-secondary) !important;
}

/* Стили для логотипа */
.logo span {
    color: #ffffff;
}

/* Специальные стили для AML страницы */
.aml-content {
    background-color: transparent !important;
    color: var(--text-primary);
    border-radius: 0;
    border: none !important;
    padding: 0;
    margin-bottom: 40px;
}

.aml-section {
    margin-bottom: 30px;
    padding: 0;
    background-color: transparent !important;
    border-radius: 0;
    border: none !important;
}

.aml-section h2 {
    color: var(--text-primary);
}

.aml-section p {
    color: var(--text-primary);
}

/* Общие стили для текста */
h1, h2, h3, h4, h5, h6, p, span, div {
    color: var(--text-primary);
}

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

/* Стили для фильтров */
button[style*="background-color: #1A1D1F"] {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

input[style*="background-color: #1A1D1F"] {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Стили для таблицы */
div[style*="background-color: #111111"] {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

div[style*="background-color: #181818"] {
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

div[style*="background-color: #181818"] div {
    color: var(--text-secondary) !important;
}

/* Стили для кнопок */
button {
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

/* Стили для инпутов */
input {
    font-family: inherit;
    outline: none;
}

input:focus {
    border-color: rgba(128, 128, 128, 0.6);
}

/* Стили для ссылок */
a {
    text-decoration: none;
    color: inherit;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
} 

.card {
    background-color: var(--card-bg) !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Специальные стили для главного заголовка */
.hero-title,
.big-text,
.second-line {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-extrabold);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Улучшенные стили для кнопок */
.btn-register,
.btn-login,
button[style*="background: #2563EB"] {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
}

/* Улучшенные стили для форм */
input[type="text"],
input[type="email"],
input[type="password"] {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    letter-spacing: -0.01em;
} 