/* Dedicated Page Header */
.wk-auctions-page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.wk-auctions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

@media (min-width: 768px) {
    .wk-auctions-header {
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .wk-auctions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.wk-auctions-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Modal */
.wk-modal-hidden {
    display: none;
}
#wk-how-it-works-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.wk-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.wk-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.wk-modal-close:hover {
    color: #333;
}
.wk-modal-content h3 {
    margin-top: 0;
    color: #f39c12; /* Brand orange */
}
.wk-modal-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Grid & Cards */
.wk-auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.wk-auction-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.wk-auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.wk-auction-img-wrapper {
    display: block;
    width: 100%;
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.wk-auction-img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.wk-auction-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wk-auction-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-decoration: none;
    line-height: 1.3;
}
.wk-auction-title:hover {
    color: #f39c12;
}

.wk-auction-stats {
    display: flex;
    justify-content: space-between;
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.wk-stat {
    display: flex;
    flex-direction: column;
}

.wk-stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.wk-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
}

.wk-bidder {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.wk-auction-footer {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.wk-auction-footer i {
    font-size: 1.1rem;
    margin-right: 5px;
    vertical-align: middle;
}

.wk-bid-action {
    display: flex;
    margin-top: auto;
    gap: 10px;
}

.wk-input-group {
    position: relative;
    flex: 1;
}

.wk-currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: bold;
}

.wk-bid-input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    transition: border-color 0.2s;
}

.wk-bid-input:focus {
    outline: none;
    border-color: #f39c12;
}

.wk-btn-bid {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.wk-btn-bid:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

.wk-no-auctions {
    text-align: center;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
    color: #666;
    font-size: 1.1rem;
}

/* History Modal Additions */
.wk-stat-clickable {
    cursor: pointer;
    transition: background-color 0.2s;
}
.wk-stat-clickable:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.wk-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.wk-history-table th, .wk-history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.wk-history-table th {
    color: #666;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Homepage Widget Carousel (Scroll Snap) */
#wk-auctions-widget .wk-auctions-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px; /* Evite de couper les ombres */
    scroll-padding-left: 15px;
    scroll-padding-right: 15px;
    gap: 20px;
    -webkit-overflow-scrolling: touch; /* Defilement fluide sur iOS */
}

/* Personnalisation de la barre de defilement pour le carrousel */
#wk-auctions-widget .wk-auctions-grid::-webkit-scrollbar {
    height: 8px;
}

#wk-auctions-widget .wk-auctions-grid::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

#wk-auctions-widget .wk-auctions-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#wk-auctions-widget .wk-auctions-grid::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

#wk-auctions-widget .wk-auction-card {
    flex: 0 0 280px; /* Largeur fixe pour les cartes en ligne */
    scroll-snap-align: start;
}

#wk-auctions-widget {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

