/* Auction Detail Page Styles */

:root {
    --primary-color: #2a2a2a;
    --secondary-color: #5e4b3a;
    --accent-color: #a67c52;
    --light-color: #f8f5f2;
    --dark-color: #1a1a1a;
    --text-color: #333;
    --text-light: #777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--accent-color);
    font-weight: 600;
}

/* Upper Section Styles */
.auction-upper-section {
    padding: 3rem 0;
    background-color: white;
}

.auction-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Image Gallery Styles */
.image-gallery {
    display: flex;
    gap: 1rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.main-image {
    flex-grow: 1;
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-zoom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-zoom:hover {
    background-color: white;
}

/* Auction Info Styles */
.auction-info {
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.category-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-tag a {
    color: white;
    text-decoration: none;
}

.auction-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.auction-meta {
    margin-bottom: 1.5rem;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.time-item {
    display: flex;
    flex-direction: column;
}

.time-item .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.time-item .value {
    font-weight: 600;
    color: var(--text-color);
}

.countdown-timer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.countdown-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.countdown {
    display: flex;
    justify-content: space-between;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit .number {
    font-size: 2rem;
    font-weight: 700;
}

.time-unit .unit {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.price-info {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-item .label {
    color: var(--text-light);
}

.price-item .value {
    font-weight: 600;
    color: var(--text-color);
}

.price-item.current-bid .value {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.bidding-section {
    margin-bottom: 1.5rem;
}

.bid-input-group {
    margin-bottom: 1rem;
}

.bid-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.bid-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.bid-input .currency {
    background-color: #f0f0f0;
    padding: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.bid-input input {
    flex-grow: 1;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

.bid-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bid-btn:hover {
    background-color: var(--secondary-color);
}

.auction-notice {
    text-align: center;
}

.notice-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.notice-link:hover {
    color: var(--accent-color);
}

/* Lower Section Styles */
.auction-lower-section {
    padding: 3rem 0;
    background-color: var(--light-color);
}

.artwork-description h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.description-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.description-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.description-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.provenance-list, .exhibition-list {
    list-style-type: none;
    padding-left: 0;
}

.provenance-list li, .exhibition-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.provenance-list li:before, .exhibition-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.artwork-details {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.artwork-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.details-table {
    width: 100%;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.detail-label {
    color: var(--text-light);
}

.detail-value {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .auction-content-grid {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .auction-content-grid {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        flex-direction: column-reverse;
        margin-bottom: 2rem;
    }

    .thumbnail-list {
        flex-direction: row;
        justify-content: center;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    
    .thumbnail {
        flex-shrink: 0;
    }

    .description-grid {
        grid-template-columns: 1fr;
    }
    
    .artwork-details {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .auction-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .time-info {
        flex-direction: column;
        gap: 0.8rem;
    }

    .time-item {
        margin-bottom: 0;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .time-unit {
        width: calc(50% - 0.25rem);
        margin-bottom: 0;
    }
    
    .time-unit .number {
        font-size: 1.5rem;
    }
    
    .price-info {
        font-size: 0.9rem;
    }
    
    .main-image img {
        max-height: 400px;
        object-fit: contain;
    }
}

@media (max-width: 576px) {
    .breadcrumb-container {
        display: none;
    }

    .auction-upper-section, .auction-lower-section {
        padding: 1.5rem 0;
    }

    .auction-title {
        font-size: 1.5rem;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    .price-item.current-bid .value {
        font-size: 1rem;
    }
    
    .countdown-title {
        font-size: 1rem;
    }
    
    .time-unit {
        width: calc(50% - 0.25rem);
    }
    
    .time-unit .number {
        font-size: 1.3rem;
    }
    
    .time-unit .unit {
        font-size: 0.7rem;
    }
    
    .bid-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .description-text h3 {
        font-size: 1.2rem;
    }
    
    .artwork-details h3 {
        font-size: 1.2rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.3rem;
        padding-bottom: 0.8rem;
        margin-bottom: 0.8rem;
    }
}

/* Additional Utility Styles */
.main-image {
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    transition: opacity 0.3s ease;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading state for images */
.main-image img[src=""] {
    min-height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus styles for accessibility */
.thumbnail:focus,
.bid-btn:focus,
.bid-input input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .side-service,
    .breadcrumb-container,
    .bidding-section,
    .countdown-timer {
        display: none;
    }
    
    .auction-content-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        page-break-inside: avoid;
    }
}