/**
 * Ascending Auctions Styles
 * Add this to your theme's style.css or enqueue as separate file
 */

/* ========================================
   GRID LAYOUT
   ======================================== */
.bashere-ascending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

@media (max-width: 768px) {
    .bashere-ascending-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   AUCTION CARD
   ======================================== */
.bashere-ascending-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.bashere-ascending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.bashere-ascending-card.auction-ended {
    opacity: 0.6;
    pointer-events: none;
}

.bashere-ascending-card.auction-ended::after {
    content: "AUCTION ENDED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(239, 68, 68, 0.95);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 1rem 3rem;
    border-radius: 8px;
    z-index: 100;
}

/* ========================================
   TYPE BADGE
   ======================================== */
.ascending-type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ========================================
   IMAGE
   ======================================== */
.ascending-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #F3F4F6;
}

.ascending-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bashere-ascending-card:hover .ascending-image {
    transform: scale(1.05);
}

.ascending-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9CA3AF;
}

/* Badges on Image */
.ascending-ending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #EF4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.ascending-reserve-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F59E0B;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

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

/* ========================================
   TITLE
   ======================================== */
.ascending-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F1419;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    min-height: 2.6rem;
}

/* ========================================
   CURRENT PRICE
   ======================================== */
.ascending-current-price {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.ascending-price-label {
    display: block;
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.ascending-price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0284C7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   STATS GRID
   ======================================== */
.ascending-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 12px;
}

.ascending-stat {
    text-align: center;
    flex: 1;
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-weight: 700;
    color: #0F1419;
    font-size: 1.125rem;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.125rem;
}

/* ========================================
   USER STATUS
   ======================================== */
.ascending-user-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.ascending-user-status.winning {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border: 2px solid #10B981;
}

.ascending-user-status.outbid {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    border: 2px solid #EF4444;
}

/* ========================================
   NEXT BID
   ======================================== */
.ascending-next-bid {
    text-align: center;
    padding: 0.75rem;
    background: #FEF3C7;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    border: 2px solid #FDE68A;
}

.bid-increment {
    color: #92400E;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.ascending-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ascending-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.ascending-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ascending-btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ascending-btn-bid {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ascending-btn-custom {
    background: white;
    color: #0F1419;
    border: 2px solid #E5E7EB;
}

.ascending-btn-buynow {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ascending-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.ascending-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* ========================================
   WATCH BUTTON
   ======================================== */
.ascending-watch-btn {
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.ascending-watch-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.ascending-watch-btn.watching {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-color: #FBBF24;
    color: #92400E;
}

/* ========================================
   VIEW DETAILS LINK
   ======================================== */
.ascending-view-details {
    display: block;
    text-align: center;
    color: #0284C7;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.ascending-view-details:hover {
    color: #0369A1;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .bashere-ascending-card {
        padding: 1rem;
    }
    
    .ascending-image-wrapper {
        height: 200px;
    }
    
    .ascending-price-amount {
        font-size: 1.5rem;
    }
    
    .ascending-title {
        font-size: 1.125rem;
    }
    
    .ascending-stats {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .stat-icon {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .ascending-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   LIST LAYOUT (Alternative)
   ======================================== */
.bashere-ascending-list .bashere-ascending-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.bashere-ascending-list .ascending-image-wrapper {
    height: 100%;
    min-height: 250px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .bashere-ascending-list .bashere-ascending-card {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */
.bashere-ascending-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bashere-ascending-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #E5E7EB;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
