/* Bell Auction Plugin Styles */

.bell-auction-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auction-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2em;
    font-weight: 600;
}

.auction-description {
    text-align: center;
    margin-bottom: 30px;
    color: #5a6c7d;
    font-size: 1.1em;
    line-height: 1.6;
}

.current-bid-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.current-highest-bid {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.current-leader {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.9;
}

.minimum-bid {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

.bell-auction-form-container {
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bell-auction-form-container h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.bell-auction-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.bell-auction-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bell-auction-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.bell-auction-submit-btn:active {
    transform: translateY(0);
}

.bell-auction-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auction-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.auction-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.auction-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.bid-instructions {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-top: 25px;
    border-radius: 0 8px 8px 0;
}

.bid-instructions h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
}

.bid-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.bid-instructions li {
    margin-bottom: 8px;
    color: #5a6c7d;
    line-height: 1.5;
}

.recent-bids-container {
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recent-bids-container h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.bids-list {
    max-height: 400px;
    overflow-y: auto;
}

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bid-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bid-item:last-child {
    margin-bottom: 0;
}

.bidder-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.bid-amount {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
    margin: 0 15px;
}

.bid-time {
    color: #7f8c8d;
    font-size: 0.9em;
    white-space: nowrap;
}

.no-bids-message {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.bell-auction-closed {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #856404;
    font-size: 1.2em;
    font-weight: 500;
}

/* Loading state */
.bell-auction-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bell-auction-form.loading .bell-auction-submit-btn::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .bell-auction-container {
        margin: 10px;
        padding: 15px;
    }

    .auction-title {
        font-size: 1.8em;
    }

    .current-highest-bid {
        font-size: 2em;
    }

    .current-leader {
        font-size: 1.1em;
    }

    .bell-auction-form-container {
        padding: 20px;
    }

    .bid-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .bid-amount {
        margin: 5px 0;
        font-size: 1.1em;
    }

    .bid-time {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .bid-item {
        padding: 12px 15px;
    }

    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="number"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}