/**
 * Frontend CSS for Land Auction System
 */

/* Land Single Page */
.las-land-single {
    max-width: 1200px;
    margin: 0 auto;
}

.las-land-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.las-land-header h1 {
    margin: 0 0 15px;
    color: #333;
}

.las-land-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.las-land-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.las-land-meta-item strong {
    color: #333;
}

/* Land Content Grid */
.las-land-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.las-land-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.las-land-sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.las-land-details {
    margin: 20px 0;
}

.las-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.las-detail-item:last-child {
    border-bottom: none;
}

.las-detail-label {
    font-weight: 600;
    color: #666;
}

.las-detail-value {
    color: #333;
}

/* Auction Status */
.las-auction-status {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.las-status-badge-large {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.las-status-badge-large.open {
    background: #d4edda;
    color: #155724;
}

.las-status-badge-large.closed {
    background: #f8d7da;
    color: #721c24;
}

.las-highest-bid {
    font-size: 28px;
    font-weight: 700;
    color: #2271b1;
    margin: 10px 0;
}

.las-participants-count {
    color: #666;
    font-size: 14px;
}

/* Auction Actions */
.las-auction-actions {
    margin-top: 20px;
}

.las-btn-join {
    width: 100%;
    padding: 15px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.las-btn-join:hover {
    background: #135e96;
}

.las-btn-join:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Chat Box */
.las-chat-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.las-chat-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.las-chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.las-chat-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.las-chat-message.system {
    background: #e7f3ff;
    text-align: center;
    font-style: italic;
    color: #666;
}

.las-chat-message.bid {
    border-left: 4px solid #2271b1;
}

.las-chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.las-chat-user {
    font-weight: 600;
    color: #333;
}

.las-chat-date {
    font-size: 12px;
    color: #999;
}

.las-chat-message-content {
    color: #666;
    line-height: 1.5;
}

.las-bid-amount {
    display: inline-block;
    padding: 4px 12px;
    background: #2271b1;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* Chat Input */
.las-chat-input-area {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.las-chat-input-form {
    display: grid;
    gap: 15px;
}

.las-input-group {
    display: flex;
    gap: 10px;
}

.las-input-group input,
.las-input-group textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.las-input-group button {
    padding: 12px 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.las-input-group button:hover {
    background: #135e96;
}

.las-input-group button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Participants List */
.las-participants {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.las-participants h2 {
    margin-top: 0;
}

.las-participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.las-participant-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.las-participant-item:last-child {
    border-bottom: none;
}

.las-participant-name {
    font-weight: 600;
}

.las-participant-date {
    color: #666;
    font-size: 14px;
}

/* Bids Table */
.las-bids-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.las-bids-table th,
.las-bids-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.las-bids-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
}

.las-bids-table tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .las-land-content-grid {
        grid-template-columns: 1fr;
    }
    
    .las-land-sidebar {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .las-land-header,
    .las-land-main,
    .las-land-sidebar,
    .las-chat-container,
    .las-participants {
        padding: 20px;
    }
    
    .las-chat-messages {
        height: 400px;
    }
    
    .las-input-group {
        flex-direction: column;
    }
}

/* Loading Spinner */
.las-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.las-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: las-spin 0.6s linear infinite;
}

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

/* Alerts */
.las-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

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

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

.las-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.las-alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
