/**
 * Styles spécifiques pour les enchères TugoCard
 * Version: 1.0
 */

/* === SECTION ENCHÈRES EN COURS === */
.current-auctions {
    background: linear-gradient(135deg, #1a1c22, #2a2a2a);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.current-auctions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.current-auctions .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.current-auctions .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.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 D'ENCHÈRES CÔTE À CÔTE === */
.auctions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* === CARTES D'ENCHÈRES AMÉLIORÉES === */
.auction-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    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);
}

.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: hidden;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.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 AMÉLIORÉS === */
.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;
}

.timer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === INFORMATIONS D'ENCHÈRE === */
.auction-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.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;
    -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 D'ACTION === */
.bid-button {
    display: flex;
    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: hidden;
}

.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 .container {
        padding: 0 1rem;
    }
    
    .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; }

/* === EFFETS SPÉCIAUX === */
.auction-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.auction-card:hover::after {
    opacity: 1;
}

/* === AMÉLIORATION DU HOVER === */
.auction-card:hover .condition-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.auction-card:hover .timer-badge {
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a1a;
    transform: scale(1.05);
}
