/* Bintano Feed Promotion Styles */
.bfp-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bfp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.bfp-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.bfp-promoted-by {
    font-size: 0.75rem;
    color: #6b7280;
}

.bfp-items.bfp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bfp-items.bfp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bfp-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.bfp-item:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card Style */
.bfp-style-card .bfp-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bfp-style-card .bfp-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bfp-style-card .bfp-item:hover .bfp-item-image img {
    transform: scale(1.05);
}

.bfp-style-card .bfp-item-content {
    padding: 16px;
}

/* Native and List Styles */
.bfp-style-native .bfp-item-content,
.bfp-style-list .bfp-item-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
}

.bfp-item-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.bfp-item-text {
    flex: 1;
    min-width: 0;
}

.bfp-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bfp-promoted-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 4px;
}

.bfp-item-date,
.bfp-item-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.bfp-icon {
    width: 12px;
    height: 12px;
}

.bfp-item-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.bfp-item-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bfp-item-title a:hover {
    color: #2563eb;
}

.bfp-item-description {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bfp-item-footer {
    display: flex;
    justify-content: flex-end;
}

.bfp-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bfp-read-more:hover {
    color: #1d4ed8;
}

/* List Style Specific */
.bfp-style-list .bfp-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    border-bottom: 1px solid #e5e7eb;
}

.bfp-style-list .bfp-item:last-child {
    border-bottom: none;
}

.bfp-style-list .bfp-item:hover {
    background-color: #f9fafb;
    box-shadow: none;
}

/* Error and No Content States */
.bfp-error,
.bfp-no-content {
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
}

.bfp-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bfp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bfp-items.bfp-grid {
        grid-template-columns: 1fr;
    }
    
    .bfp-style-native .bfp-item-content,
    .bfp-style-list .bfp-item-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .bfp-item-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .bfp-item-meta {
        gap: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bfp-container {
        color: #f3f4f6;
    }
    
    .bfp-item {
        background: #1f2937;
        border-color: #374151;
    }
    
    .bfp-title {
        color: #f9fafb;
    }
    
    .bfp-item-title a {
        color: #f9fafb;
    }
    
    .bfp-item-title a:hover {
        color: #60a5fa;
    }
    
    .bfp-promoted-label {
        color: #60a5fa;
        background: #1e3a8a;
    }
    
    .bfp-read-more {
        color: #60a5fa;
    }
    
    .bfp-read-more:hover {
        color: #93c5fd;
    }
    
    .bfp-style-list .bfp-item:hover {
        background-color: #374151;
    }
}