/* ── BidCoast Auction — Single Product Bid Area ─────────────────── */

.bc-auction-area {
    margin: 24px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Status badges */
.bc-auction-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.bc-status-live {
    background: #10b981;
    color: #fff;
}
.bc-status-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: bc-pulse 1.5s ease-in-out infinite;
}
@keyframes bc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.bc-status-upcoming {
    background: #f59e0b;
    color: #fff;
}
.bc-status-ended {
    background: #6b7280;
    color: #fff;
}

/* Countdown */
.bc-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}
.bc-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 4px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.bc-cd-num {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bc-cd-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.bc-countdown-sep {
    font-size: 20px;
    font-weight: 700;
    color: #94a3b8;
    padding: 0 2px;
}
.bc-countdown-urgent .bc-cd-num {
    color: #ef4444;
}
.bc-countdown-urgent .bc-countdown-item {
    border-color: #fecaca;
    background: #fef2f2;
}

/* Bid display */
.bc-bid-display {
    margin-bottom: 20px;
}
.bc-bid-current {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bc-bid-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.bc-bid-amount {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}
.bc-bid-meta {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}
.bc-reserve-met {
    color: #10b981;
    font-weight: 600;
}
.bc-reserve-notmet {
    color: #ef4444;
    font-weight: 600;
}
.bc-savings {
    font-size: 13px;
    color: #10b981;
    font-weight: 500;
    margin-top: 4px;
}
.bc-savings s {
    color: #94a3b8;
}

/* Bid form */
.bc-bid-form {
    margin-top: 16px;
}
.bc-bid-input-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.bc-bid-input-row:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.bc-currency {
    padding: 12px 0 12px 14px;
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
}
#bc-bid-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 14px 12px 6px;
    background: transparent;
    -moz-appearance: textfield;
}
#bc-bid-input::-webkit-outer-spin-button,
#bc-bid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.bc-bid-minimum {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 12px;
}

/* Bid button */
.bc-bid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}
.bc-bid-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    color: #fff;
}
.bc-bid-btn:active {
    transform: translateY(0);
}
.bc-bid-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.bc-bid-btn-winner {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Messages */
.bc-bid-message {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.bc-msg-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.bc-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Login prompt */
.bc-login-prompt {
    text-align: center;
    margin-top: 16px;
}
.bc-login-prompt p {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

/* Winner notice */
.bc-winner-notice {
    margin-top: 16px;
    padding: 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    text-align: center;
}
.bc-winner-notice strong {
    display: block;
    color: #065f46;
    font-size: 16px;
    margin-bottom: 12px;
}
.bc-winner-notice .bc-bid-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}
.bc-winner-name {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}
.bc-no-winner {
    font-size: 14px;
    color: #ef4444;
    margin-top: 8px;
}
.bc-starts-at {
    font-size: 14px;
    color: #64748b;
    margin-top: 12px;
}

/* Bid History tab */
.bc-bid-history-table {
    width: 100%;
    border-collapse: collapse;
}
.bc-bid-history-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}
.bc-bid-history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}
.bc-bid-history-table tr:hover td {
    background: #f8fafc;
}

/* Topbar (status + watchlist) */
.bc-auction-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.bc-auction-topbar .bc-auction-status {
    margin-bottom: 0;
}

/* Watchlist button */
.bc-watchlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
    font-size: 13px;
}
.bc-watchlist-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}
.bc-watchlist-btn.bc-watching {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}
.bc-watcher-count {
    font-weight: 600;
    font-size: 12px;
}

/* Condition badge */
.bc-condition {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}
.bc-condition-new {
    background: #dbeafe;
    color: #1d4ed8;
}
.bc-condition-used {
    background: #fef3c7;
    color: #92400e;
}
.bc-condition-refurbished {
    background: #e0e7ff;
    color: #4338ca;
}
.bc-condition-for_parts {
    background: #fee2e2;
    color: #991b1b;
}

/* Winning notice (current high bidder) */
.bc-winning-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #065f46;
    font-weight: 600;
}

/* Proxy bidding toggle */
.bc-proxy-row {
    margin: 10px 0 14px;
}
.bc-proxy-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}
.bc-proxy-toggle input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}
.bc-proxy-label {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
}
.bc-proxy-label small {
    display: block;
    font-weight: 400;
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

/* Price labels on shop/archive pages */
.bc-price-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Shop loop badge positioning */
.products .product {
    position: relative;
}

/* Responsive */
@media (max-width: 480px) {
    .bc-auction-area {
        padding: 16px;
        margin: 16px 0;
    }
    .bc-bid-amount {
        font-size: 26px;
    }
    .bc-countdown-item {
        min-width: 44px;
        padding: 6px 2px;
    }
    .bc-cd-num {
        font-size: 20px;
    }
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"] .bc-auction-area {
    background: #1e293b;
    border-color: #334155;
}

/* Countdown */
[data-theme="dark"] .bc-countdown-item {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .bc-cd-num {
    color: #f1f5f9;
}
[data-theme="dark"] .bc-cd-label {
    color: #b8c4d0;
}
[data-theme="dark"] .bc-countdown-sep {
    color: #64748b;
}
[data-theme="dark"] .bc-countdown-urgent .bc-cd-num {
    color: #f87171;
}
[data-theme="dark"] .bc-countdown-urgent .bc-countdown-item {
    border-color: #7f1d1d;
    background: #450a0a;
}

/* Bid display */
[data-theme="dark"] .bc-bid-label {
    color: #b8c4d0;
}
[data-theme="dark"] .bc-bid-amount {
    color: #f1f5f9;
}
[data-theme="dark"] .bc-bid-meta {
    color: #b8c4d0;
}
[data-theme="dark"] .bc-reserve-met {
    color: #4ade80;
}
[data-theme="dark"] .bc-reserve-notmet {
    color: #f87171;
}
[data-theme="dark"] .bc-savings {
    color: #4ade80;
}
[data-theme="dark"] .bc-savings s {
    color: #64748b;
}

/* Bid form */
[data-theme="dark"] .bc-bid-input-row {
    background: #0f172a;
    border-color: #475569;
}
[data-theme="dark"] .bc-bid-input-row:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}
[data-theme="dark"] .bc-currency {
    color: #b8c4d0;
}
[data-theme="dark"] #bc-bid-input {
    color: #f1f5f9;
}
[data-theme="dark"] .bc-bid-minimum {
    color: #b8c4d0;
}

/* Messages */
[data-theme="dark"] .bc-msg-success {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #065f46;
}
[data-theme="dark"] .bc-msg-error {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}

/* Login prompt */
[data-theme="dark"] .bc-login-prompt p {
    color: #b8c4d0;
}

/* Winner notice */
[data-theme="dark"] .bc-winner-notice {
    background: #064e3b;
    border-color: #065f46;
}
[data-theme="dark"] .bc-winner-notice strong {
    color: #a7f3d0;
}
[data-theme="dark"] .bc-winner-name {
    color: #b8c4d0;
}
[data-theme="dark"] .bc-no-winner {
    color: #f87171;
}
[data-theme="dark"] .bc-starts-at {
    color: #b8c4d0;
}

/* Winning notice */
[data-theme="dark"] .bc-winning-notice {
    background: #064e3b;
    border-color: #065f46;
    color: #a7f3d0;
}

/* Bid history table */
[data-theme="dark"] .bc-bid-history-table th {
    background: #162032;
    border-color: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .bc-bid-history-table td {
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .bc-bid-history-table tr:hover td {
    background: #1e293b;
}

/* Watchlist button */
[data-theme="dark"] .bc-watchlist-btn {
    border-color: #334155;
    color: #b8c4d0;
}
[data-theme="dark"] .bc-watchlist-btn:hover {
    border-color: #f87171;
    color: #f87171;
}
[data-theme="dark"] .bc-watchlist-btn.bc-watching {
    color: #f87171;
    border-color: #7f1d1d;
    background: #450a0a;
}

/* Condition badges */
[data-theme="dark"] .bc-condition-new {
    background: #1e3a5f;
    color: #93c5fd;
}
[data-theme="dark"] .bc-condition-used {
    background: #422006;
    color: #fcd34d;
}
[data-theme="dark"] .bc-condition-refurbished {
    background: #1e1b4b;
    color: #a5b4fc;
}
[data-theme="dark"] .bc-condition-for_parts {
    background: #450a0a;
    color: #fca5a5;
}

/* Proxy bidding */
[data-theme="dark"] .bc-proxy-label {
    color: #e2e8f0;
}
[data-theme="dark"] .bc-proxy-label small {
    color: #b8c4d0;
}

/* Price label on archive */
[data-theme="dark"] .bc-price-label {
    color: #b8c4d0;
}
