/**
 * Social Widget Block Styles
 */

.social-widget__title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-widget__grid {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.social-widget__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-width: 60px;
    cursor: pointer;
}

.social-widget__item:hover {
    text-decoration: none;
    color: inherit;
}

/* Brand Colors */
.social-widget__item--facebook {
    --brand-color: #1877F2;
}

.social-widget__item--instagram {
    --brand-color: #E1306C;
}

.social-widget__item--twitter {
    --brand-color: #1DA1F2;
}

.social-widget__item--youtube {
    --brand-color: #FF0000;
}

.social-widget__item--tiktok {
    --brand-color: #00F2EA;
}

.social-widget__icon-wrapper {
    font-size: 1.5rem;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    transition: transform 0.2s ease;
}

/* Glow / Tint Effect (Matches .btn-icon) */
.social-widget__icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-color);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.social-widget__item:hover .social-widget__icon-wrapper::before {
    opacity: 0.15;
}

.social-widget__item:hover .social-widget__icon-wrapper {
    transform: scale(1.1);
}

.social-widget__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.2s ease;
    min-height: 2.2em;
    /* Reserve space for layout stability */
}

.social-widget__count {
    font-weight: 700;
    font-size: .8rem;
    line-height: 1.2;
}

.social-widget__label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: capitalize;
}

.social-widget__hover {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.social-widget__action {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-color, inherit);
}

/* Hover State - Text Swap Only */
.social-widget__item:hover .social-widget__info {
    opacity: 0;
}

.social-widget__item:hover .social-widget__hover {
    opacity: 1;
    transform: translateY(0);
}