/**
 * Styles personnalisés pour l'index.php
 * Amélioration de la section des enchères en cours
 * Version: 1.1 - Simplifiée
 */

/* === SECTION ENCHÈRES EN COURS === */
.current-auctions {
    background: linear-gradient(135deg, #1a1c22, #2a2a2a);
    padding: 4rem 0;
    position: relative;
    overflow: visible !important;
    min-height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 2rem;
}

.current-auctions .section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.current-auctions .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.current-auctions .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 2px;
}

.current-auctions .view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #FFD700;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.current-auctions .view-all-button:hover {
    background: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* === GRILLE CÔTE À CÔTE === */
.auctions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem 2rem 2rem;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* === CARTES D'ENCHÈRES === */
.auction-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px;
    overflow: visible !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px;
    margin-bottom: 1rem;
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.auction-card:hover::before {
    opacity: 1;
}

.auction-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #FFD700;
}

.auction-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: visible !important;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px 15px 0 0;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.auction-card:hover .auction-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* === BADGES === */
.condition-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.condition-badge i {
    font-size: 0.9rem;
}

/* === INFORMATIONS === */
.auction-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.auction-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-code {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === BOUTON === */
.bid-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #272829, #3a3b3c);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: visible !important;
    margin-top: auto;
    width: 100%;
    cursor: pointer;
}

.bid-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bid-button:hover::before {
    left: 100%;
}

.bid-button:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.bid-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.bid-button:hover i {
    transform: translateX(3px);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .auctions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .current-auctions {
        padding: 3rem 0;
    }
    
    .current-auctions .section-header h2 {
        font-size: 2rem;
    }
    
    .auctions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .auction-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .current-auctions .section-header h2 {
        font-size: 1.8rem;
    }
    
    .auction-info {
        padding: 1rem;
    }
    
    .auction-info h3 {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auction-card {
    animation: fadeInUp 0.6s ease-out;
}

.auction-card:nth-child(1) { animation-delay: 0.1s; }
.auction-card:nth-child(2) { animation-delay: 0.2s; }
.auction-card:nth-child(3) { animation-delay: 0.3s; }
.auction-card:nth-child(4) { animation-delay: 0.4s; }
.auction-card:nth-child(5) { animation-delay: 0.5s; }
.auction-card:nth-child(6) { animation-delay: 0.6s; }