/* Auction System Styles - Stayin' Alive with stephanie.ai */
/* Health and Wellness Theme Colors */

:root {
    --health-green: #28a745;
    --vitality-blue: #17a2b8;
    --energy-yellow: #ffc107;
    --calm-light-green: #90ee90;
    --fresh-blue: #e0f7fa;
    --success-gradient: linear-gradient(135deg, #28a745 0%, #17a2b8 100%);
    --wellness-gradient: linear-gradient(135deg, #90ee90 0%, #17a2b8 100%);
    --energy-gradient: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f7fa 0%, #f0fff4 100%);
    min-height: 100vh;
    position: relative;
}

/* Animations */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Auction Cards */
.auction-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auction-card:hover::before {
    left: 100%;
}

/* Auction Image Styles */
.auction-image {
    position: relative;
    overflow: hidden;
    background: var(--wellness-gradient);
}

.auction-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-image img {
    transform: scale(1.05);
}

/* Bid Badge */
.bid-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--health-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: var(--shadow-light);
    animation: slideInFromTop 0.3s ease;
}

.bid-badge i {
    margin-right: 0.25rem;
    animation: pulse 2s infinite;
}

/* Time Remaining Styles */
.time-remaining {
    background: var(--vitality-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: var(--shadow-light);
}

.time-remaining.urgent {
    background: var(--energy-gradient);
    animation: pulse 1s infinite;
}

/* Current Bid Display */
.current-bid {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--health-green);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.current-bid-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--health-green);
    margin: 1rem 0;
    text-align: center;
    animation: pulse 3s ease-in-out infinite;
}

/* Bid Form Styles */
.bid-form-container {
    background: white;
    border: 2px solid var(--health-green);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.bid-form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--success-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 15px;
}

.bid-form-container:hover::before {
    opacity: 0.1;
}

.bid-input {
    font-size: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s;
    background: white;
}

.bid-input:focus {
    border-color: var(--health-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    transform: scale(1.02);
}

/* Quick Bid Buttons */
.quick-bid-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.quick-bid-btn {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--health-green);
    background: white;
    color: var(--health-green);
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.quick-bid-btn:hover {
    background: var(--health-green);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
}

.quick-bid-btn:active {
    transform: scale(0.95);
}

/* Bid History Table */
.bid-history-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.bid-history-table thead {
    background: var(--success-gradient);
    color: white;
}

.bid-history-table th {
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.bid-history-row {
    transition: all 0.3s;
    position: relative;
}

.bid-history-row:hover {
    background: rgba(40, 167, 69, 0.05);
    transform: translateX(5px);
}

.bid-history-row.new-bid-animation {
    animation: slideInFromBottom 0.5s ease;
    background: rgba(40, 167, 69, 0.1);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    position: relative;
}

.status-active::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 1.5s infinite;
}

.status-ending-soon {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    animation: pulse 1.5s infinite;
}

.status-ended {
    background: #e9ecef;
    color: #6c757d;
}

/* Countdown Display */
.countdown-display {
    background: var(--vitality-blue);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.countdown-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.countdown-urgent {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    animation: pulse 1s infinite;
}

/* Winner Banner */
.winner-banner {
    background: var(--energy-gradient);
    color: #333;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.winner-banner i {
    animation: bounce 2s infinite;
}

/* Notification Alerts */
.outbid-alert {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    display: none;
    animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero-section {
    background: var(--success-gradient);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.filter-section .btn-group .btn {
    border-radius: 20px;
    margin: 0 0.25rem;
    transition: all 0.3s;
}

.filter-section .btn-group .btn.active {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
}

/* Product Image Container */
.product-image-container {
    background: var(--wellness-gradient);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

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

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

/* Auction Status Badge */
.auction-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    font-weight: bold;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.status-live {
    color: var(--health-green);
}

.status-live::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 1.5s infinite;
}

/* Bid Info Card */
.bid-info-card {
    background: linear-gradient(135deg, #f0fff4 0%, #e0f7fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auction-card {
        margin-bottom: 1.5rem;
    }
    
    .current-bid-display {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        border-radius: 0 0 30px 30px;
    }
    
    .quick-bid-buttons {
        flex-wrap: wrap;
    }
    
    .quick-bid-btn {
        min-width: calc(50% - 0.25rem);
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .outbid-alert {
        right: 10px;
        left: 10px;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(40, 167, 69, 0.3);
    border-top-color: var(--health-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success States */
.success-animation {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    }
    100% { transform: scale(1); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

/* Stephanie AI Badge */
.stephanie-ai-badge {
    background: white;
    color: var(--health-green);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.stephanie-ai-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Print Styles */
@media print {
    .navbar, .footer, .bid-form-container, .quick-bid-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .auction-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}