/* =============================================================================
   FARCASTER CHAT WALL STYLES
   Styles for the Farcaster chat widget in token profile pages
   ============================================================================= */

.farcaster-chat-container {
    background: #ffffff;
    border-radius: 0;
    overflow-y: auto;
    max-height: 350px;
    padding: 0;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.chat-message:hover {
    background-color: #f8f9fa;
}

.chat-message:last-child {
    border-bottom: none;
}

.chat-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-avatar img {
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

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

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

.chat-username {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.chat-verified {
    color: #1d9bf0;
    font-size: 0.8rem;
}

.chat-bot-badge {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-time {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: auto;
}

.chat-text {
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.chat-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-action-btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.chat-action-btn.liked {
    color: #e91e63 !important;
    cursor: default !important;
}

.chat-action-btn.liked:hover {
    background-color: transparent !important;
    color: #e91e63 !important;
}

.chat-action-btn i {
    font-size: 0.75rem;
}

.chat-input-container {
    border-top: 1px solid #e9ecef;
    padding: 12px 16px;
    background: #f8f9fa;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 12px;
    transition: border-color 0.2s ease;
}

.chat-input-wrapper:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: #495057;
}

.chat-input::placeholder {
    color: #adb5bd;
}

.chat-send-btn {
    background: #007bff;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 8px;
}

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

.chat-send-btn i {
    font-size: 0.8rem;
}

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

.farcaster-chat-container::-webkit-scrollbar-track {
    background: #f1f3f4;
}

.farcaster-chat-container::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.farcaster-chat-container::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-message {
        padding: 10px 12px;
    }

    .chat-avatar {
        margin-right: 10px;
    }

    .chat-avatar img {
        width: 28px;
        height: 28px;
    }

    .chat-username {
        font-size: 0.85rem;
    }

    .chat-text {
        font-size: 0.85rem;
    }

    .chat-input-container {
        padding: 10px 12px;
    }
}

/* Farcaster branding colors */
.text-farcaster {
    color: #8b5cf6;
}

.bg-farcaster {
    background-color: #8b5cf6;
}

/* Farcaster powered by styling */
.text-farcaster:hover {
    color: #a855f7;
    transition: color 0.2s ease;
}

/* Enhanced hover effects */
.chat-message:hover .chat-avatar img {
    border-color: #007bff;
}

.chat-message:hover .chat-username {
    color: #007bff;
}

/* Status indicators */
.chat-online-indicator {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid white;
}

.chat-avatar {
    position: relative;
}