/* PRP Aukce Frontend Styles - VERSION 1.0.2 */

.prp-auctions-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    .prp-auctions-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .prp-auctions-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.prp-auction-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.prp-auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.prp-auction-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prp-auction-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.prp-auction-card-content {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prp-auction-card h3 {
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.prp-auction-card .prp-price-info {
    margin-bottom: 15px;
    flex-grow: 1;
}

.prp-auction-card .prp-price-label {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
}

.prp-auction-card .prp-starting-price {
    padding: 0;
    margin: 0 0 10px 0;
    color: #033048;
    font-weight: bold;
    font-size: 18px;
}

.prp-auction-card .prp-current-price-info {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
}

.prp-auction-card .prp-current-price-value {
    padding: 0;
    margin: 0;
    color: #ff0000;
    font-weight: bold;
    font-size: 18px;
}

.prp-auction-card .prp-no-bids {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin: 0;
}

.prp-auction-card-footer {
    background: #033048;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    text-align: center;
}

.prp-auction-card-footer strong {
    font-weight: 600;
}

/* Auction Detail */

.prp-back-button-container {
    margin-bottom: 20px;
}

.prp-back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #033048;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.prp-back-button:hover {
    background: #022133;
}

.prp-auction-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.prp-auction-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .prp-auction-content {
        grid-template-columns: 1fr;
    }
}

.prp-auction-images .prp-main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

.prp-additional-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.prp-thumb-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.prp-thumb-image:hover {
    opacity: 0.7;
}

.prp-auction-info h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 32px;
}

.prp-price-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.prp-label {
    margin: 0 0 5px;
    color: #666;
    font-size: 14px;
}

.prp-starting-price-large {
    margin: 0 0 15px;
    font-size: 36px;
    font-weight: bold;
    color: #033048;
}

.prp-current-price-label {
    margin: 15px 0 5px;
    color: #666;
    font-size: 14px;
}

.prp-current-price {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: #ff0000;
}

.prp-bid-controls {
    margin-bottom: 30px;
}

.prp-bid-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.prp-bid-minus,
.prp-bid-plus {
    width: 40px;
    height: 40px;
    background: #033048;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.prp-bid-minus:hover,
.prp-bid-plus:hover {
    background: #022133;
}

#prp-bid-amount {
    width: 120px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    margin: 0 10px;
}

.prp-bid-label {
    font-size: 18px;
    color: #666;
    margin-left: 10px;
}

.prp-bid-button,
.prp-bid-button-login {
    width: 100%;
    padding: 15px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.prp-bid-button:hover,
.prp-bid-button-login:hover {
    background: #cc0000;
}

.prp-bid-button.prp-ended {
    background: #999;
    cursor: not-allowed;
}

.prp-bid-button.prp-blocked {
    background: #999;
    cursor: not-allowed;
}

.prp-bid-info,
.prp-login-info {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.prp-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    line-height: 1.8;
    color: #444;
}

/* Bids Section */

.prp-bids-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.prp-bids-section h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 24px;
}

.prp-bids-table {
    width: 100%;
    border-collapse: collapse;
}

.prp-bids-table th {
    background: #033048;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.prp-bids-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.prp-bids-table tr:hover {
    background: #f9f9f9;
}

.prp-delete-bid {
    color: #ff0000;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.prp-delete-bid:hover {
    opacity: 0.7;
}

.prp-notification-setting {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.prp-notification-setting label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.prp-notification-setting input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Countdown */

.prp-countdown {
    background: linear-gradient(135deg, #ff0000, #ff3333);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

.prp-countdown-label {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.prp-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.prp-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prp-countdown-value {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.prp-countdown-unit {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Modals */

.prp-modal {
    display: none !important;
    position: fixed !important;
    z-index: 10000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.6) !important;
    overflow: auto !important;
    align-items: center !important;
    justify-content: center !important;
}

.prp-modal.active {
    display: flex !important;
}

.prp-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin: auto;
}

.prp-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.prp-modal-close:hover {
    color: #333;
}

.prp-modal-content h3 {
    margin: 0 0 25px;
    color: #333;
    font-size: 26px;
}

#prp-login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#prp-login-form button {
    width: 100%;
    padding: 12px;
    background: #033048;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#prp-login-form button:hover {
    background: #022133;
}

.prp-login-notice {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.prp-login-notice a {
    color: #033048;
}

.prp-success-price {
    font-size: 36px;
    font-weight: bold;
    color: #ff0000;
    margin: 20px 0;
}

.prp-success-notice {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

/* Lightbox */

.prp-lightbox {
    display: none !important;
    position: fixed !important;
    z-index: 20000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.9) !important;
    align-items: center !important;
    justify-content: center !important;
}

.prp-lightbox.active {
    display: flex !important;
}

.prp-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: auto;
}

.prp-lightbox-close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 20001;
}

.prp-lightbox-close:hover {
    opacity: 0.7;
}