/* Post Buddy Embedded Chat CSS */

#post-buddy-inline-container {
    margin: 40px 0 30px;
}

#post-buddy-trigger-card {
    background: #ffffff;
    border: 1px solid #d1e1e9;
    border-radius: 12px;
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

#post-buddy-trigger-card:hover {
    border-color: #0073aa;
    box-shadow: 0 8px 24px rgba(0, 115, 170, 0.08);
    transform: translateY(-1px);
}

.post-buddy-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid #d1e1e9;
    flex-shrink: 0;
}

.post-buddy-trigger-content {
    flex: 1;
}

.post-buddy-trigger-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.post-buddy-trigger-subtitle {
    font-size: 14px;
    color: #5a646e;
    line-height: 1.4;
}

/* Floating Launcher */
#post-buddy-floating-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0073aa;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#post-buddy-floating-launcher:hover {
    transform: scale(1.05) translateY(-2px);
    background: #0085c3;
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
}

/* Floating Chat Window */
.post-buddy-floating-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 550px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 9998;
    transform-origin: bottom right;
    animation: pbSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pbSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-buddy-header {
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.post-buddy-header-content h3 {
    margin: 0 0 4px;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
}

.post-buddy-post-info {
    font-size: 0.85rem;
    color: #666;
}

#post-buddy-close-inline {
    background: #f5f5f5;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#post-buddy-close-inline:hover {
    background: #eee;
    color: #333;
}

#post-buddy-messages {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-buddy-message {
    padding: 12px 16px;
    border-radius: 14px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}

.post-buddy-message.user {
    background: #0073aa;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.post-buddy-message.bot {
    background: #f0f2f5;
    color: #1c1e21;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.post-buddy-input-area {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

#post-buddy-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#post-buddy-input:focus {
    border-color: #0073aa;
}

#post-buddy-send {
    background: #0073aa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#post-buddy-send:hover {
    background: #005a87;
}