/* ============================================================
   Stream de Proveedores — Styles
   Minimal sobre Bootstrap 5
   ============================================================ */

.stream-container {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Cards */
.stream-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.stream-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.stream-card .card-header {
    border-bottom: 1px solid #f0f0f0;
}
.stream-card .card-footer {
    border-top: 1px solid #f0f0f0;
}

/* Type badge */
.stream-type-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Custom purple for encuesta */
.bg-purple {
    background-color: #7c3aed !important;
    color: white;
}

/* Reaction pill buttons */
.stream-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.stream-react-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}
.stream-react-btn.active {
    background: #eef2ff;
    border-color: var(--pdx-primary);
    color: var(--pdx-primary);
    font-weight: 600;
}
.stream-react-btn .reaction-label {
    font-size: 0.7rem;
}
.stream-react-btn .reaction-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 10px;
    color: #334155;
}
.stream-react-btn.active .reaction-count {
    background: var(--pdx-primary);
    color: #fff;
}

/* Image upload previews */
.stream-img-upload {
    width: 80px;
    height: 80px;
}
.stream-img-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fafafa;
    transition: border-color 0.2s;
}
.stream-img-preview:hover {
    border-color: #0d6efd;
}
.stream-img-preview span {
    font-size: 1.5rem;
    color: #aaa;
}

/* Carousel dots */
.stream-dot {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    color: #ccc;
    margin: 0 2px;
}
.stream-dot.active {
    color: #0d6efd;
}

/* Carousel in detail */
.stream-carousel img {
    border-radius: 0;
}

/* Limit indicator */
.stream-limit-indicator {
    font-size: 0.8rem;
}

/* Filters */
.stream-filters .btn-sm {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 14px;
}

/* Bookmark icon */
.stream-bookmark-btn:hover .stream-bookmark-icon {
    transform: scale(1.2);
}

/* Follow button */
.stream-follow-btn {
    font-size: 0.72rem !important;
    padding: 2px 10px !important;
    border-radius: 14px;
}

/* Offcanvas sizing */
#offcanvasPostDetail,
#offcanvasCreatePost {
    max-width: 100vw;
}
@media (max-width: 576px) {
    #offcanvasPostDetail,
    #offcanvasCreatePost {
        width: 100% !important;
    }
}

/* Reaction checkbox in create form */
.stream-reaction-check {
    font-size: 0.8rem;
    cursor: pointer;
}
.stream-reaction-check .form-check-input {
    margin-top: 3px;
}

/* Skeleton loader placeholder */
.stream-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 200px;
    margin-bottom: 16px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast animation */
.toast.show {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Verified badge */
.stream-verified {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Post body in detail */
#detail-body {
    font-size: 0.9rem;
    line-height: 1.6;
}
#detail-body strong {
    font-weight: 700;
}
#detail-body ul, #detail-body ol {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}
#detail-body a {
    color: #0d6efd;
}
