/**
 * Auction Notifications CSS
 * 
 * Styles for the auction notification system.
 */

/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
    max-width: 100%;
    pointer-events: none; /* Allow clicking through the container */
}

/* Notification */
.auction-notification {
    position: relative;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    overflow: hidden;
    pointer-events: auto; /* Re-enable pointer events for the notification itself */
}

/* Show animation */
.auction-notification.show {
    transform: translateX(0);
}

/* Notification types */
.auction-notification.bid,
.auction-notification.highBid {
    background-color: #1e7e34; /* Dark green background */
    color: white; /* White text */
    border-left: 5px solid #28a745;
}

.auction-notification.winning {
    background-color: white; /* White background */
    color: black !important; /* Black text */
    border: 2px solid #ffd700; /* Thin gold border */
}

.auction-notification.outbid {
    background-color: white; /* White background */
    color: black !important; /* Black text */
    border: 3px solid #ff0000; /* Bright red border */
    border-left: 5px solid #ff0000; /* Thicker left border for emphasis */
}

/* Ensure all text within outbid notifications is black */
.auction-notification.outbid .auction-notification-title,
.auction-notification.outbid .auction-notification-message {
    color: black !important;
}

/* Ensure all text within winning notifications is black */
.auction-notification.winning .auction-notification-title,
.auction-notification.winning .auction-notification-message {
    color: black !important;
}

/* Notification title */
.auction-notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    padding-right: 20px;
}

/* Notification message */
.auction-notification-message {
    margin: 0;
    font-size: 14px;
}

/* Close button */
.auction-notification-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Ensure close button is visible on all notification types */
.auction-notification.bid .auction-notification-close,
.auction-notification.highBid .auction-notification-close {
    color: rgba(255, 255, 255, 0.8);
}

/* Special styling for outbid notification close button (black on white) */
.auction-notification.outbid .auction-notification-close {
    color: rgba(0, 0, 0, 0.6);
}

/* Special styling for winning notification close button (black on white) */
.auction-notification.winning .auction-notification-close {
    color: rgba(0, 0, 0, 0.6);
}

.auction-notification-close:hover {
    color: #fff;
}

/* Hover state for outbid notification close button */
.auction-notification.outbid .auction-notification-close:hover {
    color: #000;
}

/* Hover state for winning notification close button */
.auction-notification.winning .auction-notification-close:hover {
    color: #000;
}

/* Bid status colors */
.current-bid.winning, .lot-price.winning {
    color: #28a745 !important;
    font-weight: bold !important;
}

.current-bid.outbid, .lot-price.outbid {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* Sound control button */
.sound-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
}

.sound-control i {
    font-size: 18px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #notification-container {
        width: calc(100% - 40px);
        top: 10px;
        right: 10px;
    }
    
    .sound-control {
        bottom: 10px;
        left: 10px;
    }
}