/* YoYo Social Feed - Public Grid Styles */

.yoyo-sf-grid {
    display: grid;
    grid-template-columns: repeat(var(--yoyo-cols, 4), 1fr);
    gap: var(--yoyo-gap, 8px);
    width: 100%;
}

.yoyo-sf-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.yoyo-sf-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.yoyo-sf-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 square */
    overflow: hidden;
    border-radius: 6px;
    background: #f3f4f6;
}

.yoyo-sf-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}

.yoyo-sf-link:hover .yoyo-sf-img,
.yoyo-sf-item:hover .yoyo-sf-img {
    transform: scale(1.06);
}

/* Hover overlay */
.yoyo-sf-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .3s;
    border-radius: 6px;
}
.yoyo-sf-link:hover .yoyo-sf-overlay,
.yoyo-sf-item:hover .yoyo-sf-overlay {
    background: rgba(0, 0, 0, .18);
}

/* Platform badge */
.yoyo-sf-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    letter-spacing: .5px;
    z-index: 2;
    opacity: .85;
}
.yoyo-sf-badge--ig {
    background: linear-gradient(135deg, #f9a8d4, #c084fc);
}
.yoyo-sf-badge--fb {
    background: #1877f2;
}

/* Caption */
.yoyo-sf-caption {
    margin: 6px 0 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

/* Empty state */
.yoyo-sf-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .yoyo-sf-grid {
        grid-template-columns: repeat(
            min(var(--yoyo-cols, 4), 2),
            1fr
        );
    }
}
@media (max-width: 480px) {
    .yoyo-sf-grid {
        grid-template-columns: repeat(
            min(var(--yoyo-cols, 4), 2),
            1fr
        );
        gap: 4px;
    }
}

/* ---------------------------------------------------------------
   Profile Headers
--------------------------------------------------------------- */
.yoyo-sf-headers {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.yoyo-sf-header-card {
    flex: 1;
    min-width: 260px;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.yoyo-sf-header-fb { background: #fff; border: 1.5px solid #dbeafe; }
.yoyo-sf-header-ig { background: #fff; border: 1.5px solid #f3e8ff; }

.yoyo-sf-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.yoyo-sf-header-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.yoyo-sf-header-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.yoyo-sf-header-icon-only {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.yoyo-sf-header-fb-icon.yoyo-sf-header-icon-only { background: #1877f2; }
.yoyo-sf-header-ig-icon.yoyo-sf-header-icon-only { background: linear-gradient(135deg,#f9a8d4,#c084fc); }
.yoyo-sf-header-icon-only svg { width: 22px; height: 22px; }

.yoyo-sf-header-platform-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.yoyo-sf-header-fb-icon { background: #1877f2; color: #fff; }
.yoyo-sf-header-ig-icon { background: linear-gradient(135deg,#f9a8d4,#c084fc); color: #fff; }
.yoyo-sf-header-platform-icon svg { width: 10px; height: 10px; }

.yoyo-sf-header-info { display: flex; flex-direction: column; gap: 2px; }
.yoyo-sf-header-name { font-size: 16px; font-weight: 700; color: #111827; display: block; }
.yoyo-sf-header-followers { font-size: 12px; color: #6b7280; }
.yoyo-sf-header-bio { font-size: 13px; color: #374151; margin: 4px 0 0; line-height: 1.4; }

.yoyo-sf-follow-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
    color: #fff !important;
    flex-shrink: 0;
}
.yoyo-sf-follow-btn:hover { opacity: .85; transform: translateY(-1px); }
.yoyo-sf-header-fb-btn { background: #1877f2; }
.yoyo-sf-header-ig-btn { background: linear-gradient(135deg, #f9a8d4, #c084fc); }

@media (max-width: 600px) {
    .yoyo-sf-headers { flex-direction: column; }
    .yoyo-sf-header-card { flex-direction: column; align-items: flex-start; }
}
