/* SmartFollow Widget — Public Styles */

.sfw-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sfw-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 10px;
}

/* ---- Individual icon link ---- */
.sfw-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.18s ease, opacity 0.18s ease;
    position: relative;
}

.sfw-icon:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 0.85;
    text-decoration: none !important;
}

/* SVG container */
.sfw-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sfw-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- Styles ---- */

/* Brand color */
.sfw-style-brand .sfw-svg svg {
    fill: var(--sfw-icon-color, #555);
    transition: fill 0.2s ease;
}

/* Monochrome */
.sfw-style-mono .sfw-svg svg {
    fill: currentColor;
}

/* Outline */
.sfw-style-outline .sfw-icon {
    border: 2px solid currentColor;
    border-radius: 8px;
    padding: 6px;
}

.sfw-style-outline .sfw-svg svg {
    fill: currentColor;
}

/* ---- Tooltip ---- */
.sfw-icon::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sfw-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ---- Label below icon ---- */
.sfw-label {
    font-size: 11px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: inherit;
}

/* ---- Widget wrapper ---- */
.widget.sfw-widget .sfw-icons {
    margin-top: 8px;
}
