.auction-image-container {
    position: relative;
}

.title {
    color: #ffffff;
}

.countdown-section {
    position: absolute;
    left: 50%;
    top: 160px;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow:0 -31px 70px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: 90%;
}

.auction-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow:0 -31px 70px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}


.auction-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.auction-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card-modern:hover .auction-image-container img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.favorite-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.favorite-icon:hover {
    background: #e74c3c;
    color: white;
}

.time-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.status-badge {
    position: absolute;
    top: 50px;
    right: 15px;
    background: #b97b24;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.auction-title-overlay {
    position: absolute;
    bottom: 50px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.auction-title-overlay h4 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.auction-card-content {
    padding: 20px;
    margin-top: 45px;
}

.auction-info-row {
    text-align: center;
    margin-bottom: 20px;
}

.info-item {
    display: inline-block;
}

.info-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.info-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.countdown-section {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
    /* gap: 25px; */
}

.time-unit {
    text-align: center;
    flex: 1;
    border-inline-end: 1px solid rgb(215, 219, 215);
}

.time-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50 !important;
    border-radius: 8px;
    /* padding: 8px; */
    /* margin-bottom: 5px; */
    min-width: 45px;
}

.time-label {
    font-size: 12px;
    color: #7f8c8d;
}

.auction-bottom-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.auction-detail {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
}

.auction-detail i {
    margin-left: 8px;
    color: #b97a2a;
}

.auction-dates {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.auction-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    align-items: center;
}

.main_tim {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-number,
.date-label {
    display: block;
    font-size: 14px;
    color: #2c3e50;
    font-weight: bold;
}

.date-time {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.auction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.details-btn {
    background: #b97a2a;
    color: white;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
    width: 100%;
    max-width: 190px;
}

.details-btn:hover {
    background: #b97a2a;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.platform-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.platform-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ecf0f1;
}

.platform-name {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: bold;
}

/* حالة انتهاء الوقت */
.countdown-expired .time-number {
    /* background: #e74c3c; */
    color: white;
    animation: none;
}

.countdown-expired .time-label {
    color: #e74c3c;
}

.countdown-expired .countdown-section {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
}

/* أنيميشن للعد التنازلي */
.time-number {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* تحسينات للهواتف المحمولة */
@media (max-width: 768px) {
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .time-unit {
        flex: 0 0 48%;
        margin-bottom: 10px;
    }

    .auction-bottom-info {
        flex-direction: column;
        gap: 8px;
    }

    .auction-footer {
        flex-direction: column;
        gap: 15px;
    }

    .details-btn {
        width: 100%;
    }
}

/* تحسينات للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .auction-card-modern {
        background: #fff;
        /* color: white; */
    }

    /*
    .time-number {
        background: #2c3e50;
        color: white;
    } */

    .info-number {
        color: white;
    }
}


.date-item span {
    color: #2c3e50;
    font-weight: bold;
    font-size: 12px;
    display: block;
}


.main_tim .name_prod {
    color: #2c3e50;
    font-weight: bold;
    font-size: 12px;
    display: block;
}

.main_tim .numbers{
    color: #2c3e50;
    font-weight: bold;
    font-size: 12px;
    display: block;
}


.main_tim .name_prod{
     color: #2c3e50;
    font-weight: bold;
    font-size: 12px;
    display: block;
}
