/* Blind Auction Styles */

:root {
    --auction-orange: #ff6b35;
    --auction-orange-light: #ff8c42;
    --auction-timer-gold: #e3a01b;
    --auction-gap-small: 6px;
    --auction-gap-medium: 12px;
}

/* ==========================================
   Game Vault / Auction Section Banners
   ========================================== */

.gv-section-banner {
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.9));
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
}

.gv-section-banner__title {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin: 0;
}

.gv-section-banner__desc {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 0;
    padding: 0 20px;
}

.gv-section-banner__status {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.gv-section-banner__status--open {
    color: #4CAF50;
}

.gv-section-banner__status--closed {
    color: var(--auction-timer-gold);
}

/* Auction game container */
.auction-game {
    position: relative;
}

/* Auction badge */
.auction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, var(--auction-orange), var(--auction-orange-light));
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
}

.auction-timer-base {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.auction-timer {
    color: white;
    border: 1px solid rgba(227, 160, 27, 0.3);
    min-width: 100px;
}

.auction-timer .time-remaining {
    font-family: 'Courier New', monospace;
    color: var(--auction-timer-gold);
    font-size: 16px;
    letter-spacing: 1px;
}

.auction-ended {
    color: var(--auction-timer-gold);
}

.auction-ended-text {
    color: var(--auction-timer-gold);
    font-weight: bold;
}

.auction-game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--auction-gap-small);
    margin-top: 10px;
    padding: 10px 8px;
    min-height: 50px;
}

.auction-status-text {
    font-size: 13px;
    font-weight: bold;
    color: var(--auction-timer-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.4;
}

.auction-game-info .tier-info {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

#auction-bid-modal .auction-info {
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

#auction-bid-modal .auction-info strong {
    color: var(--modal-dell-blue, #6ec7fb);
}

#auction-bid-modal .bid-form {
    display: flex;
    flex-direction: column;
    gap: var(--auction-gap-medium);
}

#auction-bid-modal .bid-form label {
    font-weight: bold;
    color: white;
}

#auction-bid-modal .bid-form input[type="number"] {
    padding: 12px;
    border: 2px solid #323232;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    background: #252525;
    color: white;
}

#auction-bid-modal .bid-form input[type="number"]:focus {
    outline: none;
    border-color: var(--modal-dell-blue, #6ec7fb);
}

#auction-bid-modal .bid-info {
    font-size: 12px;
    color: #999;
}

#auction-bid-modal .bid-info small {
    background: rgba(227, 160, 27, 0.2);
    color: var(--auction-timer-gold);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

#auction-bid-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--auction-gap-medium);
    padding: 15px;
}

#auction-bid-modal .product-cancel {
    background-color: transparent;
    border: 2px solid var(--modal-dell-blue, #6ec7fb);
    color: var(--modal-dell-blue, #6ec7fb);
    min-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

#auction-bid-modal .product-cancel:hover,
#auction-bid-modal .product-cancel:focus {
    background-color: rgba(110, 199, 251, 0.1);
    border-color: var(--modal-dell-blue-hover, #579ec7);
    color: var(--modal-dell-blue-hover, #579ec7);
}

#auction-bid-modal .product-buy-confirm {
    background-color: var(--modal-dell-blue, #6ec7fb);
    border: 2px solid var(--modal-dell-blue, #6ec7fb);
    color: white;
    font-weight: bold;
    min-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

#auction-bid-modal .product-buy-confirm:hover,
#auction-bid-modal .product-buy-confirm:focus {
    background-color: var(--modal-dell-blue-hover, #579ec7);
    border-color: var(--modal-dell-blue-hover, #579ec7);
    color: white;
}

#auction-bid-modal .product-buy-confirm:disabled {
    background-color: #555;
    border-color: #555;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .auction-badge {
        font-size: 10px;
        padding: 6px 10px;
    }

    .auction-timer,
    .auction-ended {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Bid Placed Status */
.auction-status-text.bid-placed {
    color: #4CAF50;
    font-weight: bold;
}

/* ==========================================
   Game Vault Product Info Section (Shared)
   ========================================== */

.gamevault-product-info {
    padding: 0 10px;
}

.gamevault-product-info .product-select-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.gamevault-product-info .product-select-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.gamevault-product-info .product-select-url {
    color: var(--modal-dell-blue, #6ec7fb);
    word-break: break-all;
    font-size: 13px;
}

.gamevault-product-info .product-select-url:hover {
    color: var(--modal-dell-blue-hover, #579ec7);
}

.gamevault-product-info .text-muted {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   Auction Bid Modal States
   ========================================== */

/* State containers */
.auction-state {
    padding: 10px 0;
}

.auction-state--hidden {
    display: none !important;
}

/* Bid Confirmation Box */
.bid-confirmation-box {
    padding: 20px;
    background: rgba(227, 160, 27, 0.1);
    border: 1px solid var(--auction-timer-gold);
    border-radius: 8px;
}

.bid-confirmation-box h4 {
    color: white;
}

.bid-confirmation-box .lead {
    color: #ccc;
    font-size: 18px;
}

.bid-confirmation-box #confirm-bid-amount {
    font-size: 24px;
    color: var(--auction-timer-gold) !important;
}

.bid-confirmation-box .alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Already Bid Box */
.already-bid-box {
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
}

.already-bid-box h4 {
    color: white;
    margin-bottom: 10px;
}

.already-bid-box .lead {
    color: #ccc;
    font-size: 18px;
}

.already-bid-box #user-bid-amount {
    font-size: 24px;
    color: #4CAF50 !important;
}

/* Footer Buttons */
.auction-footer {
    display: flex;
    justify-content: space-around;
}

.auction-footer--hidden {
    display: none !important;
}

.auction-footer--center {
    justify-content: center;
}

#back-to-bid-entry {
    background-color: transparent;
    border: 2px solid #666;
    color: #aaa;
    min-width: 100px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

#back-to-bid-entry:hover,
#back-to-bid-entry:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #888;
    color: #ccc;
}

/* Horizontal rule styling in modals */
#auction-bid-modal hr,
#auction-results-modal hr {
    border-color: #333;
    margin: 15px 0;
}

/* ==========================================
   Auction Results Modal Styles
   ========================================== */

#auction-results-modal .modal-content {
    background: #1a1a1a;
}

#auction-results-modal .modal-header {
    border-bottom-color: #333;
}

#auction-results-modal .auction-results-modal-header {
    color: white;
}

/* Loading State */
.auction-results-loading {
    color: #aaa;
}

.auction-results-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--auction-orange) !important;
}

/* Error State */
.auction-results-error {
    color: #aaa;
}

/* User Status Banner */
.auction-user-status {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.auction-user-status i {
    margin-right: 10px;
}

.auction-user-status.auction-status-won {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.auction-user-status.auction-status-lost {
    background: rgba(110, 199, 251, 0.1);
    border: 2px solid var(--modal-dell-blue, #6ec7fb);
    color: var(--modal-dell-blue, #6ec7fb);
}

/* Section Title */
.auction-section-title {
    color: white;
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

/* Bids List */
.auction-bids-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auction-bid-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.2s;
}

.auction-bid-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Medal styling for top 3 */
.auction-bid-item.medal-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.5);
}

.auction-bid-item.medal-1 .bid-position {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.auction-bid-item.medal-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    border-color: rgba(192, 192, 192, 0.5);
}

.auction-bid-item.medal-2 .bid-position {
    color: #C0C0C0;
}

.auction-bid-item.medal-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    border-color: rgba(205, 127, 50, 0.5);
}

.auction-bid-item.medal-3 .bid-position {
    color: #CD7F32;
}

/* User's bid highlight */
.auction-bid-item.user-bid {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.bid-position {
    font-weight: bold;
    font-size: 16px;
    color: #888;
    min-width: 50px;
}

.bid-amount {
    flex-grow: 1;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.bid-user-tag {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Bid Info */
.auction-user-bid-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #aaa;
}

.auction-user-bid-info strong {
    color: var(--auction-timer-gold);
}

/* Modal Footer */
#auction-results-modal .modal-footer {
    border-top-color: #333;
}

#auction-results-modal .modal-footer .btn {
    background-color: var(--modal-dell-blue, #6ec7fb);
    border: 2px solid var(--modal-dell-blue, #6ec7fb);
    color: white;
    font-weight: bold;
    min-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

#auction-results-modal .modal-footer .btn:hover,
#auction-results-modal .modal-footer .btn:focus {
    background-color: var(--modal-dell-blue-hover, #579ec7);
    border-color: var(--modal-dell-blue-hover, #579ec7);
}

/* Responsive */
@media (max-width: 576px) {
    .auction-bid-item {
        padding: 10px 12px;
    }

    .bid-position {
        font-size: 14px;
        min-width: 40px;
    }

    .bid-amount {
        font-size: 15px;
    }

    .bid-user-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}
