/* ============================================================
   АУКЦИОН — СТИЛИ
   ============================================================
   Светлая золотистая тема, в духе остального мини-аппа.
   Основные цвета — в :root.

   ТАЙМЕР — отдельный блок ниже (.auction-timer), меняй смело:
   размер круга, цвет, положение на экране — всё в одном месте.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --auction-bg: #FDEFC9;
    --auction-burgundy: #6E1E3A;
    --auction-burgundy-dark: #4A1327;
    --auction-gold: #F0B429;
    --auction-card: #FFFFFF;
    --auction-text: #3A0F1F;
    --auction-muted: #8C6B4F;
    --auction-success-bg: #E1F5EE;
    --auction-success-text: #0F6E56;
}

.auction-widget {
    font-family: 'Nunito', sans-serif;
    color: var(--auction-text);
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
}

.auction-widget * {
    box-sizing: border-box;
}

/* -----------------------------------------------------------
   Вкладки (Активный / Будущие / Прошедшие)
   ----------------------------------------------------------- */

.auction-tabs {
    display: flex;
    gap: 6px;
    background: var(--auction-card);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(74, 19, 39, 0.08);
}

.auction-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 6px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--auction-muted);
    cursor: pointer;
}

.auction-tab.is-active {
    background: var(--auction-burgundy);
    color: white;
}

.auction-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--auction-burgundy);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
}

/* -----------------------------------------------------------
   Карточка списка аукционов
   ----------------------------------------------------------- */

.auction-card {
    background: var(--auction-card);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(74, 19, 39, 0.1);
    cursor: pointer;
}

.auction-card__banner {
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: var(--auction-burgundy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 12px;
}

.auction-card__body {
    padding: 14px 16px;
}

.auction-card__eyebrow {
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--auction-muted);
    margin: 0 0 2px;
}

.auction-card__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 17px;
    margin: 0 0 4px;
}

/* -----------------------------------------------------------
   Детальный экран аукциона — сетка карточек с цифрами
   ----------------------------------------------------------- */

.auction-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.auction-stat-card {
    background: var(--auction-card);
    border-radius: 12px;
    padding: 10px 12px;
}

.auction-stat-card__label {
    font-size: 11px;
    color: var(--auction-muted);
    margin: 0;
}

.auction-stat-card__value {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--auction-text);
    margin: 2px 0 0;
}

.auction-progress {
    background: var(--auction-card);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.auction-progress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--auction-muted);
    margin-bottom: 6px;
}

.auction-progress__bar {
    height: 6px;
    border-radius: 3px;
    background: #F5E4B0;
    overflow: hidden;
}

.auction-progress__fill {
    height: 100%;
    background: var(--auction-burgundy);
}

.auction-charge-note {
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    margin-bottom: 8px;
    background: var(--auction-success-bg);
}

.auction-charge-note__place {
    font-size: 12px;
    color: var(--auction-success-text);
    margin: 0;
}

.auction-charge-note__text {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--auction-success-text);
    margin: 2px 0 0;
}

/* -----------------------------------------------------------
   ТАЙМЕР — можно свободно менять всё, что здесь
   ----------------------------------------------------------- */

.auction-timer {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--auction-burgundy-dark);
    border: 4px solid var(--auction-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.auction-timer__value {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #FFF8E7;
}

.auction-timer__label {
    font-size: 9px;
    color: #D9B98A;
}

/* -----------------------------------------------------------
   Форма ставки
   ----------------------------------------------------------- */

.auction-bid-box {
    background: var(--auction-card);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.auction-bid-box__row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--auction-muted);
    margin-bottom: 6px;
}

.auction-bid-box__amount {
    color: var(--auction-burgundy);
    font-weight: 700;
}

.auction-bid-slider {
    width: 100%;
}

.auction-bid-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--auction-muted);
    margin-top: 2px;
}

.auction-quick-bids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.auction-quick-bid {
    padding: 8px;
    border: none;
    border-radius: 10px;
    background: var(--auction-bg);
    color: var(--auction-text);
    font-size: 12px;
    cursor: pointer;
}

.auction-place-bid-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--auction-burgundy);
    color: white;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.auction-join-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--auction-gold);
    color: var(--auction-burgundy-dark);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* -----------------------------------------------------------
   Итоги (топ-3)
   ----------------------------------------------------------- */

.auction-results {
    background: var(--auction-card);
    border-radius: 16px;
    padding: 16px;
}

.auction-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 0.5px solid rgba(74, 19, 39, 0.08);
}

.auction-result-row:last-child {
    border-bottom: none;
}
