/* =========================
   SOCIAL BUTTONS
   ========================= */

/* Container - desktop layout (row) */
.about-me-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-self: center;
}

/* Wrapper to bind button + tooltip hover */
.social-button-wrapper {
    position: relative;
}

/* Individual buttons (anchor only) */
.social-button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    text-decoration: none;
}

/* Fill animation layer */
.fill-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 0;
}

.fill-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

/* Trigger fill animation on wrapper hover */
.social-button-wrapper:hover .fill-layer::before {
    transform: scaleY(1);
}

/* Fill colors per network */
.social-button--linkedin .fill-layer::before { background-color: #0077b5; }
.social-button--github   .fill-layer::before { background-color: #6e5494; }
.social-button--email    .fill-layer::before { background-color: #3cbd7d; }
.social-button--resume   .fill-layer::before { background-color: #c36062; }

/* Icon wrapper */
.social-button .icon-wrapper {
    position: relative;
    z-index: 1;
    font-size: 24px;
    transition: color 0.4s ease;
}

/* Icon colors (default) */
.social-button--linkedin .icon-wrapper { color: #0077b5; }
.social-button--github   .icon-wrapper { color: #6e5494; }
.social-button--email    .icon-wrapper { color: #3cbd7d; }
.social-button--resume   .icon-wrapper { color: #c36062; }

/* Icon color on hover (including when tooltip is hovered) */
.social-button-wrapper:hover .icon-wrapper {
    color: white;
}

/* =========================
   TOOLTIP (COPYABLE, NON-LINK)
   ========================= */

.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 6px) scale(0.9);
    transform-origin: bottom center;

    background-color: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;

    opacity: 0;

    pointer-events: auto;
    user-select: text;
    cursor: text;

    transition:
            opacity 0.25s ease,
            transform 0.25s ease;

    z-index: 10;
}

/* Show tooltip on wrapper hover */
.social-button-wrapper:hover .social-tooltip {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1);
}

/* =========================
   MOBILE 2x2 GRID
   ========================= */
@media (max-width: 600px) {
    .about-me-socials {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
    }

    .social-button {
        width: 50px;
        height: 50px;
    }
}
