/**
 * B19 Social Feed - Frontend Styles
 */

.b19sf-container {
    max-width: 100%;
    margin: 20px 0;
}

.b19sf-header {
    text-align: center;
    margin-bottom: 20px;
}

.b19sf-header a {
    font-size: 1.2em;
    font-weight: 600;
    color: #262626;
    text-decoration: none;
}

.b19sf-header a:hover {
    color: #c13584;
}

.b19sf-grid {
    display: grid;
    gap: 10px;
}

.b19sf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.b19sf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.b19sf-cols-4 { grid-template-columns: repeat(4, 1fr); }
.b19sf-cols-5 { grid-template-columns: repeat(5, 1fr); }
.b19sf-cols-6 { grid-template-columns: repeat(6, 1fr); }

.b19sf-item {
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.b19sf-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.b19sf-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.b19sf-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b19sf-item:hover .b19sf-image-wrapper img {
    transform: scale(1.05);
}

.b19sf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.b19sf-item:hover .b19sf-overlay {
    opacity: 1;
}

.b19sf-icon {
    color: white;
}

.b19sf-video-icon,
.b19sf-carousel-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.b19sf-caption {
    padding: 10px;
    font-size: 13px;
    color: #262626;
    line-height: 1.4;
    background: white;
}

.b19sf-footer {
    text-align: center;
    margin-top: 20px;
}

.b19sf-follow-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.b19sf-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.b19sf-error {
    padding: 20px;
    background: #fee;
    border-left: 4px solid #c00;
    color: #c00;
}

.b19sf-empty {
    padding: 20px;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .b19sf-cols-4,
    .b19sf-cols-5,
    .b19sf-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .b19sf-grid {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .b19sf-cols-3,
    .b19sf-cols-4,
    .b19sf-cols-5,
    .b19sf-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
