/* Chat specific styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.chat-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #1E2328;
    background: #0F1419;
}

.chat-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-header p {
    color: #8B949E;
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #0A0E13;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #0F1419;
    border: 1px solid #1E2328;
    transition: all 0.2s ease;
}

.message:hover {
    border-color: #2A3037;
    transform: translateY(-1px);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-username {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.75rem;
    color: #8B949E;
}

.message-text {
    color: #E6EDF3;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-input-container {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #1E2328;
    background: #0F1419;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

#chatInput {
    flex: 1;
    background: #0A0E13;
    border: 1px solid #1E2328;
    border-radius: 12px;
    padding: 16px 20px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#chatInput:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

#chatInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#sendBtn {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border: none;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
    font-size: 1.1rem;
}

#sendBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

#sendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #8B949E;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-count::before {
    content: '●';
    color: #00D26A;
    font-size: 0.7rem;
}

.character-count {
    font-family: 'Courier New', monospace;
}

/* Empty state */
.chat-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #8B949E;
}

.chat-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

/* System messages */
.system-message {
    text-align: center;
    padding: 8px 16px;
    margin: 0.5rem 0;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #FF8C00;
}

/* Responsive design */
@media (max-width: 768px) {
    .chat-header {
        padding: 1rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .message {
        padding: 10px 12px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #0A0E13;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #1E2328;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #2A3037;
}

/* Wallet Modal Styling */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #1E2328;
    border: 1px solid #2A3037;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.wallet-option:hover {
    background: #2A3037;
    border-color: #FF8C00;
    transform: translateY(-2px);
}

.wallet-option img {
    width: 24px;
    height: 24px;
}

.wallet-info {
    margin-top: 16px;
    text-align: center;
}

.wallet-info small {
    color: #8B949E;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
} 