/*
 * 소소도담 인증 스킨 - 소셜 로그인 버튼 전용 스타일
 * 로그인/약관 화면에서 social_buttons.inc.php가 출력될 때만 로드한다.
 * register_form 및 기타 회원 페이지 공용 style.css에는 영향을 주지 않는다.
 */
.sodam-auth-social .sodam-auth-social-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, .42) !important;
    border: 1px solid rgba(255, 255, 255, .78) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(93, 64, 74, .09), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
}

.sodam-auth-social .sodam-auth-social-link {
    display: inline-flex !important;
    position: relative !important;
    isolation: isolate !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 13px !important;
    border: 1px solid rgba(255, 255, 255, .48) !important;
    background-color: var(--ssd-social-color, #fff) !important;
    background-image: var(--ssd-social-logo) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 29px 29px !important;
    box-shadow: 0 6px 16px rgba(83, 59, 68, .13), inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(0, 0, 0, .05) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    font-size: 0 !important;
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.sodam-auth-social .sodam-auth-social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .10) 38%, rgba(255, 255, 255, 0) 62%);
}

.sodam-auth-social .sodam-auth-social-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 9px 21px rgba(83, 59, 68, .17), inset 0 1px 0 rgba(255, 255, 255, .46), inset 0 -1px 0 rgba(0, 0, 0, .05) !important;
    filter: saturate(1.04);
}

.sodam-auth-social .sodam-auth-social-link:active {
    transform: translateY(0) scale(.98);
}

.sodam-auth-social .sodam-auth-social-link:focus-visible {
    outline: 3px solid rgba(247, 175, 196, .34) !important;
    outline-offset: 3px !important;
}

/* 브랜드별 배경색을 버튼 범위에서만 고정한다. OAuth provider 이름 twitter는 그대로 유지한다. */
.sodam-auth-social .sodam-auth-social-naver { background-color: #03C75A !important; }
.sodam-auth-social .sodam-auth-social-kakao { background-color: #FEE500 !important; }
.sodam-auth-social .sodam-auth-social-google {
    background-color: #fff !important;
    border-color: rgba(218, 220, 224, .92) !important;
    background-size: 28px 28px !important;
    box-shadow: 0 6px 16px rgba(83, 59, 68, .10), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(0, 0, 0, .04) !important;
}
.sodam-auth-social .sodam-auth-social-twitter { background-color: #000000 !important; }
.sodam-auth-social .sodam-auth-social-payco { background-color: #FF2233 !important; }
.sodam-auth-social .sodam-auth-social-facebook { background-color: #0866FF !important; }
.sodam-auth-social .sodam-auth-social-apple { background-color: #000 !important; }

.sodam-auth-social .sodam-auth-social-logo {
    display: none !important;
}

@media (max-width: 480px) {
    .sodam-auth-social .sodam-auth-social-icons {
        gap: 7px !important;
        padding: 7px 8px !important;
        border-radius: 16px !important;
    }

    .sodam-auth-social .sodam-auth-social-link {
        flex-basis: 40px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 12px !important;
        background-size: 26px 26px !important;
    }

    .sodam-auth-social .sodam-auth-social-google {
        background-size: 25px 25px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sodam-auth-social .sodam-auth-social-link {
        transition: none !important;
    }
}
