/**
 * Banner Auction System Styles
 * Promotional banner display on main page
 */

.promotional-banner {
    width: 100%;
    margin: 30px 0;
    animation: fadeInUp 0.6s ease-out;
}

.banner-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.banner-link:hover {
    text-decoration: none;
}

.banner-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 220px;
    min-height: 180px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.banner-link:hover .banner-image {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.banner-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.5s ease-out 0.3s both;
}

.banner-text-overlay p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.banner-info {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 10px;
}

.banner-info > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.banner-info span {
    font-size: 12px;
}

.banner-info span:first-child {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.banner-info span:nth-child(2) {
    color: #555;
    font-weight: 600;
}

.banner-info > div:last-child {
    font-size: 11px;
    color: #aaa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .promotional-banner {
        margin: 20px 0;
    }

    .banner-image {
        max-height: 180px;
        min-height: 150px;
        border-radius: 12px;
    }

    .banner-text-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 10px 15px;
        border-radius: 10px;
    }

    .banner-text-overlay p {
        font-size: 16px;
    }

    .banner-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .banner-info > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .promotional-banner {
        margin: 15px 0;
    }

    .banner-image {
        max-height: 150px;
        min-height: 120px;
        border-radius: 10px;
    }

    .banner-text-overlay {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .banner-text-overlay p {
        font-size: 14px;
    }

    .banner-info span:first-child {
        font-size: 10px;
    }

    .banner-info span:nth-child(2) {
        font-size: 11px;
    }
}

/* Print styles - hide banner when printing */
@media print {
    .promotional-banner {
        display: none !important;
    }
}
