/* Auktions-Einzelseite CSS - Pixel-genaue Umsetzung */
:root {
    --primary-purple: #69439b;
    --accent-green: #41c35e;
    --dark-text: #333333;
    --light-text: #666666;
    --background: #ffffff;
    --light-background: #f8f8f8;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--dark-text);
}

.auction-page-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    padding-bottom: 80px; /* Genug Platz für die Sticky-Bar */
}

/* Hauptcontainer für das Auktionslayout */
.auction-main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Countdown-Styling wurde bereits in der Komponente angepasst */

/* Produktinfo-Styling */
.product-info {
    padding-right: 1.5rem;
}

.product-title {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 0.3rem;
    font-weight: 600;
    line-height: 1.2;
}

.product-uvp {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.product-specs {
    font-size: 1rem;
    color: var(--dark-text);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Aktueller Preis */
.current-price {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin: 1.5rem 0;
    transition: color 0.3s, transform 0.3s;
}

.price-updated {
    animation: price-pulse 1s ease-in-out;
}

@keyframes price-pulse {
    0% { transform: scale(1); color: var(--primary-purple); }
    50% { transform: scale(1.05); color: var(--accent-green); }
    100% { transform: scale(1); color: var(--primary-purple); }
}

/* Bieten-Button */
.bid-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* PIRI-BOT Styling */
.bot-container {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
}

.piri-bot-counter {
    background-color: var(--primary-purple);
    color: white;
    border-radius: 50px 0 0 50px;
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
}

.piri-bot-label {
    background-color: var(--primary-purple);
    color: white;
    border-radius: 0 50px 50px 0;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.help-icon {
    background-color: var(--primary-purple);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Verfügbare Gebote */
.bids-remaining {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    text-align: center;
    transition: color 0.3s, transform 0.3s;
}

.bids-updated {
    animation: bids-highlight 1s ease-in-out;
}

@keyframes bids-highlight {
    0% { transform: scale(1); color: #666; }
    50% { transform: scale(1.05); color: #69439b; }
    100% { transform: scale(1); color: #666; }
}

/* Produktbild-Bereich */
.product-image-container {
    position: relative;
}

.brand-tag {
    position: absolute;
    top: 20px;
    right: -10px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    z-index: 10;
}

@media (max-width: 768px) {
    .brand-tag {
        position: absolute;      /* oder relative */
        right: 10px;
        top: auto;
        margin-bottom: 8px;    /* wenn du etwas Abstand brauchst */
    }
}

.main-product-image {
    width: 100%;
    height: 240px;
    border-radius: 8px;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

/* Detailbereiche */
.details-sections {
    margin-top: 2rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.product-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* Auktionsdetails und Verlauf */
.auction-details {
    margin-bottom: 2rem;
}

.auction-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 1.2rem;
    column-gap: 1rem;
    margin-bottom: 1rem;
}

.detail-label {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.detail-value {
    font-size: 1rem;
    color: #333;
}

.shipping-providers {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.shipping-provider-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.shipping-logo {
    height: 1.5rem;
    object-fit: contain;
}

.details-divider {
    height: 3px;
    background-color: #41c35e;
    margin: 1.5rem 0;
    width: 100%;
}

/* Auktionsverlauf */
.auction-history {
    margin-bottom: 2rem;
}

.bid-history-table {
    width: 100%;
    border-spacing: 0;
}

.bid-row {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.5fr 0.8fr 0.4fr;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.bid-date, .bid-time, .bid-user, .bid-amount {
    font-size: 0.9rem;
    color: #333;
}

.bid-amount {
    font-weight: 600;
}

.bid-type {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-icon, .bot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon svg, .bot-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Media Queries für Responsiveness */
@media (max-width: 768px) {
    .auction-main-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-info {
        padding-right: 0;
        order: 2;
    }

    .product-image-container {
        order: 1;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 2.2rem;
        margin: 1rem 0;
    }

    .main-product-image {
        max-height: 240px;
    }

    .auction-details-grid {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    .bid-row {
        grid-template-columns: 1fr 1fr 1.5fr 1fr 0.5fr;
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .auction-page-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-uvp {
        font-size: 1rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .piri-bot-counter, .piri-bot-label {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .help-icon {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .bid-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 0.25rem;
    }

    .bid-date, .bid-time {
        font-size: 0.8rem;
    }

    .bid-user {
        grid-column: 1 / span 2;
    }
}
