﻿.upcoming-auctions-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.auction-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.upcoming-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.upcoming-badge i {
    font-size: 1.1em;
}

.auction-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.auction-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-thumbnail {
    transform: scale(1.05);
}

.auction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auction-card:hover .auction-overlay {
    opacity: 1;
}

.view-auction-btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.view-auction-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.auction-info {
    padding: 20px;
}

.auction-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
    font-weight: bold;
}

.auction-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.price-container {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.starting-bid, .buy-it-now {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.starting-bid:last-child, .buy-it-now:last-child {
    margin-bottom: 0;
}

.price-label {
    font-weight: bold;
    color: #333;
}

.starting-bid .price-value {
    color: #28a745;
    font-weight: bold;
}

.buy-it-now .price-value {
    color: #6c757d;
}

.time-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 4px;
    border-left: 4px solid #ff9800;
}

.time-label {
    font-weight: bold;
    color: #333;
}

.time-until-start {
    color: #ff6f00;
    font-weight: bold;
}

.auction-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-reminder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-reminder:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.reminder-status {
    margin-top: 10px;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reminder-status i {
    color: #28a745;
}

.manage-reminder-link {
    margin-left: auto;
    color: #155724;
    text-decoration: underline;
    font-weight: bold;
    font-size: 0.9em;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.manage-reminder-link:hover {
    color: #0c3d1a;
}

.no-auctions {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-auctions h3 {
    color: #333;
    margin: 20px 0 10px 0;
}

.no-auctions p {
    margin-bottom: 20px;
}

.no-auctions .btn {
    display: inline-block;
    padding: 12px 30px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.875em;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.existing-preference-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.existing-preference-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.existing-preference-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.verified-phone-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 8px;
}

.verified-phone-display i {
    font-size: 1.3em;
    color: #4caf50;
}

.phone-number-text {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .auction-grid {
        grid-template-columns: 1fr;
    }

    .auction-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }
}
