/**
 * Auction Page Styles
 */

/* Layout */
.auction-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin: 40px 0;
}

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

/* Header and Status */
.entry-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

.entry-title {
    font-size: clamp(1.875rem, -0.0396rem + 3.1646vw, 3.125rem);
    margin-bottom: 20px;
    color: #1a1a1a;
	text-align: center;
}

.auction-status {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #6c757d;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    font-size: 0.9em;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.status-badge.status-active {
    background: #28a745;
    animation: pulse 2s infinite;
}

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

.auction-ended {
    background: #f8d7da;
}

.auction-ended .status-badge {
    background: #dc3545;
}

.auction-pending {
    background: #fff3cd;
}

.auction-pending .status-badge {
    background: #ffc107;
    color: #1a1a1a;
}

/* Countdown Timer */
#countdown-timer {
    margin-top: 20px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #1a1a1a;
    display: block;
    min-width: 60px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-label {
    font-size: 0.8em;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

.countdown-urgent .countdown-number {
    background: #dc3545;
    color: white;
    animation: blink 1s infinite;
}

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

/* Main Content */
.auction-image {
    margin-bottom: 30px;
}

.auction-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auction-description,
.domain-details {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.auction-description h2,
.domain-details h3 {
    margin-top: 0;
    color: #1a1a1a;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.domain-info-table {
    width: 100%;
    border-collapse: collapse;
}

.domain-info-table th {
    text-align: left;
    padding: 10px;
    background: #e9ecef;
    font-weight: 600;
    width: 40%;
}

.domain-info-table td {
    padding: 10px;
    background: white;
}

.domain-info-table tr:nth-child(even) th,
.domain-info-table tr:nth-child(even) td {
    background: #f8f9fa;
}

/* Sidebar - Bidding Box */

.bidding-box {
    background: white;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.current-bid-display {
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.bid-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.bid-amount {
    font-size: 3em;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
    line-height: 1;
}

.bid-count {
    font-size: 0.9em;
    color: #6c757d;
}

.winning-status {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
}

/* Bid Form */
.bid-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
}

.bid-increment-note,
.help-text {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 5px;
}

.auto-bid-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.auto-bid-section label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.auto-bid-section input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.current-proxy {
    background: #d1ecf1;
    color: #0c5460;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 5px;
}

.bid-submit-btn {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.bid-submit-btn:hover:not(:disabled) {
    background: #0056b3;
}

.bid-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.bid-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.bid-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

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

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

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 20px;
}

.login-btn,
.register-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.login-btn {
    background: #007bff;
    color: white;
}

.login-btn:hover {
    background: #0056b3;
}

.register-btn {
    background: #28a745;
    color: white;
}

.register-btn:hover {
    background: #1e7e34;
}

/* Auction Ended Notice */
.auction-ended-notice {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border-radius: 8px;
}

.winner-notice {
    font-size: 1.2em;
    font-weight: bold;
    color: #155724;
    background: #d4edda;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.payment-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s;
}

.payment-btn:hover {
    background: #1e7e34;
}

/* Reserve Price Status */
.reserve-not-met,
.reserve-met {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 15px;
}

.reserve-not-met {
    background: #fff3cd;
    color: #856404;
}

.reserve-met {
    background: #d4edda;
    color: #155724;
}

/* Bid History */
.bid-history-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.bid-history-box h3 {
    margin-top: 0;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.bid-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.bid-history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9em;
}

.bid-history-item:last-child {
    border-bottom: none;
}

.bid-user {
    font-weight: 600;
    color: #1a1a1a;
}

.bid-amount-hist {
    font-weight: bold;
    color: #007bff;
    text-align: right;
}

.bid-time {
    grid-column: 1 / -1;
    font-size: 0.85em;
    color: #6c757d;
}

.auto-bid-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8em;
    }

    .countdown-number {
        font-size: 1.8em;
        min-width: 50px;
    }

    .bid-amount {
        font-size: 2.2em;
    }

    .auction-content-wrapper {
        gap: 0;
    }

    .bidding-box {
        padding: 20px;
    }
	
	.auction-status{
		padding: 10px;
	}
	
	.countdown-display{
		gap: 10px;
	}
	
	.domain-info-table{
		margin-bottom: 0;
	}
	
	.auction-content-wrapper{
		margin-top: 0;
	}
	
	.entry-header{
		padding-bottom: 10px;
	}
}

/* Scrollbar Styling for Bid History */
.bid-history-list::-webkit-scrollbar {
    width: 8px;
}

.bid-history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bid-history-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.bid-history-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}
