/* =========================================================
   Exkluzivity Auction — Frontend Widget
   ========================================================= */

.exkluz-auction {
    margin: 24px 0;
    border: 1px solid #e0d9d0;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
    background: #faf8f5;
}

/* Header */
.exkluz-auction__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #1a1a1a;
    color: #fff;
}

.exkluz-auction__icon {
    font-size: 20px;
}

.exkluz-auction__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: 1;
}

.exkluz-auction__live-badge {
    background: #c9a96e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 20px;
    animation: auction-pulse 2s infinite;
}

.exkluz-auction__ended-badge {
    background: #888;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 20px;
}

@keyframes auction-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* Stats */
.exkluz-auction__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e0d9d0;
}

.exkluz-auction__stat {
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid #e0d9d0;
}

.exkluz-auction__stat:last-child {
    border-right: none;
}

.exkluz-auction__stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 4px;
}

.exkluz-auction__stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.exkluz-auction__countdown {
    color: #c9a96e !important;
}

/* End info */
.exkluz-auction__end-info {
    padding: 10px 20px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #e0d9d0;
    background: #fff;
    text-align: center;
}

/* Bid history */
.exkluz-auction__history {
    padding: 16px 20px;
    border-bottom: 1px solid #e0d9d0;
    background: #fff;
}

.exkluz-auction__history-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 10px;
}

.exkluz-auction__history ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exkluz-auction__history li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0ede8;
    color: #444;
}

.exkluz-auction__history li:last-child {
    border-bottom: none;
}

.exkluz-auction__history li.is-winning {
    color: #1a1a1a;
    font-weight: 600;
}

.exkluz-auction__history li.is-winning::before {
    content: '🥇';
    font-size: 12px;
}

.bid-name   { flex: 1; }
.bid-amount { font-weight: 700; color: #c9a96e; }
.bid-time   { font-size: 11px; color: #aaa; margin-left: auto; }

/* Form */
.exkluz-auction__form {
    padding: 20px;
}

/* Buy now */
.exkluz-auction__buynow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff7ed;
    border: 1px solid #f0c070;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    gap: 12px;
}

.exkluz-auction__buynow-btn {
    background: #c9a96e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.exkluz-auction__buynow-btn:hover {
    background: #b8935a;
    color: #fff;
}

/* Min bid info */
.exkluz-auction__min-bid {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
}

/* Guest fields */
.exkluz-auction__guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.exkluz-auction__guest-fields input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.exkluz-auction__guest-fields input:focus {
    outline: none;
    border-color: #c9a96e;
}

/* Bid row */
.exkluz-auction__bid-row {
    display: flex;
    gap: 8px;
}

.exkluz-auction__bid-row input[type="number"] {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #e0d9d0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.exkluz-auction__bid-row input[type="number"]:focus {
    outline: none;
    border-color: #c9a96e;
}

.exkluz-auction__submit-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.1s;
}

.exkluz-auction__submit-btn:hover {
    background: #333;
}

.exkluz-auction__submit-btn:active {
    transform: scale(0.98);
}

.exkluz-auction__submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Messages */
.exkluz-auction__message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.exkluz-auction__message.is-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.exkluz-auction__message.is-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* Ended message */
.exkluz-auction__ended-msg {
    padding: 20px;
    text-align: center;
    font-size: 15px;
    color: #555;
}

.exkluz-auction__ended-msg strong {
    color: #1a1a1a;
}

/* Kapcha */
.exkluz-auction__captcha {
    margin-top: 12px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.exkluz-auction__captcha-label {
    font-size: 14px;
    color: #92400e;
    margin: 0 0 10px;
}

.exkluz-auction__captcha-label strong {
    font-size: 18px;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

.exkluz-auction__captcha input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    box-sizing: border-box;
}

.exkluz-auction__captcha input[type="number"]:focus {
    outline: none;
    border-color: #c9a96e;
}

/* Responsive */
@media (max-width: 480px) {
    .exkluz-auction__stats {
        grid-template-columns: 1fr 1fr;
    }

    .exkluz-auction__stat:nth-child(3) {
        grid-column: span 2;
        border-right: none;
        border-top: 1px solid #e0d9d0;
    }

    .exkluz-auction__guest-fields {
        grid-template-columns: 1fr;
    }

    .exkluz-auction__bid-row {
        flex-direction: column;
    }

    .exkluz-auction__submit-btn {
        width: 100%;
    }
}
