/* オークション一覧 */
.wpas-auction-list {
    margin: 20px 0;
}

.wpas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wpas-auction-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.wpas-auction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.wpas-auction-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.wpas-auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpas-badge-ending {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.wpas-auction-info {
    padding: 15px;
}

.wpas-auction-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.wpas-auction-title a {
    color: #333;
    text-decoration: none;
}

.wpas-auction-title a:hover {
    color: #0073aa;
}

.wpas-price-info {
    margin: 10px 0;
}

.wpas-current-price {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.wpas-current-price .price {
    font-weight: bold;
    color: #0073aa;
}

.wpas-buy-now-price {
    font-size: 14px;
    color: #666;
}

.wpas-time-left {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.wpas-time-left .ending-soon {
    color: #ff4444;
    font-weight: bold;
}

.wpas-bid-count {
    font-size: 13px;
    color: #999;
}

/* オークション詳細 */
.wpas-auction-detail {
    max-width: 1200px;
    margin: 20px auto;
}

.wpas-auction-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.wpas-auction-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.wpas-auction-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

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

.wpas-auction-images {
    background: #fff;
}

.wpas-main-image {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.wpas-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wpas-thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.wpas-thumbnail-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.wpas-thumbnail-images img:hover {
    border-color: #0073aa;
}

.wpas-auction-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.wpas-price-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.wpas-current-price-large {
    margin-bottom: 15px;
}

.wpas-current-price-large .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.wpas-current-price-large .price {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
}

.wpas-current-price-large .price.price-updated {
    animation: priceUpdate 1s ease;
}

@keyframes priceUpdate {
    0% { background: #ffeb3b; }
    100% { background: transparent; }
}

.wpas-buy-now-section {
    margin: 10px 0;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
}

.wpas-bid-increment {
    font-size: 14px;
    color: #666;
}

.wpas-time-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.wpas-time-remaining .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.wpas-time-remaining .time-large {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.wpas-time-remaining .time-large.ending-soon {
    color: #ff4444;
    animation: pulse 1s infinite;
}

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

.wpas-end-date {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* 入札セクション */
.wpas-bid-section {
    margin-bottom: 25px;
}

.wpas-btn-primary {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.wpas-btn-primary:hover {
    background: #005a87;
}

.wpas-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wpas-btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
}

.wpas-btn-secondary:hover {
    background: #555;
}

#wpas-bid-form,
#wpas-bid-confirm {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#wpas-bid-form h3,
#wpas-bid-confirm h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.wpas-bid-input-group {
    margin-top: 10px;
}

.wpas-bid-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.wpas-bid-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

#wpas-bid-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

#wpas-bid-result .wpas-message.success {
    color: #4caf50;
    font-weight: bold;
}

#wpas-bid-result .wpas-message.error {
    color: #f44336;
}

.wpas-login-prompt {
    padding: 15px;
    background: #fff3cd;
    border-radius: 4px;
    text-align: center;
}

.wpas-login-prompt a {
    color: #0073aa;
    font-weight: bold;
}

/* 入札履歴 */
.wpas-bid-history {
    margin-top: 25px;
}

.wpas-bid-history h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.wpas-bid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wpas-bid-table th {
    background: #f5f5f5;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.wpas-bid-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.wpas-bid-table tbody tr:hover {
    background: #f9f9f9;
}

/* 商品説明 */
.wpas-auction-description {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.wpas-auction-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.wpas-description-content {
    line-height: 1.6;
    color: #666;
}

/* オークション終了 */
.auction-ended {
    padding: 20px;
    background: #f44336;
    color: white;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wpas-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .wpas-auction-sidebar {
        position: static;
    }
    
    .wpas-current-price-large .price {
        font-size: 24px;
    }
    
    .wpas-time-remaining .time-large {
        font-size: 18px;
    }
}