/**
 * Notifications and Modals Styles
 * For ascending auction interactions
 */

/* ========================================
   NOTIFICATIONS
   ======================================== */
.bashere-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease-out;
    max-width: 350px;
}

.bashere-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.bashere-notification-success {
    border-left: 4px solid #10B981;
}

.bashere-notification-error {
    border-left: 4px solid #EF4444;
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.bashere-notification-success .notification-icon {
    background: #D1FAE5;
    color: #065F46;
}

.bashere-notification-error .notification-icon {
    background: #FEE2E2;
    color: #991B1B;
}

.notification-message {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0F1419;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .bashere-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ========================================
   MODALS
   ======================================== */
.ascending-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ascending-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ascending-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #6B7280;
    transition: color 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ascending-modal-close:hover {
    color: #EF4444;
    background: #FEE2E2;
}

.ascending-modal-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #0F1419;
}

.ascending-modal-content p {
    color: #6B7280;
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
}

.modal-input-group {
    margin-bottom: 1.5rem;
}

.modal-input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0F1419;
    font-size: 0.9375rem;
}

.modal-input-group small {
    display: block;
    color: #6B7280;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.ascending-custom-bid-input,
.ascending-max-bid-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ascending-custom-bid-input:focus,
.ascending-max-bid-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ascending-btn-submit-custom {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .ascending-modal-content {
        padding: 1.5rem;
    }
    
    .ascending-modal-content h3 {
        font-size: 1.5rem;
    }
    
    .ascending-custom-bid-input,
    .ascending-max-bid-input {
        font-size: 1.25rem;
        padding: 0.875rem;
    }
}

/* ========================================
   LOADING SPINNER OVERLAY
   ======================================== */
.bashere-ascending-card.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bashere-ascending-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #E5E7EB;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   BID HISTORY MODAL (Optional)
   ======================================== */
.bid-history-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bid-history-modal.show {
    display: flex;
}

.bid-history-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.bid-history-item:last-child {
    border-bottom: none;
}

.bid-history-item.winning {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
    border-left: 3px solid #10B981;
}

.bid-history-item.proxy {
    font-style: italic;
    opacity: 0.8;
}

.bid-history-bidder {
    font-weight: 600;
    color: #0F1419;
}

.bid-history-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #667eea;
}

.bid-history-time {
    font-size: 0.8125rem;
    color: #6B7280;
}

/* ========================================
   TOOLTIPS
   ======================================== */
.ascending-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.ascending-tooltip-text {
    visibility: hidden;
    background-color: #0F1419;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.ascending-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0F1419 transparent transparent transparent;
}

.ascending-tooltip:hover .ascending-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   RESPONSIVE FIXES
   ======================================== */
@media (max-width: 480px) {
    .bid-history-content {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .bid-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
