/* =============================
   Animation Overlay - Full-screen
   ============================= */

#animation-overlay {
    position: fixed;
    inset: 0;
    background: #FBF9EF;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow-y: auto;
}

.animation-overlay-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.animation-overlay-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* =============================
   Inner wrapper
   ============================= */

.overlay-inner {
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.5rem 3rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.overlay-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #d32f2f;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* =============================
   Cloud styles
   ============================= */

.cloud-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888;
    align-self: flex-end;
}

.overlay-text-input {
    width: 100%;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

.overlay-text-input:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

.overlay-btn-primary {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.overlay-btn-primary:hover {
    background: #b71c1c;
}

.overlay-btn-primary:active {
    transform: scale(0.97);
}

.overlay-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.overlay-thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #d32f2f;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
}

.overlay-thank-you i {
    font-size: 3rem;
}

.overlay-feedback {
    min-height: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #d32f2f;
    text-align: center;
}

/* =============================
   Enchères styles
   ============================= */

.enchere-inner {
    padding-top: 1.5rem;
}

.enchere-product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
}

.enchere-product-img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    object-fit: cover;
    max-height: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* =============================
   Timer
   ============================= */

.enchere-timer-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.enchere-timer-display {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #d32f2f;
    line-height: 1;
}

.enchere-timer-bar-track {
    width: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.enchere-timer-bar {
    height: 100%;
    background: #d32f2f;
    border-radius: 4px;
    transition: width 1s linear, background 0.3s;
}

.enchere-timer-bar--urgent {
    background: #e53935;
}

/* =============================
   Vote buttons
   ============================= */

.enchere-votes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.enchere-vote-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    line-height: 1.3;
}

.enchere-vote-btn:active {
    transform: scale(0.97);
}

.enchere-vote-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.enchere-vote-btn--1 {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}
.enchere-vote-btn--1:hover:not(:disabled) {
    background: #ffe0b2;
    box-shadow: 0 2px 12px rgba(255, 152, 0, 0.25);
}

.enchere-vote-btn--2 {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #1b5e20;
}
.enchere-vote-btn--2:hover:not(:disabled) {
    background: #c8e6c9;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.25);
}

.enchere-vote-btn--3 {
    background: #fce4ec;
    border-color: #d32f2f;
    color: #b71c1c;
}
.enchere-vote-btn--3:hover:not(:disabled) {
    background: #f8bbd0;
    box-shadow: 0 2px 12px rgba(211, 47, 47, 0.25);
}

.enchere-vote-btn--selected {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-weight: 700;
}
.enchere-vote-btn--1.enchere-vote-btn--selected { background: #ff9800; color: #fff; border-color: #e65100; }
.enchere-vote-btn--2.enchere-vote-btn--selected { background: #4caf50; color: #fff; border-color: #1b5e20; }
.enchere-vote-btn--3.enchere-vote-btn--selected { background: #d32f2f; color: #fff; border-color: #b71c1c; }

/* =============================
   Histogram
   ============================= */

.enchere-histogram {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.enchere-histogram--visible {
    display: flex;
}

.histo-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 0.6rem;
}

.histo-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
}

.histo-label--1 { color: #e65100; }
.histo-label--2 { color: #1b5e20; }
.histo-label--3 { color: #b71c1c; }

.histo-bar-wrap {
    background: #e0e0e0;
    border-radius: 4px;
    height: 18px;
    overflow: hidden;
}

.histo-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.histo-bar--1 { background: #ff9800; }
.histo-bar--2 { background: #4caf50; }
.histo-bar--3 { background: #d32f2f; }

.histo-stat {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}
