/* === AUCTION LIVE FRAGMENT STYLES - FIXED HEADER ALIGNMENT === */
/* Clean corner-based header layout with proper alignment */

.auction-live-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.live-auction-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* === STARTING PAGE HEADER - NO CHANGES === */
.clean-auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* LEFT SIDE: Back button + Auction details */
.header-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 60%;
}

.clean-back-button {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.clean-back-button:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clean-back-button:active {
    transform: translateY(0);
}

.auction-details-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 5px;
}

.auction-info-line {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
}

.auction-info-line:first-child {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.auction-info-line:last-child {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* RIGHT SIDE: Live Auction title (Starting Page) */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: 40%;
    text-align: right;
}

.live-auction-title {
    font-weight: 900;
    color: #0A66C2;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(10, 102, 194, 0.1);
    line-height: 1.2;
}

/* === LIVE PAGE HEADER - TWO ROW STRUCTURE === */
/* FIRST ROW: Back button + Live Auction title */
.live-page-header-first-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

/* LEFT: Back button */
.live-header-back {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.live-header-back:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.live-header-back:active {
    transform: translateY(0);
}

/* RIGHT: Live Auction title */
.live-auction-title-compact {
    font-weight: 900;
    color: #0A66C2;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(10, 102, 194, 0.1);
}

/* SECOND ROW: Chit details + Timer */
.live-page-header-second-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* LEFT: Chit details */
.live-chit-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chit-info-line {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.3;
}

.chit-info-line:first-child {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

/* RIGHT: Timer */
.live-header-timer {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
    border: 2px solid #60a5fa;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.3rem;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.live-header-timer.warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fca5a5 100%);
    color: #dc2626;
    border-color: #f87171;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* === MAIN CONTENT AREA === */
.live-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 180px; /* Space for sticky bid bar */
}

/* CURRENT BIDDER CARD */
.current-bidder-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.current-bidder-card.you-leading {
    border: 2px solid #86efac;
    background: linear-gradient(135deg, #f0f9ff 0%, #bbf7d0 100%);
}

.current-bidder-card.you-leading::before {
    content: 'YOU ARE LEADING';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.current-bid-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.bid-title {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.bid-amount-large {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0A66C2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(10, 102, 194, 0.1);
}

.current-bidder-info {
    text-align: center;
}

.bidder-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.bidder-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.you-badge-large {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* MERGED BIDS SECTION */
.bids-section {
    background: white;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header i {
    color: #f59e0b;
    font-size: 1.3rem;
}

.section-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FLOOR PRICE INFO */
.floor-price-info {
    background: #f8fafc;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floor-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.floor-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1e293b;
}

/* BIDS LIST */
.bids-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bid-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
}

.bid-item.your-bid {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.bid-item.leading-bid {
    background: #fffbeb;
    border-color: #fde68a;
    border-left: 4px solid #f59e0b;
}

.bid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.bid-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.bid-item:nth-child(1) .bid-rank {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #92400e;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.bid-item:nth-child(2) .bid-rank {
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
    color: #4b5563;
    box-shadow: 0 4px 10px rgba(107, 114, 128, 0.2);
}

.bid-item:nth-child(3) .bid-rank {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #991b1b;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.bid-details {
    flex: 1;
}

.bidder-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.you-badge {
    background: #10b981;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.leader-badge {
    background: #f59e0b;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.bid-time {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.bid-amount {
    font-weight: 900;
    color: #0A66C2;
    font-size: 1.1rem;
    min-width: 110px;
    text-align: right;
}

.no-bids-message {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.no-bids-message i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* === STICKY BIDDING BAR === */
.sticky-bid-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 15px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.bid-hint {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 8px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.quick-bid-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.quick-bid-btn {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    color: #0369a1;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-bid-btn:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
}

.quick-bid-btn:active {
    transform: translateY(-1px);
}

.custom-bid-input {
    display: flex;
    gap: 12px;
}

.custom-bid-field {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    background: white;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-bid-field:focus {
    outline: none;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.custom-bid-field::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.place-bid-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.place-bid-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.place-bid-btn:active {
    transform: translateY(-1px);
}

/* === COUNTDOWN AND RESULTS SCREENS === */
.countdown-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.countdown-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

.countdown-heading {
    margin: 0 0 15px;
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 800;
}

.countdown-time {
    font-size: 3rem;
    font-weight: 900;
    color: #d97706;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.countdown-message {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 300px;
    line-height: 1.5;
}

.auction-details-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #e2e8f0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

/* RESULTS SCREEN */
.results-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.results-icon.winner {
    color: #f59e0b;
}

.results-icon:not(.winner) {
    color: #64748b;
}

.results-heading {
    margin: 0 0 30px;
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 800;
}

.results-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    width: 100%;
    max-width: 320px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-value {
    color: #1e293b;
    font-weight: 700;
    text-align: right;
}

.winner-name {
    color: #10b981;
}

.final-price {
    color: #0A66C2;
    font-size: 1.1rem;
}

.winner-note {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 15px 20px;
    color: #0369a1;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.winner-note i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.results-actions {
    width: 100%;
    max-width: 320px;
}

.action-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #0A66C2;
    color: white;
}

.action-btn.primary:hover {
    background: #1e78d6;
    transform: translateY(-2px);
}

/* === ERROR SCREEN === */
.error-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    color: #64748b;
    margin-bottom: 20px;
}

.error-title {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.error-message {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 300px;
    line-height: 1.5;
}

.error-btn {
    background: #0A66C2;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background: #1e78d6;
    transform: translateY(-2px);
}

/* === NOTIFICATIONS === */
.bid-notification,
.start-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #0A66C2;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.start-notification {
    border-left-color: #10b981;
}

.bid-notification.show,
.start-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content i {
    font-size: 1.5rem;
    color: #0A66C2;
}

.start-notification .notification-content i {
    color: #10b981;
}

.notification-text {
    font-size: 0.9rem;
    color: #1e293b;
}

/* Add this to auction-live-fragment.css - REPLACE the responsive section */

/* === RESPONSIVE ADJUSTMENTS - FIXED === */
@media (max-width: 768px) {
    /* Starting Page Header - Prevent vertical stacking */
    .clean-auction-header {
        flex-direction: row !important; /* Force horizontal */
        gap: 10px !important;
        padding: 15px 15px !important;
    }
    
    .header-left {
        max-width: 50% !important;
        width: auto !important;
    }
    
    .header-right {
        max-width: 50% !important;
        width: auto !important;
        align-items: flex-end !important;
        text-align: right !important;
    }
    
    .clean-back-button {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .live-auction-title {
        font-size: 1.2rem !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    
    /* Live Page Header - Keep horizontal on mobile */
    .live-page-header-first-row {
        flex-direction: row !important;
        gap: 10px !important;
        padding: 15px 15px !important;
    }
    
    .live-page-header-second-row {
        flex-direction: row !important;
        gap: 10px !important;
        padding: 12px 15px !important;
    }
    
    .live-header-back {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .live-auction-title-compact {
        font-size: 1.2rem !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
    
    .live-header-timer {
        font-size: 1.2rem !important;
        padding: 8px 16px !important;
        min-width: 90px !important;
    }
    
    /* Main Content */
    .bid-amount-large {
        font-size: 2rem !important;
    }
    
    .bid-amount {
        min-width: 90px !important;
        font-size: 1rem !important;
    }
    
    .quick-bid-buttons {
        flex-direction: column !important;
    }
    
    .bid-rank {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        margin-right: 12px !important;
    }
}