/* General Layout & Colors */
body {
    background-color: #f4f4f4; /* Light gray background for the entire page */
    color: #333; /* Darker text color for better readability */
}

.content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.auction-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Breadcrumbs (New Section for the Screenshot) */
.breadcrumbs {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.breadcrumbs a {
    text-decoration: none;
    color: #555;
}

.breadcrumbs a:hover {
    color: #007bff;
}

.breadcrumbs span {
    margin: 0 5px;
}

/* Header Section */
.auction-header {
    display: flex;
    gap: 20px;
    background-color: transparent; /* Changed to transparent */
    padding: 0; /* Removed padding */
    box-shadow: none; /* Removed shadow */
    align-items: flex-start; /* Align items to the start */
}

.auction-image-large {
    flex: 2; /* Adjust flex ratio */
    max-width: 70%; /* Give more space to the image */
    position: relative;
    border-radius: 8px; /* Added border-radius */
    overflow: hidden; /* Ensure rounded corners clip content */
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auction-image-large img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Added border-radius */
}

.image-count { /* Added for the "1 / 28" overlay */
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.auction-info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    border-radius: 8px;

}

.auction-title-heart { /* Wrapper for title and heart */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.auction-title-heart h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.heart-icon { /* Style for the heart icon */
    font-size: 24px;
    color: #ccc; /* Default color */
    cursor: pointer;
    transition: color 0.3s;
}

.heart-icon.active {
    color: #e74c3c; /* Red for active state */
}

.auction-info-card .info-row {
    margin-bottom: 8px;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
}

.auction-info-card .info-row i {
    color: #007bff; /* Icon color */
    margin-right: 8px;
    width: 18px; /* Fixed width for consistent alignment */
    text-align: center;
}

.auction-info-card .info-row b {
    font-weight: normal; /* Make bold text normal */
    color: #333; /* Slightly darker for label */
    margin-right: 5px;
}

.auction-info-card .countdown {
    background-color: transparent; /* Transparent background */
    color: #333; /* Darker text */
    font-size: 18px; /* Larger font size */
    font-weight: bold;
    padding: 0; /* Remove padding */
    margin-top: 5px;
}

.timer-label {
    font-size: 14px;
    color: #777;
    margin-top: 15px; /* Space from above content */
    display: block; /* Ensure it takes full width */
}

.finish-date { /* For the date below the countdown */
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    display: block;
}

/* Suggested Value Card (New Element) */
.suggested-value-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    position: relative;
    border: 1px solid #eee; /* Light border */
}

.suggested-value-card .badge-new { /* "Nowość" badge */
    position: absolute;
    top: -10px; /* Adjust as needed */
    right: 20px;
    background-color: #9b59b6; /* Purple color */
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}


.suggested-value-card p:first-of-type {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    font-weight: bold;
}

.suggested-value-card .price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.suggested-value-card p:last-of-type {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* Mini Basic Data Section */
.basic-data-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 10px;
    margin: 20px 0;
}

.basic-data-mini-grid .basic-data-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.basic-data-mini-grid .basic-data-item i {
    font-size: 18px; /* Slightly smaller icons for sidebar */
    color: #007bff;
    margin-bottom: 5px;
}

.basic-data-mini-grid .basic-data-item p {
    margin: 0;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    font-weight: bold;
}

.basic-data-mini-grid .basic-data-item span {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-top: 2px;
}


/* Basic Data Section */
.basic-data-section {
    margin-top: 40px; /* Space from the top section */
}

.basic-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 15px;
    margin-top: 15px;
}

.basic-data-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.basic-data-item i { /* Icon for basic data */
    font-size: 28px;
    color: #007bff;
    margin-bottom: 10px;
}

.basic-data-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.basic-data-item span {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* Details Section (Extended Data) */
.auction-details-container {
    display: flex;
    gap: 20px;
    margin-top: 40px; /* Space from basic data */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.details-column {
    flex: 1;
    min-width: 300px; /* Ensure columns don't get too narrow */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.details-column .section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee; /* Separator under title */
    padding-bottom: 10px;
}

.details-box .info-row {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
}

.details-box .info-row:last-of-type {
    border-bottom: none;
}

.details-box .info-row b {
    color: #333;
    font-weight: bold;
}

.details-box .info-row span {
    color: #555;
}

/* Gallery Styles (Adjusted for screenshot) */
.auction-gallery-container {
    flex: 2;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auction-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 553px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.gallery-thumbs img:hover {
    border-color: #007bff;
}

.auction-info-card {
    flex: 1;
    position: sticky;
    top: 20px;
}

.thumb-link {
    display: inline-block;
    flex-shrink: 0;
}

.thumb-link img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumb-link:hover img {
    opacity: 0.8;
}

/* Hide horizontal scrollbar but keep functionality */
.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* === DODANE STYLE DLA PRZYCISKÓW AKCJI === */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-action {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Style for Observe/Unobserve (Grey) */
.btn-observe, .btn-unobserve {
    background-color: #555; /* Silver/szary */
    color: #fff;
    border: 1px solid #555;
}

.btn-observe:hover, .btn-unobserve:hover {
    background-color: #555;
    transform: translateY(-1px);
}

/* Style for Make Offer (Red) */
.btn-offer {
    background-color: #007bff; /* Ciemnoczerwony */
    color: #fff;
    border: 1px solid #007bff;
}

.btn-offer:hover {
    background-color: #007bff;
    transform: translateY(-1px);
}

/* Style for disabled/tooltip buttons */
.btn-action[data-toggle="custom-tooltip"] {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
}
/* === KONIEC DODANYCH STYLÓW === */


/* Trans2 Button (for 'Przetłumacz') - keeping original button styles for compatibility */
.trans2-button {
    background-color: #e0e0e0; /* Light gray from screenshot */
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.trans2-button:hover {
    background-color: #d0d0d0;
}

.basic-data-list {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 15px;
}

.list-item i {
    font-size: 18px;
    color: #007bff; /* Kolor ikon */
    width: 25px;
    text-align: center;
}

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

.item-content p {
    margin: 0;
    font-size: 13px;
    color: #777; /* Szary label jak na screenie */
    line-height: 1.2;
}

.item-content span {
    font-size: 15px;
    color: #333; /* Ciemniejsza wartość */
    font-weight: 500;
}

/* Opcjonalnie: lekkie rozdzielenie przycisków akcji */
.action-buttons {
    margin-top: 15px;
}

.translate-section {
    width: 100%;
    margin-top: 20px;
    padding: 0 15px;
    clear: both; /* Prevents overlap with elements above */
    overflow: hidden; /* Clips any accidental leakage */
}

.translate-inner {
    float: right;
}

.translate-prompt {
    display: inline-block;
    margin-right: 15px;
}

.modal-offer-form {
    max-width:400px;
    margin:0 auto 0 auto;
}

.input-group {
    padding: 10px 0 10px 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .auction-header {
        flex-direction: column;
        align-items: center;
    }
    .auction-image-large {
        max-width: 100%; /* Full width on smaller screens */
    }
    .auction-info-card {
        width: 100%;
    }
    .basic-data-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .auction-details-container {
        flex-direction: column;
    }
    .details-column {
        min-width: unset; /* Remove min-width on very small screens */
        width: 100%;
    }

    .auction-gallery-container {
        max-width: 100%;
    }
        .translate-inner {
        float: none;      /* Removes the float that causes white space */
        text-align: center; 
        width: 100%;
    }
    
    .translate-prompt {
        margin-right: 0;
        margin-bottom: 10px;
        display: block;
    }
}
