/* Action Button Component */
/* 공통 스타일 */
/* NOTE: Hover 상태에서 transform: translateY(...) 효과는 사용하지 않는다. */
.action-button {
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Pretendard', 'Roboto', sans-serif;
}

/* Profile Button: 텍스트가 있는 버튼 (affiliated-profile-btn 스타일) */
.action-button-profile {
    flex: 1;
    padding: 0.6rem 1rem;
    background-color: white;
    color: var(--primary-color);
    font-size: 0.85rem;
    text-align: center;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-button-profile:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Icon Button: 아이콘만 있는 버튼 (affiliated-email-btn 스타일) */
.action-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    position: relative;
}

.action-button-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.action-button-icon svg {
    width: 16px;
    height: 16px;
}

/* Primary Button: primary 색상 배경 버튼 (activity-url-button 스타일) */
.action-button-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    gap: 8px;
}

.action-button-primary:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.action-button-primary svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

/* Tooltip for icon button (email 버튼용) */
.action-button-icon[data-email]::after {
    content: attr(data-email);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.action-button-icon[data-email]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.action-button-icon[data-email]:hover::after,
.action-button-icon[data-email]:hover::before {
    opacity: 1;
}

/* Member detail 페이지에서 사용될 때 스타일 (primary-color 배경) */
.member-detail-actions .action-button-profile {
    background-color: var(--primary-color);
    color: white;
}

.member-detail-actions .action-button-profile:hover {
    background-color: var(--primary-color-dark);
    color: white;
}

.member-detail-actions .action-button-icon {
    background-color: var(--primary-color);
    color: white;
}

.member-detail-actions .action-button-icon:hover {
    background-color: var(--primary-color-dark);
    color: white;
}

