/*
 * custom.css — кастомные стили для темы
 *
 * Здесь определяются стили для стрелок, цветовых классов, анимаций обновления и других UI-элементов.
 * Подключается через wp_enqueue_style в functions.php
 */

.price-up   { color: #198754; font-weight: bold; }
.price-down { color: #dc3545; font-weight: bold; }
.price-same { color: #6c757d; }

.gold-current-block.updated {
    animation: gold-blink 0.4s linear;
}
@keyframes gold-blink {
    0%   { background: #ffe066; }
    100% { background: transparent; }
}

.gold-meta-list { margin-bottom: 0.5rem; }



@media (max-width: 768px) {
    .gold-price-widget__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gold-price-widget__title {
        font-size: 24px;
    }
    
    .gold-price-widget__price-number {
        font-size: 24px;
    }
}

/* --- News Section Styles --- */
.news-list-row {
    row-gap: 2rem;
}
.news-card {
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border-radius: 12px;
    border: 1px solid #eaeaea;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    box-shadow: 0 8px 32px rgba(33,37,41,0.10);
    transform: translateY(-2px) scale(1.01);
}
.news-card .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
    height: 180px;
}
.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.news-card .card-text {
    color: #444;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.news-card .text-muted {
    font-size: 0.95rem;
}
.news-card .stretched-link {
    color: #212529;
    text-decoration: none;
}
.news-card .stretched-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}
.news-list-pagination .pagination {
    margin: 0 auto;
}
@media (max-width: 767px) {
    .news-card .card-img-top {
        height: 120px;
    }
}
/* --- End News Section Styles --- */
