/* Feed AI Widget - Frontend Styles */

#feed-ai-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

#feed-ai-widget.position-bottom-right {
    bottom: 120px;
    right: 24px;
}

#feed-ai-widget.position-bottom-left {
    bottom: 80px;
    left: 24px;
}

/* Floating trigger button */
.feed-ai-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.feed-ai-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.feed-ai-trigger:active {
    transform: translateY(0);
}

.feed-ai-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.feed-ai-trigger-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Panel */
.feed-ai-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.position-bottom-right .feed-ai-panel {
    right: 0;
}

.position-bottom-left .feed-ai-panel {
    left: 0;
}

.feed-ai-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.feed-ai-panel-header {
    padding: 12px 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}

/* Platform buttons */
.feed-ai-platform {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.15s ease;
    text-align: left;
}

.feed-ai-platform:hover {
    background-color: #f5f5f5;
}

.feed-ai-platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

.feed-ai-platform-icon svg {
    width: 20px;
    height: 20px;
}

.feed-ai-platform-name {
    flex: 1;
}

.feed-ai-platform-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #888;
    font-weight: 500;
}

/* Toast notification */
.feed-ai-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
}

.feed-ai-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
    #feed-ai-widget.position-bottom-right {
        bottom: 16px;
        right: 16px;
        left: auto;
    }

    #feed-ai-widget.position-bottom-left {
        bottom: 16px;
        left: 16px;
        right: auto;
    }

    .feed-ai-trigger {
        padding: 10px 16px;
        font-size: 13px;
    }

    .feed-ai-panel {
        position: fixed;
        bottom: 80px !important;
        left: 16px !important;
        right: 16px !important;
        min-width: auto;
        width: auto;
    }

    .feed-ai-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(20px);
        text-align: center;
        white-space: normal;
    }

    .feed-ai-toast.is-visible {
        transform: translateX(0) translateY(0);
    }
}
