/* Auction List Page Styles */

.auction-list-container,
.auction-list-container *,
.auction-list-container *::before,
.auction-list-container *::after {
    box-sizing: border-box;
}

.auction-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: calc(100vh - 80px);
}

/* Page Header */
.auction-list-header {
    margin-bottom: 32px;
}

.page-title-section {
    margin-top: 16px;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.page-subtitle {
    font-family: 'SFProText', sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Section Styles */
.auction-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.active {
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

.status-dot.upcoming {
    background: #F59E0B;
}

.status-dot.ended {
    background: #9CA3AF;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
    }
}

.section-count {
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Auction Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.auction-grid.past {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Auction Card */
.auction-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.auction-card.active {
    border-color: #10B981;
}

.auction-card.active:hover {
    border-color: #059669;
}

.auction-card.upcoming {
    opacity: 0.9;
}

.auction-card.ended {
    opacity: 0.7;
}

.auction-card.ended:hover {
    opacity: 0.85;
}

/* Card Image */
.auction-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image .material-icons-outlined {
    font-size: 48px;
    color: #9ca3af;
}

/* Status Badges */
.auction-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'SFProText', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auction-status-badge.live {
    background: #10B981;
    color: #fff;
}

.auction-status-badge.upcoming {
    background: #F59E0B;
    color: #fff;
}

.auction-status-badge.upcoming .material-icons-outlined {
    font-size: 14px;
}

.auction-status-badge.ended {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.time-remaining-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    color: #fff;
    font-family: 'SFProText', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.time-remaining-badge .material-icons-outlined {
    font-size: 14px;
}

.time-remaining-badge.upcoming {
    background: rgba(245, 158, 11, 0.9);
}

/* Card Content */
.auction-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.landmark-info {
    margin-bottom: 12px;
    overflow: hidden;
}

.landmark-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landmark-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.landmark-location .material-icons-outlined {
    font-size: 16px;
    color: #EA794C;
}

/* Bid Info */
.bid-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
}

.current-bid, .starting-bid, .winning-bid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bid-label {
    font-family: 'SFProText', sans-serif;
    font-size: 12px;
    color: #6b7280;
}

.bid-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #EA794C;
}

.bid-amount small {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.bidder-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    color: #6b7280;
}

.bidder-count .material-icons-outlined {
    font-size: 16px;
}

/* Card Footer */
.auction-card-footer {
    padding-top: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.view-auction-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #EA794C;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.auction-card:hover .view-auction-btn {
    background: #d9683a;
}

.notify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #EA794C;
    border: 2px solid #EA794C;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.notify-btn:hover {
    background: #FEF3EE;
}

.notify-btn.notified {
    background: #EA794C;
    color: #fff;
}

.notify-btn .material-icons-outlined {
    font-size: 18px;
}

/* Winner Info */
.winner-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
}

.winner-label {
    color: #6b7280;
}

.winner-name {
    color: #111827;
    font-weight: 600;
}

.ended-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'SFProText', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.ended-time .material-icons-outlined {
    font-size: 14px;
}

/* View Details Button for Past Auctions */
.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: auto;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-family: 'SFProText', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.view-details-btn .material-icons-outlined {
    font-size: 16px;
    flex-shrink: 0;
}

.auction-card.ended:hover .view-details-btn {
    background: #EA794C;
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.empty-state h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-family: 'SFProText', sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.back-home-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #EA794C;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.back-home-btn:hover {
    background: #d9683a;
}

/* Quick Links */
.quick-links {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: #EA794C;
    box-shadow: 0 4px 12px rgba(234, 121, 76, 0.1);
}

.quick-link-card > .material-icons-outlined {
    font-size: 32px;
    color: #EA794C;
}

.quick-link-content {
    flex: 1;
}

.quick-link-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.quick-link-content p {
    font-family: 'SFProText', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.quick-link-card .arrow {
    font-size: 24px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.quick-link-card:hover .arrow {
    transform: translateX(4px);
    color: #EA794C;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auction-list-container {
        padding: 16px 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .auction-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auction-card-image {
        height: 160px;
    }

    .landmark-name {
        font-size: 16px;
    }

    .bid-amount {
        font-size: 18px;
    }

    .quick-link-card {
        padding: 16px;
    }
}

@media (min-width: 1024px) {
    .auction-list-container {
        padding: 32px;
    }

    .auction-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .auction-grid.past {
        grid-template-columns: repeat(4, 1fr);
    }
}
