/* Chess Chat CSS - Dark Theme */
body {
    background-color: #1a1a1a !important;
}

#main-wrap {
    background-color: #1a1a1a !important;
}

.chess-chat-wrapper {
    grid-area: main;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    width: 100%;
    background-color: #1a1a1a;
    min-height: 100vh;
}

.chat-header-section {
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.chat-header-section h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: bold;
}

.subtitle {
    font-size: 1.1em;
    margin: 10px 0;
    opacity: 0.9;
}

.welcome-text {
    font-size: 0.95em;
    margin: 15px 0 0 0;
    opacity: 0.85;
}

.chat-examples-section {
    margin-bottom: 25px;
    background: #2d2d2d;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #404040;
}

.chat-examples-section h3 {
    margin: 0 0 15px 0;
    color: #e0e0e0;
    font-weight: 600;
}

.examples-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.example-button {
    background: #404040;
    border: 2px solid #606060;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
}

.example-button:hover {
    background: #2980b9;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
}

.chat-main-container {
    background: #2d2d2d;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.3);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #404040;
}

.chat-messages-box {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #1f1f1f;
    border-bottom: 1px solid #404040;
}

.welcome-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: #2980b9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.message-bubble {
    background: #404040;
    padding: 15px 20px;
    border-radius: 18px;
    border: 1px solid #606060;
    line-height: 1.5;
    max-width: 75%;
    color: #e0e0e0;
}

.chat-input-section {
    padding: 20px;
    background: #2d2d2d;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.message-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #606060;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #404040;
    color: #e0e0e0;
}

.message-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.message-input::placeholder {
    color: #a0a0a0;
}

.send-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.send-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-1px);
}

.send-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.chat-tips {
    text-align: center;
    color: #a0a0a0;
    font-size: 13px;
}

.features-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.feature-card h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Message styles for dynamic messages */
.chat-message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
    gap: 12px;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.user-message .message-bubble {
    background: #27ae60;
    color: white;
    border: 1px solid #2ecc71;
}

/* Responsive design */
@media (max-width: 768px) {
    .chess-chat-wrapper {
        padding: 15px;
    }
    
    .chat-header-section h1 {
        font-size: 1.8em;
    }
    
    .examples-container {
        flex-direction: column;
    }
    
    .example-button {
        text-align: center;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-input,
    .send-button {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
}