/**
 * Стили для блока отображения валют
 * Унифицированные цвета и стили согласно фирменному стилю
 */

/* Основной контейнер валют */
.currency-container {
    margin-bottom: 20px;
}

/* Стили для основных валют */
.main-currency {
    background-color: var(--color-primary-light);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.main-currency .currency-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Стили для других валют */
.other-currency {
    background-color: var(--color-primary-light);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.other-currency .currency-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Адаптивность для блока других валют */
.other-currency .currency-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.other-currency .currency-item {
    flex: 0 0 auto;
    margin-bottom: 10px;
}

/* Стили для CBAR тикера */
.cbar-ticker {
    position: relative;
    background-color: var(--color-primary-dark);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Убираем красную линию над тикером */
.cbar-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-primary-light);
}

.cbar-ticker-container {
    position: relative;
    overflow: hidden;
}

#cbar-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 20px;
}

.ticker-code {
    font-weight: bold;
}

.rate-up {
    color: #4CAF50;
}

.rate-down {
    color: #F44336;
}

.rate-equal {
    color: #FFC107;
}

/* Стили для истории курсов */
.currency-chart {
    background-color: var(--footer-bg-color);
    color: white;
    padding: 15px;
    border-radius: 5px;
}

.currency-chart .chart-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Стили для текста графика */
.currency-chart text {
    fill: white !important;
}

/* Устранение белой пустоты между секциями */
.currency-chart {
    margin-top: -1px;
}

/* Стили для кнопки "Забронировать курс" */
.book-rate-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.book-rate-button:hover {
    background-color: var(--color-primary-dark);
}

/* Анимация для тикера */
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .other-currency .currency-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 576px) {
    .other-currency .currency-item {
        flex: 0 0 100%;
    }
}
